LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-13-2001, 11:40 AM   #1
ashis
LQ Newbie
 
Registered: Jun 2001
Posts: 11

Rep: Reputation: 0


to install php in my linux server redhat 7 and to connect it with mysql i get the following error.......


"
Warning: MySQL Connection Failed: Unknown MySQL Server Host 'localhost;mysql_socket=/var/lib/mysql/mysql.sock' (2)
in /usr/local/apache/htdocs/testphp.php on line 3
Could not connect
"

anybody please help me........



thanks for time.
ashis

 
Old 06-13-2001, 02:54 PM   #2
jrmann1999
Member
 
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306

Rep: Reputation: 30
The obvious question is: Is MySQL running? Make sure by looking at your running processes 'ps -xa' shows everything on the system. The error your getting refers to your DB not being able to be contacted. Make sure you have also already set up MySQL correctly(howto's are good for this) and also make sure that your using a valid user/pass combination in your test script.

 
Old 06-14-2001, 01:28 AM   #3
ashis
LQ Newbie
 
Registered: Jun 2001
Posts: 11

Original Poster
Rep: Reputation: 0
hello jrmann1999,
thanks for ur time.mysql is running o.k.i check this by ps ax ,it may be "valid user/pass combination ".. let me see
thanks again
ashis
 
Old 06-14-2001, 02:35 AM   #4
ashis
LQ Newbie
 
Registered: Jun 2001
Posts: 11

Original Poster
Rep: Reputation: 0
thanks , it is done
i write local host wrongly
 
  


Reply



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
perl problem on redhad wellblue88 Linux - Software 0 09-20-2004 01:12 PM
Partition Magic + XP Pro w/ NTFS + trying to install Linux Redhad 7.2 rvalbuena Linux - Software 7 03-13-2003 11:20 PM
I have faced problem while configuring Kernal in RedHad 8.0 praful Linux - Newbie 1 02-08-2003 11:55 PM
a litlle problem in RedHad 7.2 Module Linux - Networking 2 09-03-2002 08:13 PM
activate apache after redhad 7.1 install csjosh Linux - Software 9 07-21-2002 02:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:48 PM.

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
Open Source Consulting | Domain Registration