show master status 时没有数据显示
环境:
系统:centos 7.0 (64位)
yum安装的mysql数据库。
今天做mysql主从时,查看master日志时没有数据显示,
mysql> show master status;
Empty set (0.00 sec)
mysql>
从网上搜了一下说是master数据库没有启动show master status 时没有数据显示 最后终于弄出来了,
用yum安装的mysql数据库/etc/my.cnf文件只是满足基本要求,
如: [mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
# Disabling symbolic-links is recommended to prevent assorted security risks;
# to do so, uncomment this line:
# symbolic-links=0
server-id = 130
[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
在/etc/my.cnf文件中添加一行
log-bin=mysql-bin
然后重启mysql数据库即可;
mysql> show master status;
+——————+———-+————–+——————+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |
+——————+———-+————–+——————+
| mysql-bin.000001 | 79 | | |
+——————+———-+————–+——————+
1 row in set (0.00 sec)
mysql>
转载地址:http://blog.sina.com.cn/s/blog_72e339cd0100xphg.html
show master status 时没有数据显示相关推荐
- java mysql show status_Java 能不能执行mysql 中的show master status 命令
展开全部 详细参32313133353236313431303231363533e4b893e5b19e31333337376263考文章:http://www.yuanxingyuan.com/?i ...
- mysql master status_show master status为空解决办法
show master status为空解决办法 kerwin 五月 29, 2014 默认yum安装了mysql,现在想调试一下主从,结果发现执行show master status为空. Welc ...
- cannal 启动异常(show master status‘ has an error pls check. you need (at least one of) the SUPER,REPLI)
异常信息:'show master status' has an error! pls check. you need (at least one of) the SUPER,REPLICATI 详细 ...
- mysql show master status为空值
问题 执行show master status,输出结果为空: mysql> show master status; Empty set (0.00 sec) 原因 mysql没有开启日志. 查 ...
- mysql master status_mysql show master status为空值
问题 执行show master status,输出结果为空: mysql> show master status; Empty set (0.00 sec) 原因 mysql没有开启日志. 查 ...
- mysql 空集 赋值_MySQL简单复制问题:’show master status’产生’空集’?
有趣的是,我的PC上运行了mysql,未启用二进制日志.我做了以下事情: Welcome to the MySQL monitor. Commands end with ; or \g. Your M ...
- show master status为空值
问题 开启MySQL主从.或MySQL开启binlog的过程中: 执行 SHOW MASTER STATUS 结果为空 原因 可能有: MySQL没有开启日志 MySQL部分版本问题,如MySQL5. ...
- 回滚master代码_[转]Git 代码撤销、回滚到任意版本(当误提代码到本地或master分支时)...
两种情况(场景) 情况一 代码还只在本地,未push到运程仓库,想把代码还原到上一次commit的代码,此时操作为代码撤销 解决方案: 情况二 代码已经push到运程仓库,想把代码还原到上一次提交,此 ...
- Delete Master Data时的注意事项
Company Code,一个简单的infoobject,我们发现里面有垃圾数据,想要做这个操作,点下去,后果是什么呢? 首先会询问你是否和SID一起删除. When deleting master ...
最新文章
- linux 后台运行程序
- 使用ListView实现汽泡短信聊天
- POI实现读写内容到word中
- JavaWeb工程师知识图谱
- 软件史上最伟大的十大程序员
- 【2】最简单的Laravel5.1程序分析
- 奎享添加自己字体_如何添加字体?系统字体的两种方法添加方法
- 人才网运营之填充数据心得之骑士人才系统用火车头职位采集规则填充人才网数据
- 12张手绘图,我搞懂了微服务架构
- 计算机组老师颁奖词,学生表彰颁奖词与学生计算机室管理制度合集.doc
- 3600万中国人在抖音“上清华”。
- VDI虚拟云桌面 和 共享云桌面 区别
- Codeforces 14E Camels (DP)
- 关于联想昭阳k20-80触摸屏关闭
- 【Python】配置Python环境
- Halcon 读.ply格式
- 电影在放映前是如何分发到全国各地的影院的?
- pdf 生成文件工具类
- Cris 的 Scala 笔记整理(七):面向对象
- 本地资源库,中央资源库,远程资源库的介绍