Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-04-2006, 07:45 AM   #1
LQ Newbie
Registered: Nov 2006
Posts: 3

Rep: Reputation: 0
PHP with MySQL Support not working : mysql.sock


im having some problems to get mysql working with php..
im running fedora core6 (without gui)
ive installed httpd, php, php-mysql (to support mysql under PHP)
ive installed it with yum:
yum install httpd
yum install php
yum install php-mysql

The MySQL server is installed on a remote host.

when im trying to connect to the database server with a php script it says: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

if im searching with google the only answere i get is install mysql server :S but i dont want that..

someone had the same problem and knows the answere? please help!..

gr DID,
Old 11-04-2006, 09:04 AM   #2
Registered: Jun 2005
Location: Lilburn, Ga
Distribution: FC5
Posts: 175

Rep: Reputation: 30
Yes, or at least similar. After finding that, indeed, there was no mysql.sock in that location, I made a symlink to where it really was, which was someplace entirely different. That succeeded. Now, on a remote server? Hmm, I don't know.
Old 11-04-2006, 09:48 AM   #3
LQ Newbie
Registered: Nov 2006
Posts: 3

Original Poster
Rep: Reputation: 0
ive searched the hole day to find a solution.. without success ..
Old 11-04-2006, 01:26 PM   #4
LQ Newbie
Registered: Nov 2006
Posts: 3

Original Poster
Rep: Reputation: 0
damn im doing somthing wrong but i dont know what..
ive done a reinstall of fedora core and it still doesnt work :S..
installed fedora core 5 because i had it running on fedora core 5..

if i go to a shell en type mysql -h <remote hostname> -u root -p
i can login perfect, so the mysql server is not the problem.

is there no1 having this problem? :s


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 07:19 AM
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) cygnus-x1 Linux - Software 2 06-05-2008 01:14 PM
Problems with MySQL on SuSE: Can't Connect (/var/lib/mysql/mysql.sock) neocookie Linux - Software 8 02-07-2008 11:48 PM
PHP MySQL Support not working (Hopefully simple question) icarusfall Linux - Software 5 11-08-2005 10:30 AM
Installing MySQL.4.0.17 and php support for Mysql on RedHat 9.0 Neha Linux - Software 13 12-29-2003 12:06 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:41 PM.

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