backup, restore and dump tables and databases in mysql
Here is a little guide to help those who do not know how to source in or backup stuff with mysql. You can backup or restore a database or table or just a few records to mysql text files that you can always go back to when something goes wrong. Here I will post a few examples of how to use mysql to backup / restore a database or table and how to drop them.
---------------------Mysqldump-------------------------- Mysqldump.exe is a command much like mysql.exe that has to be executed from c:\mysql\bin directory, it has a lot of options but we will see only the ones we need to generate a text file named <filename> where <filename> is the name you give to the dump: Examples: Dump doors table: Quote:
Quote:
Quote:
Dump doors table conditionally with only nadox doors: Quote:
Quote:
--------Source in and Drop Databases and Tables---------- To restore a sql backup you type this commands from mysql, where you would sign in as root or username with proper rights: Steps: 1- login. You can log in as root or user with rights to drop database. Example: Quote:
Example: Quote:
Example: Quote:
Quote:
Quote:
Quote:
Always remember to backup your data before doing anything with it!!! |
Thank you Thank you THANK YOU Sysadmin!!!
This will really help me :) |
welcome ;)
|
Just wanted to express my appreciation for this short tutorial! VERY AWSOME!
|
in process
I'm in the process of making a backup tool this week - among other little db editing tools I'm going to release this week. I hope it will help those who always need a quick backup method.
GeorgeS |
Awesome, Looking foreward to checking it out!!!
|
all u need
Quote:
whats so hard about that >? |
Who said it was hard? =) I'm just excited about checking out his new utility, the fruit of his hard work. And if I could back up a db or a table or anything else with a gui instead of by command line I'd probably choose the former. I at least want to check it out. It doesn't interest you at all?
I think it's awesome that people can make all these programs by hand. Wow! |
easy
As soon as I figure out the ADODB command set for retrieving the schema, then the utility was be next...
The plan is you can make as many backups of any table or the entire db and restore - all in a simple form and button. GeorgeS |
see link
|
All times are GMT -4. The time now is 03:55 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.