|
-
May 30th, 2002, 03:29 PM
#1
Thread Starter
Stuck in the 80s
MySQL backup?
How can I backup or download or whatever the MySQL databases on my webserver?
-
May 30th, 2002, 04:51 PM
#2
PowerPoster
use phpmyadmin...goto the database summary page
Near the bottom it has a section "View dump (schema) of database"
Click Select All, chose Structure and Data, tick Save As File
Click go, save it somewhere on your HDD
What you now have is an .sql file which contains the SQL queries needed to recreate the whole db...table creation and record insert SQL all there in one file.
If you ever do need to restore it, just run the file through the execute query section by clicking Browse
-
May 30th, 2002, 05:01 PM
#3
Thread Starter
Stuck in the 80s
Sweet. I wonder if I could create a script to do this and make it run once every week?
-
May 30th, 2002, 05:04 PM
#4
PowerPoster
You could copy the relevent code from phpmyadmin
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|