drupal Error establishing a database connection = what?
-
So I’m trying to install WordPress and I’m getting the classic “Error establishing a database connection” error.
I’ve followed along with this:
https://educhalk.org/blog/error-establishing-a-database-connection-how-to-fix-this-wordpress-error/Only thing that might be funny with it is I have a Drupal install already. But that also means I can see that Drupal runs without any database errors, I even tried running WordPress on the same database, just by converting this from the Drupal settings.php:
$db_url = ‘mysqli://BB:CC@localhost/AA’;
to its equivalent in wp-config.php:
define(‘DB_NAME’, ‘AA’);
define(‘DB_USER’, ‘BB’);
define(‘DB_PASSWORD’, ‘CC’);
define(‘DB_HOST’, ‘localhost’);I’ve double-checked that there’s no extra spaces before or after any of those. I can log in to phpMyadmin using the same user/password combo. I’ve tried it both with the same database as I’m running Drupal from, and from a fresh database made for WordPress. The fresh database is completely empty, because it’s giving me this error instead of installing.
What am I missing?
- The topic ‘drupal Error establishing a database connection = what?’ is closed to new replies.