1 可以先测试mysql本地连接石否正常
2 正常的话查看远程连接的IP在mysql中是否有权限
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123123' WITH GRANT OPTION;
note:(记得修改IP抵制和密码)