jsmit
10-21-2001, 09:02 AM
Somebody has shutdown the cobalt server without shutdown of the mysql server. How is it possible to restart the Mysql server ?
![]() | View Full Version : ERROR 2002: Can't connect to local MySQL server (146) jsmit 10-21-2001, 09:02 AM Somebody has shutdown the cobalt server without shutdown of the mysql server. How is it possible to restart the Mysql server ? niekas 10-23-2001, 04:41 AM Its better to configure Mysql to start with boot of your server. If you using webmin go to System > Bootup and Shutdown > mysqld and select radio button Start at boot time? yes. jks 10-23-2001, 06:30 PM Originally posted by jsmit Somebody has shutdown the cobalt server without shutdown of the mysql server. How is it possible to restart the Mysql server ? The most common way on Cobalts is: 1. Log in as root. 2. Execute this command: /etc/rc.d/init.d/mysql start That should start up mysql. jsmit 10-24-2001, 01:09 AM It gives the following result: [root users]# /etc/rc.d/init.d/mysql start [root users]# Starting mysqld daemon with databases from /var/lib/mysql mysqld daemon ended [root users]# [root users]# mysql ERROR 2002: Can't connect to local MySQL server (146) [root users]# jks 10-24-2001, 05:01 AM Originally posted by jsmit It gives the following result: [root users]# /etc/rc.d/init.d/mysql start [root users]# Starting mysqld daemon with databases from /var/lib/mysql mysqld daemon ended [root users]# [root users]# mysql ERROR 2002: Can't connect to local MySQL server (146) [root users]# The "mysqld daemon ended" means that there is an error. Check the MySQL logfile to see, what's wrong. jsmit 10-24-2001, 12:41 PM 011024 5:55:09 Found old style password for user 'root'. Restart using --old-$mysqld ended on Wed Oct 24 05:55:09 CEST 2001 ?????? jks 10-24-2001, 12:44 PM Originally posted by jsmit 011024 5:55:09 Found old style password for user 'root'. Restart using --old-$mysqld ended on Wed Oct 24 05:55:09 CEST 2001 ?????? You probably tried to set the root password on MySQL, and forgot to encrypt the password :-( Try starting MySQL without using the grant tables, and then go in and change the MySQL root password. driverdave 10-25-2001, 02:56 AM I ran into the same problem on my cobalt. For the life of me, I couldn't get it back up. The skip grant tables never ever worked for me. Best to remove MySQL, and re-install. At least thats what I did. Pingouin 04-10-2003, 04:38 AM This is the situation I am in...How would you remove and reinstall MySQL on a Cobalt 550 where it comes preinstalled ? thanks, DigiCrime 04-10-2003, 05:10 AM Originally posted by Pingouin This is the situation I am in...How would you remove and reinstall MySQL on a Cobalt 550 where it comes preinstalled ? thanks, Think this is how you do it, i think..Shell into your cobalt cd /var/lib/cobalt/uninstallers ls (list the files see whats there) if MySQL3 it would be something like this ./MySQL.3-23.x-x.uninst and it uninstalls MySQL then reinstall Pingouin 04-10-2003, 05:49 AM Thank you; in the meantime I did manage to bypass the priv table and get MySQL to its initial state. thanks again; Slidey 04-10-2003, 06:06 AM check the mysql socket exists... otherwise you wont be able to connect |