Open wp-config.php file and add those lines below define(‘WP_Debug’,’false’;);
define('WP_HOME','http://localhost/yoursite-dir');
define('WP_SITEURL','http://localhost/yoursite-dir');
Alternatively, using your local database tool (generally phpMyAdmin), find and edit the siteurl and home fields of the wp_options table in your WP database.
If the location of the WP install is, as you indicated wordpress,then use the complete path:
http://localhost/wordpress
Tried both of the suggestions above. That allows me to get back to the wp-login screen, but it won’t let me log in with my previous password. Tried resetting my password but I never receive reset emails. Any ideas?
Unless you have a properly configured email server running on your local system, you will not have password reset facilities.
To manually reset your password, follow these instructions:
http://codex.wordpress.org/Resetting_Your_Password#Through_phpMyAdmin
I changed my username and password using phpMyAdmin as instructed but still can’t log in for some reason. I’m still getting:
ERROR: The password you entered for the username xyz123 is incorrect. Lost your password?
Did you make sure that you selected MD5 from the dropdown for the password? 🙂
– completely delete the value currently in the password field
– enter a value, for example, 123123 (as this is a local install, it doesn’t need to be strong)
– select MD5 from the dropdown for the user_pass varchar(64) field
– click “Go”
That should do it 🙂
That did it. You’re a life-saver Lyle. Thanks a lot!