美文网首页
MySql 8.0赋远程链接权限

MySql 8.0赋远程链接权限

作者: piziyang12138 | 来源:发表于2019-10-08 11:11 被阅读0次

Starting with MySQL 8 you no longer can (implicitly) create a user using the GRANT command. Use CREATE USER instead, followed by the GRANT statement:

mysql> CREATE USER 'root'@'%' IDENTIFIED BY 'root';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;

Caution about the security risks about WITH GRANT OPTION, see:

相关文章

网友评论

      本文标题:MySql 8.0赋远程链接权限

      本文链接:https://www.haomeiwen.com/subject/uzfbpctx.html