Can't connect to local MySQL server through socket

Problems with the Solaris version of XAMPP, questions, comments, and anything related.

Can't connect to local MySQL server through socket

Postby nikola » 05. January 2005 11:40

hello,

I have installed xampp 0.4 for solaris and put it in /var directory.
Started xampp and tried to log in to mysql and got this error message:


"ERROR 2002: Can't connect to local MySQL server through socket '/opt/xampp/var/mysql/mysql.sock' (2) "

I checked in /var/opt/xampp/etc/my.cnf for directory path and is
set to: socket = /var/opt/xampp/var/mysql/mysql.sock


Thanks a lot for help.

nikola
nikola
 
Posts: 3
Joined: 31. December 2004 09:36

Postby Oswald » 05. January 2005 13:16

Dear nikola!

Looks like the MySQL server isn't running. Could you please take a look into the .err file in /var/opt/xampp/var/mysql/. Do you find any error messages?

And what output do you get if you're calling: ps -elf | egrep mysql

Best regards
Oswald
User avatar
Oswald
Apache Friends
 
Posts: 2718
Joined: 26. December 2002 19:51
Location: Berlin, Germany
XAMPP Version: 5.5.19
Operating System: Linux

Postby Oswald » 05. January 2005 13:17

Oh sorry, forget everything I wrote above. Just noticed the path in the error message you posted.

From what kind of program do you get the error message? PHP?

Greetings
Oswald
User avatar
Oswald
Apache Friends
 
Posts: 2718
Joined: 26. December 2002 19:51
Location: Berlin, Germany
XAMPP Version: 5.5.19
Operating System: Linux

Postby nikola » 05. January 2005 14:09

Hello, Oswald,

this was result off :
#
# ./mysql mysql
ERROR 2002: Can't connect to local MySQL server through socket '/opt/xampp/var/mysql/mysql.sock' (2)
#
#

I think, mysqld was running, started by starting xampp.
Thank you a lot.

Best regards,
nikola
nikola
 
Posts: 3
Joined: 31. December 2004 09:36

Postby Oswald » 05. January 2005 14:19

Dear nikola!

You just found a bug in XAMPP for Solaris. :? But a found bug is a good bug! ;)

The command line mysql client do not load the my.cnf configuration file and don't know where to find the mysql.sock file. I'm now trying to fix this problem. But it's a bigger problem and I need some time to fix this.

A simple workaround is to set the socket file in the command line:

./mysql --socket=/var/opt/xampp/var/mysql/mysql.sock

But I'll try to fix this problem as soon as possible.

Greetings
Oswald
User avatar
Oswald
Apache Friends
 
Posts: 2718
Joined: 26. December 2002 19:51
Location: Berlin, Germany
XAMPP Version: 5.5.19
Operating System: Linux


Return to XAMPP for Solaris

Who is online

Users browsing this forum: No registered users and 3 guests