error message re: wp-config
-
Hi, I’m a newbie so please bear with me π
I followed the installation instructions for cpanel at codex.ww.wp.xz.cn to the letter. However, whenever I try to access http://www.example.com/wordpress/ I receive the following error message:
“This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.”
I double checked my user name, database name, and password and they’re all correct. My host is up and running.
The following is what’s in MySQL:
Users in wordpress
XXXX_ (Privileges: ALL PRIVILEGES)Connection Strings
Perl $dbh = DBI->connect(“DBI:mysql:XXXX_wordpress:localhost”,”XXXX_”,”<PASSWORD HERE>”);
PHP $dbh=mysql_connect (“localhost”, “XXXX_”, “<PASSWORD HERE>”) or die (‘I cannot connect to the database because: ‘ . mysql_error());
mysql_select_db (“XXXX_wordpress”);The following is what appears in my wp-config.php file:
<?php
// ** MySQL settings ** //
define(‘DB_NAME’, ‘XXXX_wordpress’); // The name of the database
define(‘DB_USER’, ‘XXXX_’); // Your MySQL username
define(‘DB_PASSWORD’, ‘YYYY’); // …and password
define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value// Change the prefix if you want to have multiple blogs in a single database.
$table_prefix = ‘wp_’; // example: ‘wp_’ or ‘b2’ or ‘mylogin_’// Change this to localize WordPress. A corresponding MO file for the
// chosen language must be installed to wp-includes/languages.
// For example, install de.mo to wp-includes/languages and set WPLANG to ‘de’
// to enable German language support.
define (‘WPLANG’, ”);/* Stop editing */
define(‘ABSPATH’, dirname(__FILE__).’/’);
require_once(ABSPATH.’wp-settings.php’);
?>I haven’t the faintest idea how to fix this.
The topic ‘error message re: wp-config’ is closed to new replies.