MySQL Backup, Transfer and Restore Jeremy Shafer Department of MIS Fox School of Business Temple University
Objective We want to be able to move our work from our personal development systems (e.g. your laptop, or the class computers) to a server. Only when your code and data have been made available on a server environment will they be of any practical use.
A tale of two systems… Your System The MIS3501 server Apache Web Service Apache Web Service PHP Interpreter PHP Interpreter MySQL MySQL
They are not automatically “synched” They are not automatically “synched”. Direct database connectivity is not permitted. Your System The MIS3501 server Apache Web Service Apache Web Service PHP Interpreter PHP Interpreter MySQL MySQL
We need to do two things #2 Copy the files (.php, .css, .html, etc.) Your System MIS3501 Apache Web Service Apache Web Service PHP Interpreter PHP Interpreter MySQL MySQL #1 Backup, Transfer, and Restore our database tables But look out! When our database moves, our connection credentials will change
? So here is the process… #1. Get your code working locally. #5. Test. Is the code working on the server? #2. Upload your database to the server. #4. Copy your php files using SSH #3. Update your connection parameters
Time to give it a try…