DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • July 19, 2018, 08:18:23 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: mysql error...  (Read 2590 times)
0 Members and 1 Guest are viewing this topic.
Spider
Guest
« on: October 12, 2004, 02:55:29 AM »

I got this petition from a user:

I got the following message after I had my weapon augmented...

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/spider/public_html/lotgd/lib/dbwrapper.php on line 123
Unable to connect to the database server. Sorry it didn't work out.

I have a feeling I've seen this before on DP, but the search didn't turn it up, I'm vaguely thinking that it's simply the server being overloaded and if anyone can confirm this then great, end of story.  But I figured better safe than sorry, it could actually be a problem.
Logged
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #1 on: October 25, 2004, 11:13:39 PM »

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Thats your problem. Check /var/lib/mysql/mysql.sock your sock file is not there. I would suggest restarting MYSQL and finding where it is putting the socket file.

If you have shell access:

do a:

whereis mysql.sock

Then if its not putting it in that directory and say its in /var/tmp

Just go to /var/lib/mysql/:
ln -s /var/tmp/mysql.sock mysql.sock

Which would make shortcut from /var/lib/mysql/mysql.sock --> /var/tmp/mysql.sock

(Just aan example quick fix)
« Last Edit: October 25, 2004, 11:34:30 PM by Arune » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
44 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search