Posted by Dan on 09/27/05 00:55
Hi,
I can't figure out why PHP can't access any MySQL databases on my Fedora
2.6.8. I have no problem executing php scripts that do not deal with MySQL.
Also, I have no problem accessing MySQL databases using mysql (locally or
remotely).
phpinfo() reports '--with-mysql=shared,/usr' '. Initially I thought that
certain php's and mysql defaults are not in sync so I created /etc/my.cnf
with:
[client]
socket=/var/lib/mysql/mysql.sock
port=3306
[myssqld]
socket=/var/lib/mysql/mysql.sock
port=3306
and then updated /etc/php.ini as follows:
mysql.default_socket = /var/lib//mysql/mysql.sock
mysql.default_port = 3306
I restarted both Apache and MySQL. Still no luck.
I'm running Apache 2.0.51 and PHP 4.1.
Could someone please give me some ideas what could be wrong here?
Thanks,
Dan.
[Back to original message]
|