mysql的数据库开放权限

链接数据库之后运行下面的命令即可

grant all PRIVILEGES on *.* to %username%@'%' identified by '%password%';

如给root链接数据库的账号开启所有权限,密码为空

grant all PRIVILEGES on *.* to root@'%' identified by '';

之后其他人就可以远程链接该数据库了~

原文地址:https://www.cnblogs.com/smileyes/p/6565452.html