forum : Cant connect to local MySQL server through socket '/tmp/mysql.sock'

You must be logged in to post Login Register

Cant connect to local MySQL server through socket ‘/tmp/mysql.sock’

UserPost

6:55 am
November 6, 2009


massoo

New Member

posts 2

1

Hi,


When trying to install i get the error

Cant connect to local MySQL server through socket '/tmp/mysql.sock'

My mysql.sock is in different location. How do i set the configuration to reflect my socket file?


Regards

Shann

9:11 am
November 6, 2009


themattreid

Admin

Nevada

posts 49

2

Try setting the following in you my.cnf file but replace it with the location of your socket file. For more information refer to the mysql documentation as this is not Kontrollbase related.


shell> cat /etc/my.cnf
#snip start

[client]
socket = /var/lib/mysql/mysql.sock

#snip end

http://kontrollsoft.com http://themattreid.com

10:30 pm
November 6, 2009


massoo

New Member

posts 2

3

I already have the socket information in the my.cnf

cat /etc/my.cnf

[client]
#password       = [your_password]
port  = 3306
socket = /var/lib/mysql/mysql.sock

still it fails.

8:17 am
November 7, 2009


themattreid

Admin

Nevada

posts 49

4

Check your php default settings. If you can't get other php scripts that connect to mysql then something is wrong. This issue is independent of Kontrollbase. Please search google for the solution with php.

http://kontrollsoft.com http://themattreid.com

 

About the kontrollsoft forum

Most Users Ever Online:

9


Currently Online:

3 Guests

Forum Stats:

Groups: 3

Forums: 12

Topics: 34

Posts: 81

Membership:

There are 469 Members

There has been 1 Guest

There is 1 Admin

There are 0 Moderators

Top Posters:

xstar – 16

Prabhat – 3

christian.keil – 2

j2ict – 2

massoo – 2

hootsuite – 1

Administrators: themattreid (49 Posts)