ecedelson
Forum Replies Created
-
Forum: Installing WordPress
In reply to: Error establishing a database connectionSolved – somehow the user’s privileges had been removed. I restored them and all’s well.
Forum: Installing WordPress
In reply to: Error establishing a database connectionI have a related issue (I think), but my php, mysql and mysql client are all up to date.
All worked fine until I changed over to mysql 4.1.14 (not the standard OSX install that was running when I installed WP) and now the WordPress PHP scripts can’t find mysql:
“Error establishing a database connection, etc.”Short story: mySQL is running, database is ok, but I think PHP is looking for the old instance of mySQL which is not running, and I don’t know how to redirect it.
Details:
mysql 4.1.14, php 4.3.11, apache and wp1.5.1.3 on OSX 10.4.4, with a static IP.wp-config.php has correct login and password (nothing’s changed)
mysql is running — I can connect from command line and MySQL Administrator
ps shows: /usr/local/mysql/bin/mysql is running
this is the new version I installedphpinfo() shows: support is enabled for /var/mysql/mysql.sock
but MySQL Administrator says the instance of mysql actually running uses /tmp/mysql.sock
phpinfo() shows: Client API version 4.1.13a
but MySQL Admin says MySQL Client Version 5.0.4So I think PHP is looking for the old instance of mySQL.
I edited /etc/php.ini: mysql.default_socket = /tmp/mysql.sock — no luck
I reset the password manually – probably not necessary:
set password for ‘wpuser’@’localhost’=OLD_PASSWORD(‘xxxxxxxx’); — nopeI tried setting define(‘DB_HOST’, ‘my.host.com’); — No luck
Added “Error: $my_errstr;” to the code in wp-db.php but it doesn’t report anything.
I flushed the browser cache each time.
Running out of ideas.
Thanks in advance for your time.