首先打开cmd,其次cd至mysql文件下面
一、登录mysql数据库
mysql -h localhost -u name -p;
二、show variables like 'log_%';
log_bin为OFF,表明binlog日志未开启
三、此时log_bin为off说明没有开启
四、在mysql下面的文件my.ini中在[mysqld]下面增加
log-bin=mysql-bin
五、重新开启mysql输入show variables like 'log_%';
现在log_bin已经显示on
六、查看日志内容
check table tabTest;
如果出现的结果说Status是OK,则不用修复,如果有Error,可以用:
repair table tabTest;