Error establishing a database connection! – Please
-
Please help
I get the following message when establishing an msqyl database in my cpanel:
Connection Strings
Perl $dbh = DBI->connect(“DBI:mysql:patreed4_wp:localhost”,”patreed4_pj”,”<PASSWORD HERE>”);
PHP $dbh=mysql_connect (“localhost”, “patreed4_pj”, “<PASSWORD HERE>”) or die (‘I cannot connect to the database because: ‘ . mysql_error());
mysql_select_db (“patreed4_wp”);
When connecting to my web page at http://www.gotanevnet.com/wordpress/wp-admin/install.php I get the following message:
Error establishing a database connection! This probably means that the connection information in your 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 also get the following on my main page:
Forbidden
You don’t have permission to access / on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.31 Server at http://www.gotanevent.com Port 80
I have read the forums regarding this error message but nothing has worked for me. Any help would be greatly appreciated.
- The topic ‘Error establishing a database connection! – Please’ is closed to new replies.