1834588 Members
3507 Online
110069 Solutions
New Discussion

mysql server problem

 
ramkumar
Valued Contributor

mysql server problem

we have installed a new server . in that i want to start the mysql server . but when i am trying to start it by using mysql.server start . IT is giving error message /tmp/mysql.sock is not available . I have not modifed any config files like my.cnf in etc .

expecting your reply soon
6 REPLIES 6
Yogeeraj_1
Honored Contributor

Re: mysql server problem

hi,

try to create a link to the file:
e.g.
ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock

regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
BONNAFOUS Jean Marc
Trusted Contributor

Re: mysql server problem

Hi,

This file has been, probably, deleted (it's problem with files in /tmp.
You can change this file location in my.cnf or protect access to this file.

See http://www.nexen.net/docs/mysql/annotee/problems-with-mysql.sock.php (in french).

Rgds
JMB
Si vous ne faites jamais de bétises, c'est que vous ne faites rien de difficile. Et ça c'est une grosse bétise.
ramkumar
Valued Contributor

Re: mysql server problem

hi there is no directory call /var/lib/mysql

BONNAFOUS Jean Marc
Trusted Contributor

Re: mysql server problem

Hi,

Your mysql is in other folder, perhaps /var/opt/mysql.
Or use find command:
find / -name "*mysql.sock*" -follow -print

to find where is this file.

So i'm not sure it's a good idea to link it this a file in /tmp. Change location in the mysql config.

Rgds
JMB

Si vous ne faites jamais de bétises, c'est que vous ne faites rien de difficile. Et ça c'est une grosse bétise.
ramkumar
Valued Contributor

Re: mysql server problem

hi guys ,


thanks for you efforts . I found the solution from mysql site . it is known problem . i am using Hp-ux 11.11 in whih i need to apply two pathes related to streams and sockets . I applied it and tested worked ine


Muthukumar_5
Honored Contributor

Re: mysql server problem

IS your ./safe_mysqld daemon running there?

Try to start it in background

# mysql
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

./safe_mysqld
Starting mysqld daemon with databases from /usr/local/var

[1]+ Stopped ./safe_mysqld

# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.


Type 'help;' or '\h' for help. Type '\c' to clear the buffer

mysql>

HTH.
Easy to suggest when don't know about the problem!