Problems with some DB passwords
-
Hi!
I found out, that the firewall does not work correctly, if some characters appear in the DB password. The firewall than shows the error message “Cannot connect to database”.
The reason for this was a DB password containing \\ (two backslashes) which seems to be interpreted as an escaping of characters.
It would help if the firewall DB connection is as robust as the WP DB connection itself.Changing the DB password helped and the firewall is now working correctly.
By the way, your WP DB test script also has a bug, that appears, if your wp-config.php is not in the same directory as the wp-db.php script. In my case, the wp-config.php is one level higher and because in line 33 the fopen directly tries to load “wp-config.php” instead of the $wp_config variable that was filled before, teh wp-config.php cannot be found in this case.
Thanks for listening and fixing. ??
Marc
- The topic ‘Problems with some DB passwords’ is closed to new replies.