I worked with Mysql last night, exited from it and powered down, but when I powered up this morning I got this:
john@john-N105:~$ mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
john@john-N105:~$
Following Google tracks to Ubuntu forums, etc., I tried many things, including "complete removal" of Mysql-client and Mysql-server and "reinstall" of Mysql-common (complete removal of it would have taken out all sorts of kde packages that I didn't want to risk). No deal. Here are a few other things I tried:
[By the way, everything in /var/lib/mysql has been chown/chgrp'd to "mysql" and I (john) am a member of the mysql group.]
john@john-N105:~$ sudo service mysql start
start: Job failed to start
john@john-N105:~$
john@john-N105:~$ mysqld
140127 20:42:26 [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.
140127 20:42:26 [Warning] Can't create test file /var/lib/mysql/john-N105.lower-test
140127 20:42:26 [Warning] Can't create test file /var/lib/mysql/john-N105.lower-test
mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 13)
140127 20:42:26 [ERROR] Aborting
140127 20:42:26 [Note] mysqld: Shutdown complete
john@john-N105:~$
john@john-N105:~$ sudo mysqld_safe
140127 20:48:32 mysqld_safe Can't log to error log and syslog at the same time. Remove all --log-error configuration options for --syslog to take effect.
140127 20:48:32 mysqld_safe Logging to '/var/log/mysql/error.log'.
140127 20:48:32 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
140127 20:48:32 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
john@john-N105:~$
john@john-N105:~$ sudo mysql_upgrade
[sudo] password for john:
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
FATAL ERROR: Upgrade failed
john@john-N105:~$
I have some output from /var/log/mysql/error.log, as recommended when I ran "mysqld_safe", and can reproduce some of that if it might be helpful. I'll be happy to provide any other output that forum participants might like to see.
Sure was a surprise to exit a fully functioning Mysql last night, then find that I couldn't start it this morning.
john@john-N105:~$ mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
john@john-N105:~$
Following Google tracks to Ubuntu forums, etc., I tried many things, including "complete removal" of Mysql-client and Mysql-server and "reinstall" of Mysql-common (complete removal of it would have taken out all sorts of kde packages that I didn't want to risk). No deal. Here are a few other things I tried:
[By the way, everything in /var/lib/mysql has been chown/chgrp'd to "mysql" and I (john) am a member of the mysql group.]
john@john-N105:~$ sudo service mysql start
start: Job failed to start
john@john-N105:~$
john@john-N105:~$ mysqld
140127 20:42:26 [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.
140127 20:42:26 [Warning] Can't create test file /var/lib/mysql/john-N105.lower-test
140127 20:42:26 [Warning] Can't create test file /var/lib/mysql/john-N105.lower-test
mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 13)
140127 20:42:26 [ERROR] Aborting
140127 20:42:26 [Note] mysqld: Shutdown complete
john@john-N105:~$
john@john-N105:~$ sudo mysqld_safe
140127 20:48:32 mysqld_safe Can't log to error log and syslog at the same time. Remove all --log-error configuration options for --syslog to take effect.
140127 20:48:32 mysqld_safe Logging to '/var/log/mysql/error.log'.
140127 20:48:32 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
140127 20:48:32 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
john@john-N105:~$
john@john-N105:~$ sudo mysql_upgrade
[sudo] password for john:
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
FATAL ERROR: Upgrade failed
john@john-N105:~$
I have some output from /var/log/mysql/error.log, as recommended when I ran "mysqld_safe", and can reproduce some of that if it might be helpful. I'll be happy to provide any other output that forum participants might like to see.
Sure was a surprise to exit a fully functioning Mysql last night, then find that I couldn't start it this morning.
Comment