# 8.0版本以上的mysql update mysql.user set host = '%'where user = 'root'; flush privileges; ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'your password';
# MySQL8.0以下版本使用语句 %表示多有机器。 GRANT ALL PRIVILEGES ON *.* TO root@'%' IDENTIFIED BY 'your password';