1 ssh 登陆 ssh root@ip 2 mysql 登陆 mysql -u root -p 3 权限赋值 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION 注:*.* 第一个*是库名,第二个*是表名