码迷,mamicode.com
首页 > 其他好文 > 详细

show master status empty解决方案

时间:2014-05-29 01:42:38      阅读:518      评论:0      收藏:0      [点我收藏+]

标签:c   tar   http   a   get   com   

The following MySQL error might occur if you are using MySQL replication and binary logs.

mysql> show binary logs;
ERROR 1381 (HY000): You are not using binary logging

Solution:

I have already discussed the same problem here. If you are still facing issues then it might be possibility that problem is with MySQL my.cnf file.

The my.cnf file structure for replication should be as below:

[mysqld] .

 

.

bind-address= 192.168.0.6
binlog-do-db=exampledb
server-id=1
log-bin=/var/lib/mysql/log-bin.log

[mysqld_safe] log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

 

Make sure that "log-bin" is present under mysld and not mysqld_safe, else it will not have any effect.

Restart the MySQL service.

Check by logging in the MySQL prompt:

mysql> show binary logs;
+----------------+-----------+
| Log_name | File_size |
+----------------+-----------+
| log-bin.000001 | 106 |
+----------------+-----------+
1 row in set (0.03 sec)

That‘s all!

show master status empty解决方案,布布扣,bubuko.com

show master status empty解决方案

标签:c   tar   http   a   get   com   

原文地址:http://www.cnblogs.com/fanelephant/p/3754327.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!