LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Tags used in this thread
Popular LQ Tags , , ,

Reply
 
Thread Tools
Old 09-08-2009, 03:30 PM   #1
Burningmace
LQ Newbie
 
Registered: Sep 2009
Posts: 2
Thanked: 0
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'


[Log in to get rid of this advertisement]
My website's hosting is throwing the following error when trying to connect via a subdomain using 'localhost' as the MySQL host:

Code:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
On other subdomains, we connect to MySQL using the full URL (e.g. forums.domain.com) but when I do that with this new domain I get the following error:

Code:
Lost connection to MySQL server at 'reading initial communication packet', system error: 111
I also tried using "domain.com" as the server, and that also resulted in an error 111.

Any ideas?
windows_xp_2003 Burningmace is offline  
Tag This Post , , ,
Reply With Quote
Old 09-09-2009, 04:27 AM   #2
alexroux
LQ Newbie
 
Registered: Sep 2009
Location: Lausanne (Switzerland)
Distribution: Ubuntu
Posts: 9
Thanked: 2
The first error (2 -> No such file or directory ) comes from the fact that you have no mysql server running on localhost.

The second one (111 -> Connection refused) shows that either mysql port is blocked (firewall for instance) or that no mysql server is running on forums.domain.com.

Are you sure that the machine with mysql server is reachable from your new subdomain? If not, you have found your problem. Be also sure to use the correct url to join the mysql server.
linuxubuntu alexroux is offline     Reply With Quote
Old 09-10-2009, 06:15 AM   #3
Burningmace
LQ Newbie
 
Registered: Sep 2009
Posts: 2
Thanked: 0

Original Poster
For some reason when we deleted the schema and the associated MySQL account from their control panel and then re-created it, it worked fine. Doesn't really make any sense at all, but our hosting is often quite glitchy with stuff like this. I get the feeling that the config files weren't updated properly to allow access to the other domain.
windows_xp_2003 Burningmace is offline     Reply With Quote
Old 09-11-2009, 01:41 AM   #4
xiutuo
LQ Newbie
 
Registered: Mar 2008
Posts: 13
Thanked: 0
I think there are two mysql server...
and the lib file: libmysqlclient.so** at the same path .
1. mysql server one: install by yum or rpm with os cdrom
2. mysql server two: install by source...
there are infilct between the mysqlclient.so
windows_xp_2003 xiutuo is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) Pode Slackware 12 11-26-2008 09:21 AM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock welery Linux - Software 8 07-11-2008 03:06 PM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' mohadesz Linux - Server 3 03-15-2008 06:06 AM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' mathimca05 Linux - Newbie 2 10-17-2007 03:04 AM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) sunlinux Linux - Software 1 11-07-2006 01:08 AM


All times are GMT -5. The time now is 08:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration