服务器上安装mysql后开启远程连接 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'my_password' WITH GRANT OPTION;