Ad Widget

Collapse

mysql connection problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zero_
    Junior Member
    • Mar 2013
    • 1

    #1

    mysql connection problem

    hey
    i followed this tutorial to setup Zabbix

    except the network interface (the second interface) configuration part where i chosed private network to obtain the right ip address(192.168.x.x), so i tried logging into the web interface (ipaddress/zabbix) and tada, i got this message Zabbix is temporarily unavailable!
    mysql_connect(): [2002] No such file or directory (trying to connect via unix:///var/run/mysql/mysql.sock) [include/db.inc.php:77]
    mysql_connect(): No such file or directory [include/db.inc.php:77]
    a little help pleaaaaase
  • samuelhigh
    Junior Member
    • Mar 2013
    • 4

    #2
    Something wrong with mysql.
    Do just like this:
    ln -s /tmp/mysql.sock /var/run/mysql/mysql.sock
    It'd be OK!

    I set socketin my.cnf but zabbix didn't get it from my.cnf.
    Why?

    Comment

    • heaje
      Senior Member
      Zabbix Certified Specialist
      • Sep 2009
      • 325

      #3
      PHP uses the value in php.ini for "mysql.default_socket" to find the socket location for MySQL.

      Comment

      Working...