1.新创建一个Host 为'%'的用户
mysql>insert into mysql.user(Host,User,Password) values('%','root',password('root'));
2.为用户授权
mysql>grant all privileges on *.* to root@'%' identified by 'root';
mysql>flush privileges;
Powered by: 博客园 Copyright © 2024 HI END Powered by .NET 9.0 on Kubernetes