GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '密码 WITH GRANT OPTION; FLUSH PRIVILEGES;
参考链接: https://www.cnblogs.com/yangjr/p/8117665.html