mysql> use mysql; mysql> GRANT ALL ON *.* TO root@'%' IDENTIFIED BY 'mysql' WITH GRANT OPTION; 转载于:https://www.cnblogs.com/davidgu/archive/2013/03/24/2978116.html