We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
连接数据库失败了。
org.apache.ibatis.exceptions.PersistenceException:
The text was updated successfully, but these errors were encountered:
应该是mysql-connect-java版本和你本地的mysql版本不一致导致的
Sorry, something went wrong.
数据库版本多少?驱动版本多少?
1.修改pom文件中mysql-connect-java的版本与数据库版本保持一致;2.mybatis-config.xml中数据库的连接地址改成localhost
No branches or pull requests
连接数据库失败了。
org.apache.ibatis.exceptions.PersistenceException:
Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server.
The error may exist in tk/mybatis/simple/mapper/CountryMapper.xml
The error may involve tk.mybatis.simple.mapper.CountryMapper.selectAll
The error occurred while executing a query
Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server.
The text was updated successfully, but these errors were encountered: