This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

cant connect to mysql through tcl script

Old posts that have not been replied to for several years.
Locked
a
almighty
Voice
Posts: 30
Joined: Tue Jan 07, 2003 5:34 pm
Contact:

cant connect to mysql through tcl script

Post by almighty »

Im getting the following problem and it has happened all of a sudden.

I get:

Code: Select all

Tcl error [allianceorder]: Failed to connect to database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
I also get:

Code: Select all

Tcl error [allianceorder]: Failed to connect to database: Can't connect to local MySQL server through socket '/usr/local/lib/mysql.sock' (2)
I have run 'locate mysql.sock' in shell and it has come back with the following locations.

Code: Select all

root [~]# locate mysql.sock
/var/lib/mysql/mysql.sock
/usr/local/lib/mysql.sock
As you can see it doesnt connect through either mysql.sock file. Any ideas?
http://www.big-bubba.co.uk
Big Brother Clone for the South West
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

maybe tell what mysql lib you are using ?
XplaiN but think of me as stupid
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Use a hostname rather than the unix socket, which may not exist.
S
SmokeyOne
Halfop
Posts: 69
Joined: Tue Jan 14, 2003 6:04 am

Post by SmokeyOne »

make sure you set the user access correctly in mysql. like user@localhost. I've had a couple of problems like that before, I did that and it worked just perfect
e
exs-n0s
Voice
Posts: 9
Joined: Sat Feb 21, 2004 9:00 pm

Post by exs-n0s »

maybe the box your trying to connect to has blocked your ip? I dont know, this has happened to me once before.
Locked