![]() That should fix the links and you can change it back to whichever format you prefer again. Go to WordPress Admin panel ‘ login with the username and password you had been using all along, then go to:ĭashboard > Settings > s > Check Plain and Save Changes. Go to localhost:8888 in browser and WordPress first page should be back but click here and there and you’ll quickly notice that links are broken. Make sure that WordPress ‘wp-config.php’ file points to a database with the same name. Point to ‘mywebsite.sql’ file you made earlier. Give it a name, (again, I made it slightly different to make the sql file I generated). No databases should be there.Ĭlick New in the database tree on the left. Uninstall MAMP and MAMP Pro by putting folders in Trash again. (I made a slight variation in the name to make it different not sure if that’s important or not.) Save file as ‘mywebsite.sql’ somewhere you can find it. Paste into text editor like Text Wrangler (something that doesn’t muck around with formatting). Select ‘mywebsite’ database and select the Export tab. Go to phpMyAdmin panel, should be up and running now. The problem I had here was that all of the database tables were empty and logging into WordPress Admin panel would start a new WordPress installation and that didn’t help. Set WordPress ‘wp-config.php’ file back to MAMP defaults DB_NAME to ‘mywebsite’, username ‘root,’ and password ‘root’. Now, in your backup ‘db’ folder go into ‘mysql’ folder find the folder name of your database (something like ‘mywebsite’ or whatever you named it) and these files:Ĭopy them in the corresponding ‘db > mysql’ folder location and put you contents of “htdocs” back as well. ![]() ‘Hard Drive > Applications > MAMP > htdocs’ I’m posting my solution because I hate to leave a thread hanging for the next poor soul in a similar situation.īackup MAMP content folder too if you use the default location: ![]() Everything went to hell after that.Īs for my fix, I’m not saying this is the best way or even a sensible way, this is just how fixed it after a few hours of trial and error (and tears). I initially borked everything in phpMyAdmin by choosing Privileges tab > Edit Privileges link > Login information link: and I made a unique user name and password and I think selected the radio button “delete the old one from the user tables”.
0 Comments
Leave a Reply. |