Home > Database > Mysql Tutorial > body text

清除mysqlbinarylog_MySQL

WBOY
Release: 2016-05-31 08:49:38
Original
1152 people have browsed it

bitsCN.com

作为一个oracle dba有时候不得不管理一下mysql数据库,当为主从库时需要阶段性清理mysql binary log,清楚方式如下:

首先查看mysql 的当前日志组

show master status;

确定当前日志组后删除日志文件

purge binary logs to 'mysql-bin.000795';

删除000795之前的日志

bitsCN.com
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!