Correct Database Error Host Server
Contents |
Error establishing a database connection stephrek @stephrek 11 months, 2 weeks ago Hello! I have installed MAMP on my pc running windows 7 to develop a local website using wordpress. I have access error establishing a database connection mamp to phpmyadmin so my database server is not down, and I am error establishing a database connection digitalocean also 110% sure that my wp-confq.php file is accurate with the correct database, host, username, and password. I error establishing a database connection xampp created a database called "wordpress" and am on the localhost. By default I am under the impression that I am to use "root" for the username and password. I keep http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/ getting the following error, "Error establishing a database connection 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. Are you sure you have the correct username and password? Are you sure that you have typed the correct https://wordpress.org/support/topic/error-establishing-a-database-connection-723/ hostname? Are you sure that the database server is running?" I have checked all of my firewall settings as well to make sure they are not blocking access to the server. I have searched several forums but cannot seem to find the answer after two days of research. Thank you in advance! Viewing 5 replies - 1 through 5 (of 5 total) Tara @t-p Volunteer Moderator 11 months, 2 weeks ago In nutshell, you're getting this error because WP is unable to establish a database connection. Reason why WP is unable to establish a database connection can vary. It could be that your database login credentials are wrong or have been changed. It could be that your database server is unresponsive. It could be that your database has been corrupted. Majority of the times this error happens because of some sort of server error. Also, there could be other factors as well. To troubleshooting this problem: - double check your wp-config.php file settings for the database name, database username and database password, and the host name (e.g., "localhost" Vs. somet
Error establishing a database connection andihawes @andihawes 11 months, 1 week ago Dear Forum probably a common one. i have uploaded my WordPress to my site, created an SQL, https://wordpress.org/support/topic/error-establishing-a-database-connection-724/ put the SQL details into wp-config.php and i get error: Error establishing a database connection i understand that this is because the wp-config file cant login to the SQP DB. i have entered the details from my hosting to the file. where my hosting uses ‘user_DBname', i have entered ‘user_DBname' and not ‘DBname'… is that correct error establishing including the user prefix from hosting? i have changed the 3 attributes asked to change: NAME USER PASSWORD i havent changed HOST as its sat at ‘localhost'. i use a hosting with cPanel so i think thats correct… have i missed something? i edited the wp-config file myself as it talks about it setting automatically but i error establishing a dont know where it does that??? Viewing 8 replies - 1 through 8 (of 8 total) Tara @t-p Volunteer Moderator 11 months, 1 week ago Error connecting to your database: In nutshell, you're getting this error because WP is unable to establish a database connection. Reason why WP is unable to establish a database connection can vary. It could be that your database login credentials are wrong or have been changed. It could be that your database server is unresponsive. It could be that your database has been corrupted. Majority of the times this error happens because of some sort of server error. Also, there could be other factors as well. To troubleshooting this problem: - double check your wp-config.php file settings for the database name, database username and database password, and the host name (e.g., "localhost" Vs. something else). This is where most errors occur. - Then make sure wp-config.php is in right location. - Then check that you don't need to change the database host