LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-23-2007, 01:59 PM   #1
leif_84
LQ Newbie
 
Registered: Jun 2007
Posts: 25

Rep: Reputation: 15
mysql works from command line, but mysql.sock (13) error from php..


Hi!
I restarted the server, when I run apache, I got error:
Code:
Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (13)
but I can login into mysql using command line. I never had this problem before. I didn't change any settings in any configuration files.

I remember I had problems connecting from console in the past and got the same error, but I chmod'ed /var/run/mysql and it worked.

Any suggestions please? Thank you!

UPDATE:
Problem solved!! I chmod'ed /var/run/mysql/ with 777 instead of 740 and it works!!

Last edited by leif_84; 07-23-2007 at 02:16 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 welery Linux - Software 19 03-06-2014 08:19 AM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' mohadesz Linux - Server 3 03-15-2008 06:06 AM
Problems with MySQL on SuSE: Can't Connect (/var/lib/mysql/mysql.sock) neocookie Linux - Software 8 02-08-2008 12:48 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
PHP with MySQL Support not working : mysql.sock DID[DL] Linux - Software 3 11-04-2006 02:26 PM


All times are GMT -5. The time now is 09:51 AM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration