Unable to connect to any of the specified MySQL hosts.

    xiaoxiao2021-03-25  44

    做项目遇到这个问题

    Unableto connect to any of the specified MySQL hosts. -连接不到指定的MySQL主机

    原因:数据库连接问题

    解决办法:检查配置文件连接数据库的代码,保证连接的服务器IP,数据库名,密码正确

    我们出现这个问题是因为,放数据库的服务器由18*换成了23* ,而配置文件里的服务器IP没有更新。把服务器IP换成23*就能OK了。

    转载请注明原文地址: https://ju.6miu.com/read-35725.html

    最新回复(0)