#第一步
GRANT ALL ON *.* TO '用户'@'%';
#第二步
ALTER USER '用户'@'%' IDENTIFIED WITH mysql_native_password BY '密码';
#第三步
FLUSH PRIVILEGES;
mySql8.0+授权远程访问方法
最新推荐文章于 2024-10-07 14:56:16 发布
#第一步
GRANT ALL ON *.* TO '用户'@'%';
#第二步
ALTER USER '用户'@'%' IDENTIFIED WITH mysql_native_password BY '密码';
#第三步
FLUSH PRIVILEGES;