Error Establishing A Database Connection Wordpress Localhost Xampp
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have what does error establishing a database connection mean Meta Discuss the workings and policies of this site About Us error establishing a database connection cpanel Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with
Error Establishing A Database Connection Aws
us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/ just like you, helping each other. Join them; it only takes a minute: Sign up How to Resolve “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 http://stackoverflow.com/questions/20213659/how-to-resolve-error-establishing-a-database-connection-on-wordpress-xampp-loc 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 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 a
locally on my pc (windows 7) with xampp. I have followed the directions to the T and still can not get passed this Error establishing a database connection. https://teamtreehouse.com/community/error-establishing-a-database-connection I have even gone as far as uninstalling xampp and starting over from the beginning twice. I have turned off my firewall and am really out of ideas on what to do. any help would be greatly appreciated! 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 error establishing 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 hostname? Are you sure that the database server is running? If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums. 10 Answers Matthew Campbell 8,835 error establishing a Points Matthew Campbell Matthew Campbell 8,835 Points almost 3 years ago The X next to the green highlighted word is to delete the module from XAMPP so has no bearing. What details are you using in your wp_cofig.php file? Have you prefixed your database with anything other then wp_? Use these settings, they're the default and should work. Server - localhost, username - root, password - (leave it blank. no password for root user). prefix - wp_ Prefix is always wp_ unless you've changed it. It's the last box you see during install and has wp_ in there as standard. Kyle Starkey 4,444 Points Kyle Starkey Kyle Starkey 4,444 Points 3y ago Thank you. Leaving prefix as wp_ and password blank worked. PRO Moriah Sella Pro Student 25,756 Points Moriah Sella Moriah Sella Pro Student 25,756 Points almost 3 years ago Did you try to delete a database and create a new one? Cz it stores that first information that you've set and it's using it again and again. Kyle Starkey 4,444 Points Kyle Starkey Kyle Starkey 4,444 Points 3y ago I will try that now. Kyle Starkey 4,444 Points Kyle Starkey Kyle Starke