Erro ao iniciar o MySQL
Dica publicada em Banco de Dados / MySQL
Erro ao iniciar o MySQL
Um dia desses me deparei com o seguinte erro no syslog ao iniciar o MySQL:
Starting MySQL database server: mysqld...failed.
Please take a look at the syslog.
/usr/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Dei um vasculhada na net e adivinha, não encontrei nada, dei umas lidas em meus livros, resumindo, consegui arrumar esse erro executando o seguinte comando como root:
# mysql_install_db
E boa... Funcionou que é uma beleza.
Abraços!
Espero que ajude alguém!!!! :D
At. gargamel
Starting MySQL database server: mysqld...failed.
Please take a look at the syslog.
/usr/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Dei um vasculhada na net e adivinha, não encontrei nada, dei umas lidas em meus livros, resumindo, consegui arrumar esse erro executando o seguinte comando como root:
# mysql_install_db
E boa... Funcionou que é uma beleza.
Abraços!
Espero que ajude alguém!!!! :D
At. gargamel