com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure(數據庫連接異常)

文章最前: 我是Octopus,這個名字來源於我的中文名--章魚;我熱愛編程、熱愛算法、熱愛開源。所有源碼在我的個人github ;這博客是記錄我學習的點點滴滴,如果您對 Python、Java、AI、算法有興趣,可以關注我的動態,一起學習,共同進步。

相關文章:

  1. DuplicateKeyException異常處理:java向數據庫插入數據異
  2. springboot的UnsatisfiedDependencyException異常問題
  3. org.springframework.dao.DataIntegrityViolationException
  4. com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'current_state'
  5. java中出現這種錯誤: "error": "Internal Server Error",
  6. The Tomcat connector configured to listen on port 8888 failed to start
  7. java.nio.charset.MalformedInputException錯誤解決
  8. org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.geekplus.dao

數據庫連接失敗:

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactoryPlusDW' defined in URL [file:/D:/hephaestus/hephaestus-wms/api-impl/target/classes/config/hephaestus/spring/hephaestus-datasource-dw.xml]: Invocation of init method failed; nested exception is com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Error: GlobalConfigUtils setMetaData Fail !  Cause:com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

Communications link failure是數據庫連接錯誤,更改數據庫配置,看有沒有該數據庫就行。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章