mysql 设置外网访问权限 在本机先使用root用户登录mysql:mysql -u root -p"password"授权操作:mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;刷新授权表:FLUSH PRIVILEGES;退出mysql数据库:exit