If you are working on installing WordPress on an ICDSoft hosted website and are carefully following the steps of the 5 minute installation, you will have no doubt run into a Cannot Connect to Database error.
If you have indeed followed all of the instructions up to this point, you would have created a MYSQL database and ensured the user of this database has sufficient access privileges. The reason you are seeing this error is because the path to the Database host on ICDSoft is not the standard path suggested by WordPress.
Ironically, in earlier version of the wp-config file, there is a comment beside the DB_HOST field that says there is a 99% chance you won’t need to change this value. Well, ICDSoft users fall into the 1% category that will have to change this value. The code from the wp-config file is displayed below:
// ** MySQL settings ** //
define(‘DB_NAME’, ‘database_name’); // The name of the database
define(‘DB_USER’, ‘username’); // Your MySQL username
define(‘DB_PASSWORD’, ‘password’); // …and password
define(‘DB_HOST’, ‘localhost:/tmp/mysql5.sock‘); // 99% chance you won’t need to change this value
As highlighted in bold, the correct path for the DB_HOST is not localhost, it’s localhost:/tmp/mysql5.sock
Add this to your config file, revisit wp-admin/install.php and you are good to go!
Here’s a promo code for 20% your hosting package if you want: http://www.icdsoft.com/promo-code/ICDsoft20