Home > Database > Mysql Tutorial > Data recovery of mysql through bin-log

Data recovery of mysql through bin-log

PHP中文网
Release: 2017-06-19 10:43:26
Original
1245 people have browsed it

mysqlbinlog --database=database name --start-date="2017-06-01 5:00:00" --stop-date="2017-06-11 10:00: 00" var/mysql-bin.000001 | mysql -u root -p123456 -f

1. Pay attention to the location of the executable file in bold. If you have added the environment variable, you can ignore it

2. Pay attention to the correct position of the red word bin-log log

3. The database name needs to be changed

4. You can set the date

5. Finally set the database account and password used

The above is the detailed content of Data recovery of mysql through bin-log. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template