安装Maxscale
下载自动安装配置软件安装源
官方的脚本会配置下面三个安装源,配置完即可安装Maxscale
MariaDB安装源
MariaDBMaxscale安装源
MariaDBTools安装源
运行脚本命令
curl‐sShttps://downloads.mariadb.com/MariaDB/mariadb_repo_setup|sudobash
如果需要下载脚本
curl‐Ohttps://downloads.mariadb.com/MariaDB/mariadb_repo_setup
安装Maxscale组件
yum‐yinstallmaxscale
配置Maxscale
在数据库中配置Maxscale用户的权限
#mysql‐uroot
>CREATEUSER'maxscale'@'%'IDENTIFIEDBY'maxscale';
>GRANTSELECTONmysql.*TO'maxscale'@'%';
>GRANTSHOWDATABASESON*.*TO'maxscale'@'%';
>GRANTSUPER,RELOADON*.*TO'maxscale'@'%';
如果使用的数据库用户在maxscale服务器上没有权限,那么需要是需要额外添加用户权限到指定IP上
的
修改Maxscale策略
文档被以下合辑收录
评论