1.创建MySQL用户
在binghe151服务器的主库上创建Atlas连接MySQL的用户信息。
- mysql> GRANT ALL ON *.* TO 'atlas'@'192.168.175.153' IDENTIFIED BY 'atlas123456';
- Query OK, 0 rows affected (0.00 sec)
-
- mysql> FLUSH PRIVILEGES;
- Query OK, 0 rows affected (0.00 sec)
2.配置Altas
(1)查看Atlas安装目录下conf目录下的文件。
- [root@binghe153 ~]# ll /usr/local/mysql-proxy/conf/
- total 4
- -rw-r--r-- 1 root root 2810 Dec 17 2014 test.cnf
(2)将test.cnf文件复制成mysql-proxy.conf文件。
cp /usr/local/mysql-proxy/conf/test.cnf /usr/local/mysql-proxy/conf/mysql-proxy.cnf
(3)查看Atlas