Advanced Web 2012 Lecture 7

5
Advanced Web 2012 Lecture 7 Sean Costain 2012

description

Advanced Web 2012 Lecture 7. Exporting SQL. Exporting your SQL to a singular file is an excellent way to create a portable backup. This SQL file is a single text file that can contain all of the information that is needed to recreate the database and the tables and the raw data if needed. - PowerPoint PPT Presentation

Transcript of Advanced Web 2012 Lecture 7

Page 1: Advanced  Web 2012 Lecture  7

Sean Costain 2012

Advanced Web2012

Lecture 7

Page 2: Advanced  Web 2012 Lecture  7

Sean Costain 2012

Exporting SQLExporting your SQL to a singular file is an excellent way to create a portable backup.

This SQL file is a single text file that can contain all of the information that is needed to recreate the database and the tables and the raw data if needed.

If your system contained the following info and you needed a backup. Exporting is a great way to do this.

Page 3: Advanced  Web 2012 Lecture  7

Sean Costain 2012

Exporting Cont.Steps for Exporting - Click

You are then displayed the following:

Click Go and Save the document

Page 4: Advanced  Web 2012 Lecture  7

Sean Costain 2012

Exporting Cont.From the saved document you will get a tabl.sql file, in this case it looks like this:

The SQL file is a text document, with SQL commands setup in it to restore the table and data.

Page 5: Advanced  Web 2012 Lecture  7

Sean Costain 2012

Backup & Assessment SubmissionWhen it comes to submitting your assessment item, you will zip up your htdocs folder, make an export of your entire database and then email it to me.

This is also a great way of having a backup. Store your data• Uni drive, so it is always with you on campus• Skydrive, so it is always with you anywhere• Dropbox, so it is always with you anywhere

Always, always make a backup of your files. NB. You can recompress a zip file and your sql file together to make a single zip file.When naming these files be descriptive• <name><date><version>.zip• Advweb-12-9-12-v2.zipYou can always put a time in the name as well, but versioning your backups will be just as effective.