GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION; FLUSH PRIVILEGES; 这就是设置一个 urser:root pwd:123456 账号,该账号可以在任何机器,同时访问服务器