Results 1 to 6 of 6
Hello! I can`t connect to the mysql server! Last week worked just fine! I am using opensuse 10.3! I know the mysqld is the server but i can`t find it ...
- 05-26-2008 #1
Can't connect to local MySQL server
Hello! I can`t connect to the mysql server! Last week worked just fine! I am using opensuse 10.3! I know the mysqld is the server but i can`t find it to start and i start the mysql
when i want to see if the server run:Code:$ su -c "/etc/rc.d/mysql start" Starting service MySQL warning: /var/lib/mysql/mysql.sock didn't appear within 30 seconds done
and it doesn`t exist the mysql.sock!Code:su -c "mysqladmin version" mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
How can i start the server? The server is in:Code:$ mysqladmin -u root password mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
but when i go to execute manually...Code:$ whereis mysqld mysqld: /usr/sbin/mysqld /usr/share/man/man8/mysqld.8.gz
Have you have any ideas?Code:$ /usr/sbin/mysqld 080526 21:40:12 [ERROR] Can't find messagefile '/var/lib/mysql/share/mysql/english/errmsg.sys' 080526 21:40:12 [ERROR] Aborting
Thanks!
Cheers!
- 05-26-2008 #2Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 1,946
Try these in sequence, if the first doesn't work, the second,...
mysqld_safe &
/usr/bin/mysqld_safe
/usr/bin/mysqld_safe --user=mysql &
- 05-26-2008 #3
Thanks for the reply but it doesn`t work!
i have the same error!
Cheers!
- 05-26-2008 #4Linux Guru
- Join Date
- Nov 2007
- Posts
- 1,695
Verify there are no hung mysql processes (if there are, kill them off):
Try and start mysql normally:Code:ps -ef | grep mysql
If it fails, look at your syslog for errors:Code:/etc/init.d/mysql start
Instead of "trying a bunch of random things," troubleshoot the problem.Code:tail -50 /var/log/messages
MySQL Documentation
- 05-26-2008 #5
It isn`t working!
Cheers!
- 05-27-2008 #6
EVRIKA!!!
It works! Remember when..
that file was in /usr/share/mysql/.....I have made a folder in /var/lib/mysql/shareCode:/usr/sbin/mysqld 080527 13:36:41 [ERROR] Can't find messagefile '/var/lib/mysql/share/mysql/english/errmsg.sys' 080527 13:36:41 [ERROR] Aborting
with rwx permissions for the group and owner mysql and then copy all the files from /usr/share/mysql to /var/lib/mysql/share/mysql and made again the permission rwx group and owner mysql for the folder /var/lib/mysql and then:
and works great! Hope this helps someboby!Code:$ su -c "/etc/init.d/mysql start"
Cheers!


Reply With Quote