MYCAT 安装部署
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MYCAT 安装部署相关的知识,希望对你有一定的参考价值。
下载mycat文件到对应目录直接启动
/usr/local/mycat/bin/mycat start
netstat -na|grep 8066
ps -ef|grep mycat
chown -R mycat .
chgrp -R mycat .
groupadd mycat
adduser -r -g mycat mycat
flush privileges;
CREATE USER ‘mycat‘@‘192.168.6.6‘ IDENTIFIED BY ‘[email protected]‘;
GRANT INSERT,select,UPDATE,DELETE ON soa_center.* TO ‘mycat‘@‘%‘;
GRANT INSERT,select,UPDATE,DELETE ON sdflc_weather.* TO ‘mycat‘@‘%‘;
GRANT INSERT,select,UPDATE,DELETE ON soa_cms.* TO ‘mycat‘@‘%‘;
flush privileges;
CREATE USER ‘read‘@‘192.168.6.6‘ IDENTIFIED BY ‘[email protected]‘;
GRANT select ON *.* TO ‘read‘@‘%‘;
ALTER USER ‘read‘@‘192.168.6.6‘ IDENTIFIED BY ‘[email protected]‘;
以上是关于MYCAT 安装部署的主要内容,如果未能解决你的问题,请参考以下文章
MyCat 读写分离 数据库分库分表 中间件 安装部署,及简单使用