受网络限制,我们不打算采用使用ansible
下载MySQL的二进制包。请自行下载并解压到/usr/local/mysql
# 安装完成后root账号为空密码
ansible-playbook playbook.mysql-node.yml -e @./myvars/mysql/standalone.yml \
-e "HOSTS=mysql_standalone"
use mysql;
alter user 'root'@'localhost' identified with mysql_native_password by 'root';
update mysql.user
set host = '%'
where host = 'localhost'
and user = 'root';
flush privileges;
ansible-playbook playbook.mysql-node-remove.yml -e @./myvars/mysql/standalone.yml \
-e "HOSTS=mysql_standalone" -v