Error Establishing A Database Connection With Xampp
Contents |
Error establishing a database connection manjit126 @manjit126 11 months ago I am using Windows7 .I am trying to install WordPress both on my PC and Laptop ,but getting the following Error Error establishing a database connection This either
Error Establishing A Database Connection Digitalocean
means that the username and password information in your wp-config.php file is incorrect error establishing a database connection wamp or we can't contact the database server at localhost. This could mean your host's database server is down. Are you error establishing a database connection chrome sure you have the correct username and password? Are you sure that you have typed the correct hostname? Are you sure that the database server is running? If you're unsure what these terms http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/ mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums. Viewing 3 replies - 1 through 3 (of 3 total) Tara @t-p Volunteer Moderator 11 months 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 https://wordpress.org/support/topic/error-establishing-a-database-connection-728/ 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 created a database with the same database name as is in your wp-config.php file. - Last, but not least, if all that information is correct your database probably has a problem with it. Contact your hosting provider if the database server is offline (if the problem suddenly happened), or if they have any other problem at their end, or they made any changes to your account, or if there
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site http://stackoverflow.com/questions/20213659/how-to-resolve-error-establishing-a-database-connection-on-wordpress-xampp-loc About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss http://kajabity.com/2012/10/error-establishing-a-database-connection-with-xamp-mysql-and-wordpress/ Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How to Resolve error establishing “Error Establishing a Database Connection” on WordPress XAMPP Localhost for Google App Engine up vote 2 down vote favorite 1 Following Google App Engine's instructions for creating a local WordPress development platform, I created the database and initial user using the instruction's MySQL direction: CREATE DATABASE IF NOT EXISTS wordpress_db; CREATE USER 'wp_user'@'localhost' IDENTIFIED BY 'wp_password'; GRANT ALL PRIVILEGES ON wordpress_db.* TO 'wp_user'@'localhost'; After running error establishing a it without errors reported, MySQL subsequently reported back: CREATE DATABASE IF NOT EXISTS wordpress_db;# 1 row affected. CREATE USER 'wp_user'@'localhost' IDENTIFIED BY 'wp_password';# MySQL returned an empty result set (i.e. zero rows). GRANT ALL PRIVILEGES ON wordpress_db.* TO 'wp_user'@'localhost';# MySQL returned an empty result set (i.e. zero rows). While the command line runs dev_appserver.py, I try reaching the WordPress app and get instead: Error establishing a database connection I've removed and recreated the database (wordpress_db) and user (wp_user) without reaching the WP app. Any suggestion how to resolve this is appreciated. Thanks, this is my App Engine log: 2013-11-26 17:40:25 Running command: "['C:\Program Files\Python27\python.exe', u'C:\Program Files\Google\google_appengine\dev_appserver.py', '--skip_sdk_update_check=yes', '--port=8080', '--admin_port=8000', u'C:\Documents and Settings\User\My Documents\Catalyx\Catalyx-GoogleAppEngine\Catalyx']" 2013-11-26 17:40:26 (Process exited with code -1073741515) wordpress google-app-engine share|improve this question edited Nov 28 '13 at 21:09 Isaac Bennetch 4,8621821 asked Nov 26 '13 at 9:55 Catalyx 781310 can you paste the error from the LOGS of appengine??? –CyberBoy Nov 26 '13 at 17:17 @CyberBoy Log appended above. Thanks. –Catalyx Nov 26 '13 at 17:59 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote accepted As you have menti
October 25, 2012 at 11:26 pm by Simon Williams Thought some people might find it useful to see how I managed to solve this… So, this week I determined to do a little more work on the code for this blog – a new plugin. However, as I have recently updated my laptop I needed to re-install all the tools – Eclipse, Ant, XAMPP – and setup the XAMPP test instances of the blog. I ran up XAMPP and used phpMyAdmin to setup a test WordPress database and user. Then I used Eclipse to edit the wp-config.php file for the XAMPP installation and finally a little ANT script to rebuild the blog into the XAMPP directory. At this point, I expected to launch immediately in to the blog at “http://localhost:8080/www.kajabity.com” ready to do the setup and install a backup from the live blog to play around with. No such luck! Instead I got the following: Well, I tried all the obvious things – checked the password, username, checked everything was up and running. Nothing obvious. I added and removed the user and database several times – but to no avail. I tried Google – and found a few others with suggestions, but nothing that worked. But, eventually, I noticed that the one detail was a little odd. When creating the users I had left the “Host” setting to be the default “Any host” – which results in the “Host” column in the Users list showing “%”. So, I changed the user (using the Edit Privileges link) and set the Host to be “localhost” – using the “Create a new user with the same privileges and … delete the old one from the user tables.” option. That worked. I’ve shown the user that worked (wordpress_user) and another one that causes the problem (badwp_user) in the screenshot below: Hope that helps some of you. Tags: MySQL, WordPress, XAMPP Posted in WordPress « Test Drive Apache Maven on Your Existing Projects Black Blinking Cursor at Start-up on my New Dell Laptop » 10 comments on ““Error establishing a database connection” With XAMP, MySQL and WordPress” RS says: 31st October 2012 at 11:39 am Just wanted to thank you as I was having this problem and it was driving me crazy. Nothing I could find helped aside from this which seems to have been posted just 5 days ago. Just in time! Reply peshu says: 5th November 2012 at 10:55 am create a database manually in phpadmin. point that database name in your wp-config.php script and run the script. Reply Ben says: 10th April 2013 at 1:19 pm Thank you… Reply raghavendar says: 18th November 2013 at 5:59 pm The problem may be due to high memory usage and you may not have creat