这里的
mysql
就是安装在主机上的
mysql
命令
执行
show databases;
6.
主库创建用户
需要在
my.cnf
加上这个用户认证方式,再来创建用户
[mysqld]
default_authentication_plugin=mysql_native_passwordtar -zxvf mysql_data.tar.gz
重启主库
create user 'monitor'@'%' identified by '123456';
grant all privileges on *.* to 'monitor'@'%' with grant option;
create user 'proxysql'@'%' identified by '123456';
grant all privileges on *.* to 'proxysql'@'%' with grant option;
flush privileges;
查看用户
select user,host,plugin from mysql.user;
用户认证的方式为
mysql_native_password
评论