Wordpress database error
This one did my head in for a while.
After a Wordpress reinstall I could not get the new installtion to connect to a database on a remote server. The error message from the "wp-config.php" file was:
Error Establishing a Database Connection
Everything in the file seemed correct. Wordpress was unable to write the file and had asked me to paste the configuration into the wp-config.php file after creating it.
So I eventually deleted this and modified a copy of the "wp-config-sample.php" file.
Presto! It worked. I believe the issue may have been the encoding of the copy and pasted configuration.
After a Wordpress reinstall I could not get the new installtion to connect to a database on a remote server. The error message from the "wp-config.php" file was:
Error Establishing a Database Connection
Everything in the file seemed correct. Wordpress was unable to write the file and had asked me to paste the configuration into the wp-config.php file after creating it.
So I eventually deleted this and modified a copy of the "wp-config-sample.php" file.
Presto! It worked. I believe the issue may have been the encoding of the copy and pasted configuration.
Labels: database error, wordpress, wp-config
0 Comments:
Post a Comment
<< Home