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
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 > KunThe 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
Possibly Parallel Threads
- app_voicemail.c still looking for config file even I try to configure the voicemail from database.
- asterisk query mysql problem or bug?
- Getting mysql.sock error
- mysql.sock error message
- [nativecode=Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)]