Thread: Server outrages
View Single Post
Old 2020-01-10, 08:09   #535
gd_barnes
 
gd_barnes's Avatar
 
May 2007
Kansas; USA

100111101011002 Posts
Default

Dmitry,

Here is a screen shot of my recent attempt to do what you suggested:

Code:
gary@jeepford:~$ sudo service mysql status
[sudo] password for gary: 
 * MySQL is stopped.
gary@jeepford:~$ sudo service mysql start
 * Starting MySQL database server mysqld                                           [ OK ] 
 * Checking for corrupt, not cleanly closed and upgrade needing tables.
gary@jeepford:~$ ERROR 2013 (HY000) at line 2: Lost connection to MySQL server during query

gary@jeepford:~$ mysqlcheck --all-databases
mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
gary@jeepford:~$ mysqlcheck --all-databases --repair
mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
gary@jeepford:~$
As you can see I cannot execute the commands because I cannot connect. Any suggestions?

I'm ignorant about MySQL.
gd_barnes is offline   Reply With Quote