![]() ![]() You could also do a backup and restore with mysqldump, but a copy is probably simpler especially since this is only for development. Now copy the old databases to the new: cp -a įinally, start the MAMP Pro instance and confirm whether the databases are present. You should be able to do this by running the following in a shell: cp -a (If the icon or menu say 'Stop Servers' instead, click 'Stop,' wait a few seconds for the servers to stop, then click 'Start' again. Delete the database folder and its contents in your case the database name is wordpress: rm -r /Library/Application Support/. Next, make a backup of the MAMP Pro MySQL installation's datadir. Delete all files (not folders) from /Applications/MAMP/db/mysql directory. Then you will need to stop and restart the Apache and MySQL servers using the MAMP, control panel and when you are done, you can use phpinfo check to make sure. Greg, You should be able to turn on the MySQL Server by clicking the 'Start Servers' icon in the MAMP dialog window, or by going to Servers > Start in the top menu. You can very easily manually turn it off in the terminal. ![]() ![]() This is important because if they are running, you won't be able to make a consistent copy of the data. If MySQL isnt starting it is pretty likely that it could already be running. That will tell you where the databases are for each installation. If you have a MAMP Localhost installation on your Apple Mac and you’ve recently upgraded to Mac OS X Yosemite, you may have noticed that for some reason Apache Server or MySQL Server just won’t start or both of them won’t budge at all. I've never used MAMP or even heard of it until I read this question, but if both MySQL installations are the same base version of MySQL you can probably fix this by copying the databases from one installation's data directory to the other.įirst, run the following in MySQL in each MySQL installation: SHOW GLOBAL VARIABLES LIKE 'datadir' ![]()
0 Comments
Leave a Reply. |