The Usual Error – Please Help Me!
-
I know several others have posted about this same problem, but I’m having a hard time following the answers because I am so new at this. I’m a MT refugee…have pity on me.
Ok, so it looks to me like everything in my config file is perfect, but it’s still not working! Arrrgh! I get the “Error establishing a database connection!” thing –
Here’s what I have:
// ** MySQL settings ** //
define(‘DB_NAME’, ‘arrrrgh’); // The name of the database
define(‘DB_USER’, ‘arrrrgh’); // Your MySQL username
define(‘DB_PASSWORD’, ‘passwordishere’); // …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 = ‘wp1’; // example: ‘wp_’ or ‘b2’ or ‘mylogin_’
I was hoping to do two wp blogs so that’s why I changed the table prefix. Localhost is correct, and I went into cpanel to ensure that the username and database were hooked up. Then I got this:
Users in wp
bruce (Privileges: ALL PRIVILEGES)
Connection Strings
Perl $dbh = DBI->connect(“DBI:mysql:wp:localhost”,”bruce”,”<PASSWORD HERE>”);
PHP $dbh=mysql_connect (“localhost”, “bruce”, “<PASSWORD HERE>”) or die (‘I cannot connect to the database because: ‘ . mysql_error());
mysql_select_db (“wp”);
Pardon me, but wtf is this? I don’t know if that’s a good thing or a bad thing.
Five-minute installation? Try five hours! Ugh…help! What am I missing?
- The topic ‘The Usual Error – Please Help Me!’ is closed to new replies.