Ad Widget

Collapse

Can't connect to local MySQL server through socket

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • beaujoire
    Junior Member
    • Feb 2010
    • 14

    #1

    Can't connect to local MySQL server through socket

    Hi,
    I'am using zabbix 1.8.1 on Ubuntu 9.1.It worked perfectly but i don't understand why it doesn't work today.

    I have this error when i run zabbix interface :

    mysql_pconnect() [<a href='function.mysql-pconnect'>function.mysql-pconnect</a>]: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' ... warning ZABBIX is temporary unavailable!

    --> /var/run/mysql/mysql.sock' : this File exist ! i dont understand.
    Any ideas ?
    Thanks
  • MrKen
    Senior Member
    • Oct 2008
    • 652

    #2
    This might help.

    A frequent error message received when using the mysql command line utility is: Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ While this error message can be frustrating, the solution is simple. When connecting to a MySQL server located on the local system, the mysql client connects through a local file called a socket […]


    MrKen
    Disclaimer: All of the above is pure speculation.

    Comment

    Working...