[Asterisk-Users] mysql sock location

Matthew Boehm mboehm at cytelcom.com
Mon Aug 8 12:26:36 MST 2005


Wei Kun wrote:
> Hi;
> In case your * and mysql are running on the same machine, and you get error
> "Failed to connect to mysql database server ..." when using  Asterisk with
> Mysql database, check the location of mysql.sock
> 
> not /tmp/mysql.sock, but /var/lib/mysql/mysql.sock
> 
> Regards
> Kun

The location of your mysql.sock is completly configurable when you first 
install mysql.

./configure --with-sock=/some/path/to/mysql.sock

If you run with the defaults, yea it won't goto /tmp/mysql.sock

Most admins don't use default.

-Matthew




More information about the asterisk-users mailing list