Error Establishing A Database Connection Wordpress Localhost Wamp
Contents |
Error establishing a database connection andihawes @andihawes 11 months, 3 weeks ago Dear Forum probably a common one. i have uploaded my WordPress to my site, created an SQL, put the SQL details
Error Establishing A Database Connection Cpanel
into wp-config.php and i get error: Error establishing a database connection
Error Establishing A Database Connection Aws
i understand that this is because the wp-config file cant login to the SQP DB. i have entered error establishing a database connection mamp 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 including the user prefix from hosting? i https://www.elegantthemes.com/blog/tips-tricks/how-to-fix-error-establishing-a-database-connection-in-wordpress 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 dont know where it does that??? Viewing 8 replies - https://wordpress.org/support/topic/error-establishing-a-database-connection-724/ 1 through 8 (of 8 total) Tara @t-p Volunteer Moderator 11 months, 3 weeks 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 from "localhost" to something else. You can get that info from your hosting provider. - Check you have actually cre
a database connection WordPress Local Install Posted by: BrandAgent (204.19.162.---)Date: March 08, 2012 04:30PMERROR TRYING TO INSTALL WORDPRESS LOCALLY WITH WAMPSERVER!Trying to use WampSever http://forum.wampserver.com/read.php?2,82310,82328 to run WordPress locally but getting an error. WampServer icon is green. I open Localhost, click on my project, and get this message:"Error establishing a database connection"RUNNING:Windows Vista Ultimate Version 6.0 (Build 6002: Service Pack 2)WampServer Version 2.2WordPress 3.3.1STEPS LEADING UP TO ERROR:1. created a error establishing new database in phpMyAdmin2. created a new user with user name and password3. gave new user all privelages4. created a new project forlder in the www directory5. copied the contents of my WordPress download to the new folder6. customized the wp-config.php file (database name, error establishing a user name, password, pasted in new authentication keys and salts)7. attempted to instal WordPress (entered "[localhost]; in browser (got error); opened Localhost from WampServer, clicked on "brandagents" under "My Projects" and got error)Options:Reply•QuoteRe: Error establishing a database connection WordPress Local Install Posted by: stevenmartin99 (Moderator)Date: March 08, 2012 04:34PMi dont think you should have touched the wp-config fileyou cant run the installer after you have edited the file.thats the whole purpose of the installer- it edits that file for youstart again Steven Martinstevenmartin99@gmail.comstevenmartin99@hotmail.comPampServer.com - [pampserver.com]Options:Reply•QuoteRe: Error establishing a database connection WordPress Local Install Posted by: BrandAgent (204.19.162.---)Date: March 08, 2012 05:02PMGOT THE SAME ERRORThanks for your response. I started over and ran the installer through the WordPress interface as you suggested and got the following error:Error establishing a database connectionThis either mean