Não é possível instalar o servidor mysql localmente

0

Eu usuário ubuntu 14.04 version.

Então eu não posso instalar o mysql-server.

    Unpacking mysql-server-core-5.6 (5.6.27-0ubuntu0.14.04.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up mysql-common (5.6.25-3+deb.sury.org~trusty+1) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Selecting previously unselected package mysql-server-5.6.
(Reading database ... 219897 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.6_5.6.27-0ubuntu0.14.04.1_amd64.deb ...
Unpacking mysql-server-5.6 (5.6.27-0ubuntu0.14.04.1) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../mysql-server_5.6.25-3+deb.sury.org~trusty+1_all.deb ...
Unpacking mysql-server (5.6.25-3+deb.sury.org~trusty+1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up libmysqlclient18:amd64 (5.6.25-3+deb.sury.org~trusty+1) ...
Setting up libdbd-mysql-perl (4.025-1) ...
Setting up mysql-client-core-5.6 (5.6.27-0ubuntu0.14.04.1) ...
Setting up mysql-client-5.6 (5.6.27-0ubuntu0.14.04.1) ...
Setting up mysql-server-core-5.6 (5.6.27-0ubuntu0.14.04.1) ...
Setting up mysql-server-5.6 (5.6.27-0ubuntu0.14.04.1) ...
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mysql-server-5.6 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.6; however:
  Package mysql-server-5.6 is not configured yet.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                          Processing triggers for ureadahead (0.100.0-16) ...
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up mysql-server-5.6 (5.6.27-0ubuntu0.14.04.1) ...
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mysql-server-5.6 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.6; however:
  Package mysql-server-5.6 is not configured yet.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 mysql-server-5.6
 mysql-server

Eu tentei limpar todos os pacotes instalados, relacionados ao mysql. E isso:

apt-get purge mysql-server
apt-get purge mysql-common
rm -rf /var/log/mysql
rm -rf /var/log/mysql.*
rm -rf /var/lib/mysql
rm -rf /etc/mysql
# and then:
apt-get install mysql-server --fix-missing --fix-broken

Mas mesmo depois disso eu não consigo instalar o mysql.

Alguma sugestão?

    
por eatmypants 09.12.2015 / 22:27

2 respostas

0

Primeiro remova o MySQL:

sudo apt-get remove --purge mysql-server mysql-client mysql-common -y
sudo apt-get autoremove
sudo apt-get autoclean

Em seguida, instale o MySQL novamente:

sudo apt-get update
sudo apt-get install mysql-server -y
    
por Alex Lowe 09.12.2015 / 22:37
0

Suponho que seja devido a este bug . Pode sua máquina ter pouca memória. Obtenha para /etc/mysql/my.cnf e diminua max_connection para um valor mais baixo. E reinicie sua instalação:

sudo apt-get install -f
    
por Tung Tran 10.12.2015 / 10:57