Tech Curiosity & Bio Curiosity Discussion Forum Index Tech Curiosity & Bio Curiosity Discussion Forum

 
 HomeHome | ServicesServices | ContactContact Us
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
  Post GuidelinesPosting Guidelines    ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  TutorialsFree Tutorials - Linux | Web Hosting | Web Templates | Bioinformatics | Free BioScripts
 

Allwebco Website Templates Reliable Web Solutions
ERROR: Can't connect to local MySQL server through socket.

 
Post new topic   Reply to topic    Tech Curiosity & Bio Curiosity Discussion Forum Index -> MySQL
View previous topic :: View next topic  
Author Message
telson



Joined: 29 Nov 2006
Posts: 123

PostPosted: Fri Oct 31, 2008 7:18 pm    Post subject: ERROR: Can't connect to local MySQL server through socket. Reply with quote

Quote:
MySQL Upgrade - ERROR: Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)


Recently I upgraded MySQL on one of our server.
After the upgradation, I received the following error while connecting to MySQL.

Quote:
ERROR: Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)


I tried editing the /etc/my.cnf file, but it was in vain.

Finally to fix the issue, I did the following:
Moved the my.cnf file to bkp and then forced MySQL to update.

Code:
mv /etc/my.cnf /etc/my.cnf.bkp
/scripts/mysqlup --force


Normally, the above fix will work for allmost all the issues related to MySQL connectivity.[/quote]
_________________
Regards,
Telson Thomas
Linux Web Server Administrator
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Tech Curiosity & Bio Curiosity Discussion Forum Index -> MySQL All times are GMT + 5.5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Help us in our Mission - Donate to TechCuriosity


 
Partners:
Web hosting comparison | Web Hosting | Dedicated Server | Link Building SEO