However, when I made the change, my site become unaccessible. I did these: Created database and imported my live website database through MAMP PHPAdmin. Themes and plugins load fine on localhost but it is not reading my database, so pages are not loading. Instead of "wp_", the prefix used is "wp_landing". I installed MAMP free on Mac 10.11.6 El Capitan. Am I missing a step? I've already double checked the database name, username, and password to make sure they are accurate.Įdit: I eventually realized that I was using the wrong prefix. Nonetheless, when type in my local site's URL, it takes me to the WordPress install page. Once the database was created, I imported a fresh copy of the production site's database.Īfter the database was set up, I renamed the wp-config-example.php file to wp-config.php and added the following properties: define('DB_NAME', 'landing') I also also created a database within phpmyadmin called 'landing'. I've successfully cloned the git repo into the htdocs directory in MAMP. Username and Password to connect are the default of root and root. Ive tried changing localhost to 127.0.0.1 in the wp-config file, but that borks outright. Click on Continue button to proceed with each step of the installation. We were looking for issues with mysqli on the server, turned out to be an invalid character in the password. Solved our issue with an OpenCart install on Cpanel. Im using MAMP and trying to connect a database i set up in phpmyadmin. Installer package will start downloading to your Downloads folder once download is completed double click on the file to open the installer. Im really new to this literally only started the other day. Im connecting via localhost and the database is created just fine and I can see that there. Go to MAMP site and download the latest MAMP for macOS. I'm trying to get a live website working on my local MAMP environment. Im using MAMP PRO and all of the settings in the wp-config.php file are correct. First off, I'm a WordPress noob, so I apologize if there is an easy solution. Check Your WordPress Database Credentials The most common reason for database connection error in WordPress is incorrect database credentials.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |