Error Establishing A Database Connection Localhost
Contents |
establishing a database connection [Resolved] localhost shows Error establishing a database connection jlcohoon @jlcohoon 1 month, 1 week ago I recently installed WP and MAMP. My website is fine but my local version is not working. It error establishing a database connection hostgator shows, "Error establishing a database connection." I use Dreamhost. My wp-config file
Error Establishing A Database Connection Digitalocean
includes the db_name shown on Dreamhost for my site. That is also where my MySQL username, password, and hostname have
Error Establishing A Database Connection Chrome
been copied from. There are no typos or extra spaces in my wp-config file. I created a new DB via MyPHPAdmin. It is titled the same thing as the DB name http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/ in my wp-config file and as what Dreamhost shows. MAMP is set to the default port settings and points directly to my root folder. MAMP shows Apache and MySQL running. I confirmed by logging into mysql.mysitename.com that my username and password are functioning correctly. Any ideas why I might still be getting the DB connection error? Viewing 2 replies - 1 through 2 (of https://wordpress.org/support/topic/localhost-shows-error-establishing-a-database-connection/ 2 total) Clayton James @claytonjames 1 month, 1 week ago Running WordPress locally on MAMP and having a live site hosted on Dreamhost, are mutually exclusive. The two aren't going to be connected. Don't use your Dreamhost datbase info for your live site in your local installation. It won't work. jlcohoon @jlcohoon 1 month, 1 week ago Thank you! I can't believe I didn't realize. For future thread readers: I copied the content directly from step 4 here: https://codex.wordpress.org/Installing_WordPress_Locally_on_Your_Mac_With_MAMP#Step_1:_Installing_MAMP into my local copy of wp-config, then updated my DB name in MyPHPAdmin to match the DB name I updated in the wp-config file. Saved the file, restarted the servers via MAMP, and it was fixed. Viewing 2 replies - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Topic Info In: Localhost Installs 2 replies 2 participants Last reply from: jlcohoon Last activity: 1 month, 1 week ago 4.6 Status: resolved Topic TagsdatabaselocalhostMAMPwp-config Forum Search Search for: About Blog Hosting Jobs Support Developers Get Involved Learn Showcase Plugins Themes Ideas WordCamp WordPress.TV BuddyPress bbPress WordPress.com Matt Privacy License / GPLv2 Code is Poetry.
database connection [Resolved] Error establishing a database connection reneekelly @reneekelly 9 months, 2 weeks ago Installing WordPress Locally - using MAMP (v.3.8) Started process with new version of both on Dec. 24, 2015 So far I https://wordpress.org/support/topic/error-establishing-a-database-connection-737/ have: 1) Downloaded WordPress 4.4 2) Launched MAMP 3) Using MAMP's phpMyAdmin created a new database - which I named wordpress44 4) Unzipped the WordPress folder and placed it in my MAMP application folder's htdocs folder. 5) Opened up the wp-config-sample.php file and filled in the required information - define(‘DB_NAME', ‘wordpress44’); /** MySQL database username */ define(‘DB_USER', ‘root’); /** MySQL database password */ error establishing define(‘DB_PASSWORD', ‘root’); /** MySQL hostname */ define(‘DB_HOST', ‘localhost'); 6) Saved my edited file as wp-config.php. 7) Made sure MAMP is running & opened up firefox and point it to: localhost:8888/wordpress - (which is the name of the wordpress folder) & I receive the message: Error establishing a database connection I have been on all the help threads I can find - 12 hrs error establishing a of troubleshooting using existing suggestions & I am still stuck. I truly appreciate help in solving this so I can install wordpress for the first time. Thank you for time & assistance. Viewing 15 replies - 1 through 15 (of 22 total) 1 2 → Artur Bobinski @kentonwebdesign 9 months, 2 weeks ago Are you sure that your MYSQL is on localhost? Try your PC IP address. You can also try; localhost:3306, making sure you are connecting to the right port. officialsabbir @officialsabbir 9 months, 2 weeks ago /** MySQL database password */ define(‘DB_PASSWORD', ‘root’); i hope you put wrong :)Remove Database password. Try to put on this.. /** MySQL database password */ define(‘DB_PASSWORD', ‘’); reneekelly @reneekelly 9 months, 2 weeks ago I forgot to add that I am working on a Mac - Os X Yosemite v. 10.10 Re: localhost: I attempted that before & tried again with your suggestion & still the same message. When I go open MAMP, go to phpMyAdmin (under tools) & click on the created database (wordpress44) under Privileges it shows user - root host - localhost When I click