This topic was modified 2 years, 9 months ago by pykwix. Is there anything that I forgot to do? That I did wrong? Any help would be greatly appreciated, I’ve been stuck on this for so many hours… Still, when I use MAMP (both Apache and MySql servers are said to be running), and click on my local website (redirects to all that I can see is a big “Error establishing database connection”. – DB_PASSWORD : the password that I use to log into PhPMyAdmin. Make Sure Your Domain Is Pointing to Your Host Provider 2. Confirm your DBNAME variable in your wp-config.php file corresponds to the database. How to Fix the WordPress Error Establishing a Database Connection in 6 Methods 1. – DB_USER : the username I use to log into the local PhpMyAdmin (it’s “root”). Why do I get the error message Error establishing database connection. – DB_NAME : the name of the database which I imported in PhpMyAdmin These are the changes I made to wp-config.php: If you didn’t you a password please try the following. In fact, even when prompting mysql -u root -p, and then prompt USE db_name, everything works well. Hi there, Looking at the wp-config.php snippet you provided, it looks like you didn’t use a password or removed it to post it here. I replaced the Username Password and db_name with the ones that I use in PhpMyAdmin. Now, I have to edit the wp-config.php in MAMP/htdocs/my_website_name in order to tell the local website to use the right database. – Import the database in “local” PhpMyAdmin of MAMP – Download my website’s database using mysqldump in terminal – Download WP files of my website with filezilla If you find anything of the following procedure to be wrong, don’t hesitate to point it out. But everything is way more complicated than I expected. I’m trying to use my WordPress website locally (to test changes before making them to the live website).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |