Error Establishing A Database Connection
-
I can access my wordpress site locally by the IP address. I have created port forwarding rules and can reach the server from my public IP. However when it loads I receive a database error “Error establishing a database connection”.
Any help would be greatly appreciated.
Here is the MySQL section of my wp-config.php file
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘wordpress’);/** MySQL database username */
define(‘DB_USER’, ‘root’);/** MySQL database password */
define(‘DB_PASSWORD’, ‘*****’);/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);/** Database Charset to use in creating database tables. */
define(‘DB_CHARSET’, ‘utf8’);/** The Database Collate type. Don’t change this if in doubt. */
define(‘DB_COLLATE’, ”);
- The topic ‘Error Establishing A Database Connection’ is closed to new replies.