workbench链接远程服务器MySql数据库 【1】运行以下命令: GRANT ALL PRIVILEGES ON *.* TO '远程链接的用户名'@'本地电脑的IP地址' IDENTIFIED BY '远程连接时的密码' WITH GRANT OPTION; //完成之后刷新一下 FLUSH PRIVILEGES; 如果还是连接不上 use mysql; update user set host = '%' where user = 'root'; FLUSH PRIVILEGES; 试一试 ```js