LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-23-2004, 09:10 AM   #1
MattJohnson
LQ Newbie
 
Registered: Nov 2004
Posts: 13

Rep: Reputation: 0
PHP Problems with Mysql


Hi
I just installed PHP and Mysql with apache as usual, I have a problem
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
origiinally my mysql.sock was in /tmp so i created a symbolic link to /var/lib/mysql and still the same error. I've tried everything and the sock file is definately there, but php can't get a connection from it. I try running the mysql client program using the --socket option and that works through either socket so the socket definatley points to the connection.

Does anyone know why this wouldn't work through php when it works through the command line client. PHP is recognising the mysql commands, but just not connecting.

I tried changing the permissions on the file and directory, still no luck. Anyone got any suggestions would be really appreciates

thanks
Matt Johnson
 
Old 11-23-2004, 09:19 AM   #2
halo14
Senior Member
 
Registered: Apr 2004
Location: Surprise, AZ
Distribution: Debian | CentOS | Arch
Posts: 1,103

Rep: Reputation: 45
DO NOT DOUBLE POST
 
  


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
mysql-php-apache problems.. khuti2005 Linux - Newbie 4 10-20-2005 03:28 PM
problems in installing php with mysql krunal Linux - Newbie 3 08-18-2005 08:38 AM
Php, mysql, nvidia problems rohmanovich Linux - Software 2 04-01-2005 04:18 AM
PHP Problems with Mysql MattJohnson Linux - Newbie 3 11-23-2004 11:12 AM
php and mysql problems punt Linux - Software 9 03-04-2003 09:23 PM


All times are GMT -5. The time now is 03:18 AM.

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