Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 15th, 2007, 11:17 AM   #1
paulchwd
Hobbyist Programmer
 
paulchwd's Avatar
 
Join Date: Mar 2005
Posts: 139
Rep Power: 4 paulchwd is on a distinguished road
Question MySql Backup

Hello All,

I have just started working with MySQl for a small personal project. Although it is small and personal, the data in the database is crucially important.

I have MySQL 5.0.27 running on my local machine, in the event i have to format the machine:

Is there a way to back up the MySql database into a sort of file (like an MDF file) or something i can save to a cd or other disk drive so when i reinstall windows i can just use this magical file to restore my data.

ps: (I do not have my data in scripts my data is inputted into a servlet that connects to the database)

I suppose worst case scenario I could construct a script based on my input and what not..but am looking for an easier way)

Thnaks
paulchwd is offline   Reply With Quote
Old Mar 15th, 2007, 11:28 AM   #2
pegasus001
Hobbyist Programmer
 
pegasus001's Avatar
 
Join Date: Nov 2006
Location: 163H
Posts: 213
Rep Power: 2 pegasus001 is on a distinguished road
If you have installed MySql Administrator then its all easy. Just go to the backup and schedule a backup whenever you want. Look at all the other options about where to save the backup file and stuff like this and if you want to backup it at the moment just click the "backup now" button. The file will be saved as a .sql file. And after you format your computer go again to the MySql Administrator and select restore. This is how you do it. I hope it helps.
__________________
You never test the depth of a river with both feet.
The believer is happy. The doubter is wise.
Free speech carries with it some freedom to listen.
The next generation will always surpass the previous one. It`s one of the never ending cycles of life.
pegasus001 is offline   Reply With Quote
Old Mar 15th, 2007, 11:30 AM   #3
demon101
Hobbyist Programmer
 
demon101's Avatar
 
Join Date: Mar 2006
Location: westboro, ohio
Posts: 159
Rep Power: 0 demon101 is an unknown quantity at this point
Send a message via Yahoo to demon101
well see i build websites and some of them i build you have to use mysql and they have a thing you can click and will will save teh database as .sql.gz

so if the site ever goes down the only thing i have to do is back and reupload that back up of the database and it will fix everything

but it depends if you are goin to add a little program to the thing you are making to back up the database like every 12 hours or like every 6 hours
or you could go into the mysql admin panel and do a back manually and save it to your computer.
__________________
Demon101 Production's

Code Forums
demon101 is offline   Reply With Quote
Old Mar 15th, 2007, 11:49 AM   #4
pegasus001
Hobbyist Programmer
 
pegasus001's Avatar
 
Join Date: Nov 2006
Location: 163H
Posts: 213
Rep Power: 2 pegasus001 is on a distinguished road
Quote:
Originally Posted by demon101 View Post
... back up the database like every 12 hours or like every 6 hours
or you could go into the mysql admin panel and do a back manually and save it to your computer.
Well the MySql Administrator has a schedule backup option.
__________________
You never test the depth of a river with both feet.
The believer is happy. The doubter is wise.
Free speech carries with it some freedom to listen.
The next generation will always surpass the previous one. It`s one of the never ending cycles of life.
pegasus001 is offline   Reply With Quote
Old Mar 15th, 2007, 11:56 AM   #5
demon101
Hobbyist Programmer
 
demon101's Avatar
 
Join Date: Mar 2006
Location: westboro, ohio
Posts: 159
Rep Power: 0 demon101 is an unknown quantity at this point
Send a message via Yahoo to demon101
i know that i mess with a lot of sql and things when i build websites
__________________
Demon101 Production's

Code Forums
demon101 is offline   Reply With Quote
Old Mar 15th, 2007, 12:04 PM   #6
pegasus001
Hobbyist Programmer
 
pegasus001's Avatar
 
Join Date: Nov 2006
Location: 163H
Posts: 213
Rep Power: 2 pegasus001 is on a distinguished road
Once a prison director was waiting for a letter from regarding one of its prisoners, if he had to release or execute him. Finally the letter came and this was written from the judge :
"Freedom no death."
__________________
You never test the depth of a river with both feet.
The believer is happy. The doubter is wise.
Free speech carries with it some freedom to listen.
The next generation will always surpass the previous one. It`s one of the never ending cycles of life.
pegasus001 is offline   Reply With Quote
Old Mar 15th, 2007, 12:38 PM   #7
paulchwd
Hobbyist Programmer
 
paulchwd's Avatar
 
Join Date: Mar 2005
Posts: 139
Rep Power: 4 paulchwd is on a distinguished road
MySql Administrator does that come with the standard binary of MySql or is it a separate download

Thanks

i think there should be an entire room here for database programming
paulchwd is offline   Reply With Quote
Old Mar 15th, 2007, 12:43 PM   #8
pegasus001
Hobbyist Programmer
 
pegasus001's Avatar
 
Join Date: Nov 2006
Location: 163H
Posts: 213
Rep Power: 2 pegasus001 is on a distinguished road
MySql Administrator is freely downloadable at mysql.com along with MySql Query Browser.
__________________
You never test the depth of a river with both feet.
The believer is happy. The doubter is wise.
Free speech carries with it some freedom to listen.
The next generation will always surpass the previous one. It`s one of the never ending cycles of life.
pegasus001 is offline   Reply With Quote
Old Mar 15th, 2007, 12:56 PM   #9
pegasus001
Hobbyist Programmer
 
pegasus001's Avatar
 
Join Date: Nov 2006
Location: 163H
Posts: 213
Rep Power: 2 pegasus001 is on a distinguished road
Go here in order to download the gui tools.
__________________
You never test the depth of a river with both feet.
The believer is happy. The doubter is wise.
Free speech carries with it some freedom to listen.
The next generation will always surpass the previous one. It`s one of the never ending cycles of life.
pegasus001 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQl simple problem paulchwd Other Web Development Languages 7 Feb 27th, 2007 10:31 AM
MySql paulchwd Other Web Development Languages 8 Feb 8th, 2007 9:17 PM
Backup Search grimpirate C 3 Jul 3rd, 2006 7:49 PM
Tutorial - Using MySQL in C# Darkhack C# 12 Jan 17th, 2006 9:28 AM
Backup Script :-) Pizentios Perl 18 Jan 12th, 2006 10:50 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:43 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC