I am having trouble administering my MySQL. I tried to stop it like this:
/etc/init.d/mysql stop
and I got this message:
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql stop
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) utility, e.g. stop mysql
So I tried doing this:
$ sudo mysql stop
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
$ sudo mysql start
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
My OS is Ubuntu. Any ideas why I seem to be running into this dead end? :)
service mysql stop? – ypercube Apr 16 '11 at 0:07