GRANT ALL PRIVILEGES ON 数据库名.* TO root@'%' IDENTIFIED BY '密码' WITH GRANT OPTION; 转载于:https://www.cnblogs.com/jimhover/p/5978188.html