一个完整安全的sql上线操作应该是怎样的?!
2016-05-13 23:53
405 查看
firstly: check your slave status\G
mysql> show slave status\G Empty set (0.00 sec)
secondly: set your character
mysql> set names utf8; Query OK, 0 rows affected (0.00 sec)
thirdly: check your slave hosts;
mysql> show slave hosts; +-----------+------+-------+-----------+--------------------------------------+ | Server_id | Host | Port | Master_id | Slave_UUID | +-----------+------+-------+-----------+--------------------------------------+ | 649226533 | | 13307 | 363932581 | 5c423bd9-e10c-11e5-8907-ecf4bbea657c | | 520788555 | | 13307 | 363932581 | 8bed6142-c669-11e5-9b56-246e9604a3d8 | | 531713307 | | 13307 | 363932581 | 3777e32f-d527-11e5-8217-246e9604b550 | +-----------+------+-------+-----------+--------------------------------------+
fourthly: use your database;
mysql> use ashe_test; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed
fifth: check the status
mysql> status -------------- mysql Ver 14.14 Distrib 5.6.23, for linux-glibc2.5 (x86_64) using EditLine wrapper Connection id: 803136 Current database: ashe Current user: root@127.0.0.1 SSL: Not in use Current pager: stdout Using outfile: '' Using delimiter: ; Server version: 5.6.23-log MySQL Community Server (GPL) Protocol version: 10 Connection: 127.0.0.1 via TCP/IP Server characterset: utf8 Db characterset: utf8 Client characterset: utf8 Conn. characterset: utf8 TCP port: 13307 Uptime: 23 days 12 hours 58 min 36 sec Threads: 9 Questions: 61630708 Slow queries: 66 Opens: 43871 Flush tables: 24 Open tables: 1811 Queries per second avg: 30.301 --------------
lastly: do it
And when you complete your moving,rechech the slave hosts.相关文章推荐
- 数据库运维原则
- 北京公司招聘 oracle 11g r2 dba
- 专业的oracle技术运维服务
- 专业的oracle数据库运维与培训机构——360oracle技术服务中心
- 专业的oracle数据库运维与培训机构——360oracle技术服务中心
- rac数据库RMAN 备份与恢复
- Mysql 系列——数据库设计-(目录)--大学十年
- MySQL使用教程(二)
- flush tables with read lock 失效
- TempDB暴涨问题排查
- MySQL运维内参_ MySQL、Galera、Inception核心原理与最佳实践 读书笔记
- oracle两个数据库之间的内容对比
- Greenplum集群状态检查及失败segment修复(上)
- 独家揭秘国有大行生产系统数据库运维
- 借自动化实现数据库的安全运维和跨界运维
- 数据库运维必备:非常完整的 MySQL 规范 – 运维派
- 修改数据库插入默认日期
- PDO数据库抽象层
- Redis学习笔记(一)搭建环境
- sql server 提示无法彻底删除_复制-而无法删除数据库或重新配置发布订阅