Error querying database. Cause: java.sql.SQLNonTransientConnectionException:報錯解決
錯誤提示:
Error querying database. Cause: java.sql.SQLNonTransientConnectionException:
一般這樣的提示是因為mysql-connector-java的版本和自己機器上的版本不一致,mysql-connector-java版本是8+/6+的驅動是不能連線mysql5+的資料庫,換了5+的驅動版本就可以了。
我錯誤的原因是我自己電腦的mysql版本是5+的,但是我在pom.xml中填寫的version是8+,改成5+的就可以了。
<dependency>
< groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.49</version>
</dependency>
以上就是Error querying database. Cause: java.sql.SQLNonTransientConnectionException:報錯解決的全部內容。
看完如果對你有幫助,感謝點贊支援!
如果你是電腦端的話,看到右下角的 “一鍵三連” 了嗎,沒錯點它[哈哈]
加油!
共同努力!
Keafmd
相關推薦
Error querying database. Cause: java.sql.SQLNonTransientConnectionException:報錯解決
技術標籤:Mybatismysql 錯誤提示: Error querying database. Cause: java.sql.SQLNonTransientConnectionException:
activiti 初始化表 問題:Error querying database. Cause: java.sql.SQLSyntaxErrorException: Table 'activiti_dev.act_ge_property' doesn't exist
在學習activiti流程引擎時,將activiti與springboot整合,可以自動部署流程流程,但是我的一直報錯說:Error querying database. Cause: java.sql.SQLSyntaxErrorException: Table \'actspring.act_ge_property\',這
報錯如何看和解決Error updating database. Cause: java.sql.SQLException: Field 'course_id' doesn't have a default value
前端控制檯報錯資訊: 後端控制檯報錯資訊: org.springframework.dao.DataIntegrityViolationException:
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
最近在學mybatis~遇上了第一個坑【難受啊哈,感覺有必要講一下】 按理說在資料庫連線的url對應的值中useSSL=true&useUnicode=true表示的是安全連線為true,看上去貌似沒有毛病【也是因為一直覺得沒毛病,才導致我
Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: This ver
出現了這個錯誤,原因是內層select語句帶有limit子句。 原來的sql為: SELECT uid, open_acc_status, open_acc_time, mobile_num, email, reg_type FROM UserInfo WHERE uid IN (SELECT uid FROM InviteCo
java加解密報錯解決方案
技術標籤:centoslinuxjavadocker 開發在程式中需要對資料進行解密,加密方法是:AES/CBC/PKCS7Padding,由於java本身不支援,需要新增依賴,用的依賴是:
easyExcel+mybatis批量插入時Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax;
技術標籤:筆記mybatis批量插入 error: Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syn
Mybatis 查詢報錯Cause: java.sql.SQLSyntaxErrorException: ORA-00903: 表名無效
技術標籤:JavaMybatis-Plusjavamybatis Mybatis 查詢Cause: java.sql.SQLSyntaxErrorException: ORA-00903: 表名無效
Error attempting to get column ‘xx‘ from result set. Cause: java.sql.SQLFeatureNotSupportedException
技術標籤:SpringBootJavajavaspring mybatis-plus 中使用LocalDateTime報錯:Error attempting to get column \'create_time\' from result set. Cause: java.sql.SQLFeatureNotSupportedException
Error attempting to get column ‘create_time‘ from result set. Cause: java.sql.SQLFeatureNotSupported
mp 官方給出建議3.1.0之前版本沒問題,針對3.1.1以及後續版本出現上述問題 現象: 整合druid資料來源,使用3.1.0之前版本沒問題,升級mp到3.1.1+後,執行時報錯:java.sql.SQLFeatureNotSupportedException
Error attempting to get column 'xxx' from result set. Cause: java.sql.SQLException: 無法轉換為內部表示,Oracle資料庫查詢時的錯誤解決
整體報錯日誌詳情: org.springframework.jdbc.UncategorizedSQLException: Error attempting to get column \'xxx\' from result set. Cause: java.sql.SQLException: 無法轉換為內部表示; uncategorized SQLExcep
java.sql.SQLNonTransientConnectionException:Could not create connection to database server解決
1.啟動報Loading class com.mysql.jdbc.Driver\'. This is deprecated. The new driver class iscom.mysql.cj.jdbc.Driver’. The driver is automatically registered via the SPI and manual loading of the driv
向oracle中批量更新報錯 Cause: java.sql.SQLSyntaxErrorException: ORA-00933: SQL 命令未正確結束
報錯sql如下: <update id=\"updateBatch\"> <foreach collection=\"list\" item=\"item\" index=\"index\" separator=\";\">
java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed
mysql8.x版本的資料庫在連線的時候報錯java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed
解決Spring Boot連線資料庫java.sql.SQLNonTransientConnectionException: CLIENT_PLUGIN_AUTH is required問題
問題描述 使用SpringBoot連線MySql資料庫時,執行出現如下問題: java.sql.SQLNonTransientConnectionException: CLIENT_PLUGIN_AUTH is required
Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '1288372549423476738' for key 'PRIMARY'
報錯如下: org.springframework.dao.DuplicateKeyException: ### Error updating database.Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'1288372549423476738\' for key \'PRIMA
解決IDEA錯誤 Cause: java.sql.SQLException: The server time zone value的問題
在我們配置檔案的時候 執行會報The server time zone的錯 Cause: java.sql.SQLException: The server time zone value
### Error opening session. Cause: java.lang.NullPointerException
在測試mybatis的SQL語句時,出現如下錯誤提示: 我的Java程式碼: //測試查詢 @Test
SQL Developer報錯:Unable to find a Java Virtual Machine解決辦法
安裝了64位的Oracle資料庫以及32位的Oracle客戶端,在開始選單中第一次開啟客戶端的SQL Developer時提示輸入java.exe的路徑,我選擇了Oracle資料庫自帶的jdk路徑,確定之後報錯:
Cause: java.sql.SQLException: Incorrect string value: ‘\xF0\x9F\x98\x80--...‘ for column ‘html_b
<property name=\"connectionInitSqls\" value=\"set names utf8mb4;\" /> useUnicode=true&&allowMultiQueries=true&autoReconnect=true&charset=utf8mb4