MySQL添加用户远程访问权限
2024-01-23 15:44:55 # 技术
1
2
GRANT ALL PRIVILEGES ON *.* TO @localhost IDENTIFIED BY '' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 用户名@"%" IDENTIFIED BY '密码' WITH GRANT OPTION;

第一句是增加用户和密码,第二句是提升权限。只需更改红色字体为你需要的就OK了。