![]() Backup /Applications/MAMP/htdocs (your websites!).~ $ mysqldump -u root -p -databases database_name > database_name_backup.sql Or, if you prefer, just grab the ones you need one at a time: So if you use a separate user/password for each of your databases, make sure you know what those are / how to set them up later. Also, this does not preserve users and permissions. If you want to be up and running quickly with specific sites, try the next command instead. Note that this will dump “ALL” databases into a single file. ~ $ mysqldump -u root -p -all-databases > database_backups.sql Get all databases (grab a beer and a sandwich, this could take a while): Backup and cleanup Dump and backup databases from MAMP’s environment: In other words, it may take you longer than you like to get back up and running. It can be fraught with peril – and subsequent triumph – for the determined soul. So, what to do? First, a disclaimer: the following guide is what you would call an ‘overhaul’ of your development environment. It eats memory like a pig, has a hard time following directions, and does not play nice with others. It is an added layer to the already complex set of layers standing between your keyboard and a web application. It lives off in its own little world on your computer, oblivious to the endless stream of change in the real world of web development. This is the fly in the ointment when it comes to MAMP. Then one day, out of nowhere, it reared its ugly head when I had the audacity to try to use the ImageMagick extension for PHP. It handled all those pesky VHosts and hosts file entries for me. It had this nice little button labeled “Start”, and then it would turn green when it was ready. Are you using MAMP Pro for web development? Has it ever caused you to drink heavily while simultaneously banging your head against the keyboard? Follow this guide, and you will never have to experience the horror that is the MAMP stack again!ĭon’t get us wrong – MAMP was great for a while.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |