设为首页 加入收藏

TOP

MySQL之MariaDBMaxScale-Oracle&MysqlDBA(一)
2019-03-05 16:09:47 】 浏览:251
Tags:MySQL MariaDBMaxScale-Oracle&MysqlDBA

wallet01(master)
[root@wallet01 ~]# mysql -uroot -pabcd.1234
mysql> show master status;
+------------------+-----------+--------------+------------------+
| File             | Position  | Binlog_Do_DB | Binlog_Ignore_DB |
+------------------+-----------+--------------+------------------+
| mysql-bin.000003 | 251166915 |              |                  |
+------------------+-----------+--------------+------------------+
1 row in set (0.00 sec)

mysql> create user monitor@'192.168.1.%' identified by "maxscale";
Query OK, 0 rows affected (0.08 sec)

mysql> grant replication slave, replication client on *.* to monitor@'192.168.1.%';
Query OK, 0 rows affected (0.00 sec)

mysql> grant all on maxscale_schema.* TO 'monitor'@'192.168.1.%';
Query OK, 0 rows affected (0.02 sec)

mysql> create user router@'192.168.1.%' identified by "maxscale";
Query OK, 0 rows affected (0.00 sec)

mysql> grant select on mysql.user to router@'192.168.130.%';
Query OK, 0 rows affected (0.00 sec)

mysql> grant select on mysql.db to router@'192.168.1.%';
Query OK, 0 rows affected (0.00 sec)

mysql> grant select on mysql.tables_priv to router@'192.168.1.%';
Query OK, 0 rows affected (0.01 sec)

mysql> grant show databases on *.* to router@'192.168.1.%';
Query OK, 0 rows affected (0.01 sec)

wallet02(slave)
[root@wallet02 ~]# mysql -uroot -pabcd.1234
mysql> show slave status\G;
*************************** 1. row ***************************
               Slave_IO_State: Waiting for master to send event
                  Master_Host: 192.168.1.201
                  Master_User: repl
                  Master_Port: 3306
 &n
首页 上一页 1 2 3 4 下一页 尾页 1/4/4
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇多源复制的实现实例 下一篇MySQL之数据库工具

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目