Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old August 8th, 2008, 02:38 PM
Newbie
 
Join Date: Aug 2008
Location: France
Posts: 1
Default Recover Mysql database

HelHello,

I used Mysql with a lot of databases (580 databases today).
I have only one binary log for all theses databases.
If I have to recover one database because a bad SQL stament has destroye some datas.
The method :
1. I restore the database xxxx using mysqldump < xxxx.sql
2. I made a file with all the binary logs from the date of the databases backup and the curent binary log (all_binary.log)
3. Using vi editor I commente the row of bad SQL stament.
4. I apply the all_binary.log file by :
# mysqlbinlog all_binary.log | mysql

Question:
The bad SQL stament will not be apllied
All the SQL staments of the others databases will be apllied or not? Does exist a risk to use this method ?

Thank for your help.
Pierre Cornaille
Reply
Reply

Bookmarks

Thread Tools

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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles