Error Establishing a Database connection – The DREADED one..
-
Hi people…
So I followed steps here, (and other sites), to install WP locally in my mac. I downloaded MAMP, (that everyone says it’s soo easy to install), finished the installation while taking these steps:
1. Set the default Apache and MsQl ports
2. Opened up the Start Page and created a “wordpress” database
3. Then re-named and re configured the wp-config.php to:
define(‘DB_NAME’, ‘wordpress’);/** MySQL database username */
define(‘DB_USER’, ‘root’);/** MySQL database password */
define(‘DB_PASSWORD’, ‘root’);/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);and also tried about a million variation of “localhost”, “Localhost”, “localhost:3306” and many more I can’t now remember.
When I try to put url: https://localhost:80/wordpress/
I get the dreaded message of database connection
url: localhost:3306/wordpress
again the same
localhost/wordpress
the same again..I’ve been at this one whole day now, but nothing works. When I downloaded WP i put the whole folder to “htdocks” and left the Apache doc root as is. That didn’t work..!
Then I read somwhere that I have to create a different folder for my own ease and re point the Apache root to that folder. So I created a WP folder in my Docs, copied the WPinstall in there as well…nothing..the same error.Please someone help…I’m supposed to be starting a project and I don’t know what to do. Should I just uninstall the whole thing, (MAMP), and reinstall it again…? Also, in everyone’s tutorials, I notice that when they open the start page of MAMP, it also states the port nu. This is not the case for me, it just reads: https://localhost/MAMP/?language=English
no matter what I do…!Help..pls…urgent..!!!
- The topic ‘Error Establishing a Database connection – The DREADED one..’ is closed to new replies.