GRANT ALL PRIVILEGES ON *.* TO 'root'@'58.221.44.174' IDENTIFIED BY 'njqt123456' WITH GRANT OPTION;
root:是数据库用户名
njqt123456:是数据库密码
58.221.44.174:是要授权的外网ip