mysql não sendo instalado

-1

Eu instalei o mysql com o comando a seguir sudo apt-get install mysql-server e ele foi instalado corretamente.então eu desinstalei referindo este link

link

primeira resposta,

então tentei instalar o 5.0.96 fro seu site oficial fazendo o upload do rpm, convertendo para deb, e instalando ele, ele falhou, novamente eu purgei tudo reinicializado e tentei instalar com o mesmo comando antigo

sudo apt-get install mysql-server

mas tudo vai ficar correto até este lugar e vai ficar preso eu esperei por cerca de uma hora,

este é o log do terminal

mukund@mukund-ThinkPad-Edge-E431:~$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
libdbd-mysql-perl libmysqlclient18 mysql-client-5.5 mysql-client-core-5.5
 mysql-common mysql-server-5.5 mysql-server-core-5.5
Suggested packages:
 tinyca mailx
The following NEW packages will be installed:
 libdbd-mysql-perl libmysqlclient18 mysql-client-5.5 mysql-client-core-5.5
 mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5
 0 upgraded, 8 newly installed, 0 to remove and 30 not upgraded.
 Need to get 0 B/8,351 kB of archives.
 After this operation, 94.1 MB of additional disk space will be used.
 Do you want to continue? [Y/n] y
 Preconfiguring packages ...
Selecting previously unselected package mysql-common.
(Reading database ... 235747 files and directories currently installed.)
Preparing to unpack .../mysql-common_5.5.47-0ubuntu0.14.04.1_all.deb ...
Unpacking mysql-common (5.5.47-0ubuntu0.14.04.1) ...
Selecting previously unselected package libmysqlclient18:amd64.
Preparing to unpack    .../libmysqlclient18_5.5.47-0ubuntu0.14.04.1_amd64.deb ...
Unpacking libmysqlclient18:amd64 (5.5.47-0ubuntu0.14.04.1) ...
Selecting previously unselected package libdbd-mysql-perl.
Preparing to unpack .../libdbd-mysql-perl_4.025-1_amd64.deb ...
 Unpacking libdbd-mysql-perl (4.025-1) ...
Selecting previously unselected package mysql-client-core-5.5.
Preparing to unpack .../mysql-client-   core-5.5_5.5.47-0ubuntu0.14.04.1_amd64.deb ...
Unpacking mysql-client-core-5.5 (5.5.47-0ubuntu0.14.04.1) ...
Selecting previously unselected package mysql-client-5.5.
Preparing to unpack .../mysql-client- 5.5_5.5.47-0ubuntu0.14.04.1_amd64.deb ...
Unpacking mysql-client-5.5 (5.5.47-0ubuntu0.14.04.1) ...
Selecting previously unselected package mysql-server-core-5.5.
Preparing to unpack .../mysql-server-core-5.5_5.5.47-0ubuntu0.14.04.1_amd64.deb ...
Unpacking mysql-server-core-5.5 (5.5.47-0ubuntu0.14.04.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up mysql-common (5.5.47-0ubuntu0.14.04.1) ...
Selecting previously unselected package mysql-server-5.5.




(Reading database ... 235938 files and directories currently installed.)
Preparing to unpack .../mysql-server- 5.5_5.5.47-0ubuntu0.14.04.1_amd64.deb ...
Unpacking mysql-server-5.5 (5.5.47-0ubuntu0.14.04.1) ...
Selecting previously unselected package mysql-server.
Preparing to unpack .../mysql-server_5.5.47-0ubuntu0.14.04.1_all.deb ...
Unpacking mysql-server (5.5.47-0ubuntu0.14.04.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Setting up libmysqlclient18:amd64 (5.5.47-0ubuntu0.14.04.1) ...
Setting up libdbd-mysql-perl (4.025-1) ...
Setting up mysql-client-core-5.5 (5.5.47-0ubuntu0.14.04.1) ...
Setting up mysql-client-5.5 (5.5.47-0ubuntu0.14.04.1) ...
Setting up mysql-server-core-5.5 (5.5.47-0ubuntu0.14.04.1) ...
Setting up mysql-server-5.5 (5.5.47-0ubuntu0.14.04.1) ...
160407 14:27:27 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
160407 14:27:27 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release.  Please use the full name instead.
160407 14:27:27 [Note] /usr/sbin/mysqld (mysqld 5.5.47-0ubuntu0.14.04.1-log) starting as process 2327 ...

e disse uma mensagem de erro sobre senha, diz que o usuário já existe clicou ok, então nada .......

por favor me ajude neste assunto

este é o mysql / error.log

160408 15:05:46 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
160408 15:05:46 [Note] Plugin 'FEDERATED' is disabled.
/usr/sbin/mysqld: Table 'mysql.plugin' doesn't exist
160408 15:05:46 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
160408 15:05:46 InnoDB: The InnoDB memory heap is disabled
160408 15:05:46 InnoDB: Mutexes and rw_locks use GCC atomic builtins
160408 15:05:46 InnoDB: Compressed tables use zlib 1.2.8
160408 15:05:46 InnoDB: Using Linux native AIO
160408 15:05:46 InnoDB: Initializing buffer pool, size = 128.0M
160408 15:05:46 InnoDB: Completed initialization of buffer pool
160408 15:05:46 InnoDB: highest supported file format is Barracuda.
160408 15:05:46  InnoDB: Waiting for the background threads to start
160408 15:05:47 InnoDB: 5.5.47 started; log sequence number 1595675
160408 15:05:47 [ERROR] /usr/sbin/mysqld: unknown option '--skip-locking'
160408 15:05:47 [ERROR] Aborting

160408 15:05:47  InnoDB: Starting shutdown...
    
por Mukund 08.04.2016 / 09:46

2 respostas

3

Tente:

sudo service mysql stop

então:

sudo apt-get purge mysql-server
sudo apt-get autoremove
less /etc/passwd

Verifique a direita na parte inferior se houver um usuário mysql. Se houver:

sudo userdel mysql

Depois de tudo isso, tente instalar o Mysql novamente usando o comando que você usou anteriormente.

    
por warhansen 08.04.2016 / 14:31
0

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

o erro ocorre quando o serviço mysql não inicia.

não há necessidade de remover o mysql.

siga as etapas abaixo mencionadas:  $ sudo su

/etc/init.d/mysql start

    
por kamlesh 15.04.2016 / 09:38