idea自帶database連接mysql失敗問題的解決辦法
idea2023.1版連接mysql失敗
DBMS: MySQL (ver. 5.7.13)
Case sensitivity: plain=exact, delimited=exact
Driver: MySQL Connector Java (ver. mysql-connector-java-5.1.47 ( Revision: fe1903b1ecb4a96a917f7ed3190d80c049b1de29 ), JDBC4.0)
[08S01]
Communications link failureThe last packet successfully received from the server was 95 milliseconds ago. The last packet sent successfully to the server was 89 milliseconds ago.
No appropriate protocol (protocol is disabled or cipher suites are inappropriate).
使用如下:
填寫正確的IP,端口,賬號,密碼
test connection 報如下錯誤
DBMS: MySQL (ver. 5.7.13)
Case sensitivity: plain=exact, delimited=exact
Driver: MySQL Connector Java (ver. mysql-connector-java-5.1.47 ( Revision: fe1903b1ecb4a96a917f7ed3190d80c049b1de29 ), JDBC4.0)
[08S01]
Communications link failureThe last packet successfully received from the server was 95 milliseconds ago. The last packet sent successfully to the server was 89 milliseconds ago.
No appropriate protocol (protocol is disabled or cipher suites are inappropriate).
解決方案:
1.url路徑中 加入 useSSL=no或者useSSL=false
2.在advanced中下拉選中useSSl為no
3.驅動中的advanced中的useSSL設置為非true
完美解決
總結
到此這篇關于idea自帶database連接mysql失敗問題的解決辦法的文章就介紹到這了,更多相關idea連接mysql失敗內容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關文章希望大家以后多多支持腳本之家!
相關文章
Java多線程場景解析volatile和AtomicLong區(qū)別原理
這篇文章主要為大家介紹了Java中volatile和AtomicLong的區(qū)別原理示例詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步,早日升職加薪2023-09-09