本地项目无法连接阿里云mysql解决办法SQLException: null, message from server: "Host 'XXX' is not allowed to connect

mac2025-04-06  10

异常:java.sql.SQLException: null, message from server: "Host ‘XXX’ is not allowed to connect 这个异常是数据库只允许localhost或127.0.0.1访问,不允许远程访问。 由于本地项目无法设置SSH通道,所以需要修改数据库的访问权限。

最新回复(0)