About a month ago I installed b2 Evolution and customized the template to my liking. About two weeks later, I recieved an error that said:
Can't connect to the database server. MySQL said:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
This frustrated me immensly. After a two weeks of pulling my hair out and lavishing my newly bald head in the sun, I decided to clear my host of all b2 related files and found Word Press. (The lack of hair must have allowed me to think more clearly.)
Anyway I downloaded the latest version and uploaded the files. I entered my database data into the wp-config-sample.php file and renamed it to wp-config.php.
I then went to /wp-admin/install.php and got this error:
Error establishing a database connection! This probably means that the connection information in youn wp-config.php file is incorrect. Double check it and try again.
* Are you sure you have the correct user/password?
* Are you sure that you have typed the correct hostname?
* Are you sure that the database server is running?
I’m assuming this is the same problem I had with B2 Evo.
Here is what I have in the config file:
/** WordPress’s config file **/
/** http://wordpress.org/ **/
// ** MySQL settings ** //
define(‘DB_NAME’, ‘*&*&*&*&*&*&’); // The name of the database
define(‘DB_USER’, ‘&*&*&*&*&*&’); // Your MySQL username
define(‘DB_PASSWORD’, ‘*&*&*&*&*&*’); // …and password [NOT ENTERED ON FORUMS]
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_’
/* Stop editing */
$server = DB_HOST;
$loginsql = DB_USER;
$passsql = DB_PASSWORD;
$base = DB_NAME;
// Get everything else
1and1 gives me the the following Host Name:
I tried to use that, but I get the same error.
I have no hair left… what the heck is going on?
- You must be logged in to reply to this topic.