/usr/share/astguiclient/ADMIN_area_code_populate.pl trouble

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

/usr/share/astguiclient/ADMIN_area_code_populate.pl trouble

Postby convertec » Thu Sep 07, 2006 11:51 pm

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!
convertec
 
Posts: 43
Joined: Sun Sep 03, 2006 2:27 pm
Location: Idaho

Postby convertec » Fri Sep 08, 2006 2:27 am

ok the answer was simpler than I thought

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

thanks for looking though!
convertec
 
Posts: 43
Joined: Sun Sep 03, 2006 2:27 pm
Location: Idaho

Postby mflorell » Fri Sep 08, 2006 6:30 am

You can also define where the mysql.sock file goes in your mysql configuration file.
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby convertec » Sat Sep 09, 2006 12:50 am

I thought about that, but I figured another app might request the sock file from the old location...
convertec
 
Posts: 43
Joined: Sun Sep 03, 2006 2:27 pm
Location: Idaho


Return to Support

Who is online

Users browsing this forum: No registered users and 253 guests