|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
[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. |
|
#2
|
||||
|
||||
|
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] |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > [client 127.0.0.1] PHP Warning: mysql_connect(): Can't connect to local MYSQL.... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|