mysql 更新远程用户为特定IP 访问
CREATE USER 'test_user'@'%' IDENTIFIED BY 'test_user_password';
GRANT ALL PRIVILEGES ON *.* TO test_user@'%';
flush privileges;
CREATE USER 'slave'@'localhost' IDENTIFIED BY 'user1_password';
RENAME USER `slave`@`%` TO `slave`@`xx.xx.xx.xx`;
flush privileges;
GRANT ALL PRIVILEGES ON test_db.* TO slave@'xx.xx.xx.xx';
flush privileges;