Page 1 of 1

/usr/share/astguiclient/ADMIN_area_code_populate.pl trouble

PostPosted: Thu Sep 07, 2006 11:51 pm
by convertec
I'm getting there..
I recompiled my kernel with version 2.6.17.11 to start with, then following the scratch install to the tee, with the new 2.0.1b1 version from the x2 svn server after everything going well I get to subphase 6.2 step 2:

Code: Select all
root@phone:~# /usr/share/astguiclient/ADMIN_area_code_populate.pl
DBI connect('asterisk:localhost:3306','cron',...) failed: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2) at /usr/share/astguiclient/ADMIN_area_code_populate.pl line 63
Couldn't connect to database: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2) at /usr/share/astguiclient/ADMIN_area_code_populate.pl line 63.


I looked around the web for a few hours before submitting to the forum that knows all! All I could see is that the mysql.sock file does not exist in /var/run/mysql.sock

it connects with:

Code: Select all
Server version          4.0.27-log
Protocol version        10
Connection              Localhost via UNIX socket
UNIX socket             /tmp/mysql.sock
Uptime:                 17 min 1 sec

and now I'm stuck!

PostPosted: Fri Sep 08, 2006 2:27 am
by convertec
ok the answer was simpler than I thought

ln -s /tmp/mysql.sock /var/run/mysql/mysql.sock

thanks for looking though!

PostPosted: Fri Sep 08, 2006 6:30 am
by mflorell
You can also define where the mysql.sock file goes in your mysql configuration file.

PostPosted: Sat Sep 09, 2006 12:50 am
by convertec
I thought about that, but I figured another app might request the sock file from the old location...