MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old November 8th, 2004, 09:02 AM
wprauchholz wprauchholz is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 1 wprauchholz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
[client 127.0.0.1] PHP Warning: mysql_connect(): Can't connect to local MYSQL....

I read already carefully some threads concerning this topic, but I am not yet able to fix my problem

A) I am runnning FC3 T3 on a DELL LATITUDE laptop D400 with. I am trying to install a php-based application. I am not able to connect to the local MySQL server. The error message
from /var/log/httpd/error_log is: "[client 127.0.0.1] PHP Warning: mysql_connect(): Can't connect to local MYSQL server through socket '/var/lib/mysql/mysql.sock' in var/www/html/xrms/include/adodb/drivers/adodb-mysql.inc.php on line 327
B) MySQL (version -4.17, RPMs downloaded from www.mysql.com) and hhpd
(2.052-2) are up and runnig.
The php installation is as follows (as deliverd on ISO file):
php-odbc-4.3.9-2
php-4.3.9-2
php-jpgraph-1.15-1
php-ldap-4.3.9-2
php-pear-4.3.9-2
php-acid-0.9.6b23-7
php-adodb-4.52-0.fdr.1
php-mbstring-4.3.9-2
php-mysql-4.3.9-2
php-snmp-4.3.9-2
php-domxml-4.3.9-2

C) php.ini; I got a lot of PHP Warnings as depicted underneath until I
removed the following line from php.ini: "extension = mysql.so".
PHP Warning: Function registration failed - duplicate name -> mysql_db_name
in Unknown on line 0

d) <?php phpinfo(); ?> creates the output as shown in attached file

Anybody has an idea what is going wrong? To be honest I am trying to fix this
for a couple of days and I am not able to do it!


I tried everything for a couple of days now, up to re-installing everything,
but I cannot find a fix. I really really would appreciate very much advise of
experts to help me fixing the issue.
Attached Files
File Type: txt phpinfo.txt (16.0 KB, 272 views)

Reply With Quote
  #2  
Old November 22nd, 2004, 11:58 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
Did you install MySQL as a tarball/source or RPM?
I had a similar problem when I installed from the tarball...
I later discovered was the result of me missing a step.

Also, make sure your mysql daemon is running...
try connecting to mysql from the client [as opposed to PHP]

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > [client 127.0.0.1] PHP Warning: mysql_connect(): Can't connect to local MYSQL....


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway