Ad Widget

Collapse

config location for mysql.sock?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • agehring
    Member
    • Oct 2006
    • 49

    #1

    config location for mysql.sock?

    I'm running Zabbix (1.4.2) on a OS X system, which has the default location of mysql.sock in /var/mysql, but the Zabbix frontend wants it in /tmp.


    I've been looking through the conf files, but can't find where I would change this for the frontend.

    Thanks,
    Andrew
    Last edited by agehring; 24-08-2007, 22:01. Reason: type
  • me2
    Junior Member
    • Aug 2007
    • 1

    #2
    I had a similar problem when installing zabbix recently for the first time on a Fedora 6 machine. I think the file that you're looking for is the php.ini file. In my case, my socket was located in the /data directory, so this is the configuration in my /etc/php.ini file:

    ; Default socket name for local MySQL connects. If empty, uses the built-in
    ; MySQL defaults.
    mysql.default_socket = /data/mysql.sock

    Comment

    • nleaman
      Member
      • May 2010
      • 35

      #3
      optionally you can specify the socket location along with the db hostname in conf/zabbix.conf.php

      $DB["SERVER"] = 'localhost:/path/to/mysql.lock';

      Comment

      Working...