Eu estava tentando alterar o diretório de dados mysql seguindo estas instruções . Quando tento reiniciar o banco de dados com a etapa 8:
sudo /etc/init.d/mysql restart
Obtém o seguinte erro:
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql restart
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop mysql ; start mysql. The restart(8) utility is also available.
start: Job failed to start
Quando tento iniciar o banco de dados com:
service mysql start
Recebo a seguinte mensagem de erro:
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.71" (uid=1000 pid=3703 comm="start mysql ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")
depois de tentar sudo mysql start
, recebo Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)