Mamp Mac Error Establishing A Database Connection
Contents |
were looking for could not
Error Establishing A Database Connection Godaddy
be found. I'm sorry, it's not your fault… probably. 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.
» [Resolved] Error establishing a database connection [Resolved] Error establishing a database connection reneekelly @reneekelly 9 months, 3 weeks ago Installing WordPress Locally - using MAMP (v.3.8) Started process with new version of both on Dec. 24, 2015 error establishing a database connection cpanel So far I have: 1) Downloaded WordPress 4.4 2) Launched MAMP 3) Using
Error Establishing A Database Connection Aws
MAMP's phpMyAdmin created a new database - which I named wordpress44 4) Unzipped the WordPress folder and placed it in error establishing a database connection wamp 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 */ define(‘DB_PASSWORD', https://wordpress.org/support/topic/1701453 ‘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 of troubleshooting using existing suggestions & https://wordpress.org/support/topic/error-establishing-a-database-connection-737/ 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, 3 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, 3 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, 3 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 on status it reports: Network traffic since startup: 279.4 KiB This MySQL server has been running for 4 days, 13 hour
6 CommentsI've installed MAMP on my Mac to do some changes to my blog. I tried to set the WordPress wp-config.php file to connect to localhost:8889, but got an error http://www.jackenhack.com/mamp-wordpress-and-error-establishing-a-database-connection/ that It could not connect to the database. After replacing localhost:8889 to 127.0.0.1:8889 it works. My quick guess is that permissions for the root user is set to allow connections 127.0.0.1, but not localhost. Anyway, it works now.My wp-config.php file looks like this:define('DB_NAME', 'wordpress'); /** MySQL database username */ define('DB_USER', 'root'); /** MySQL database password error establishing */ define('DB_PASSWORD', 'root'); /** MySQL hostname */ define('DB_HOST', '127.0.0.1:8889');RelatedFiled Under: Wordpress Tagged With: Apple, mac, Mac OS X, mySQL, PHP, SQL, Web, Wordpress« Doing some measuring on audio moddingNerd night »Comments Janus saysJune 9, 2009 at 12:10 CEST Thanks! Just the solution to my problem too 🙂Reply Gustavo saysJuly 17, 2009 at 05:25 CEST I error establishing a tried doing that and didn't work. Any thoughts as to why?Reply Gustavo saysJuly 17, 2009 at 05:30 CEST Actually it did establish the connection to the database but it now says "WPMU only works without the port number in the URL."Reply Komunitas Blogger Indonesia saysAugust 29, 2009 at 00:50 CEST thankz alot.. simple solution but work…i use windows 7 and i change localhost became 127.0.0.1 and everything work..Reply Tim Tom saysApril 25, 2014 at 15:51 CEST Solved. Thanks you a lot! http://weelii.com/how-to-fix-error-establishing-a-database-connection/Reply Michelle saysJanuary 30, 2015 at 15:17 CEST Thanks. I just solved my problem.Reply Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *CommentName * Email * Website Notify me of follow-up comments by email. Notify me of new posts by email. I'm a Swedish computer old timer hacking away on computers since 1979. I'm a total Apple and Linux gear head. I also do a lot of photography and tinker with electronics. [Read More] Recen