使用DataX将mysql中做数据导出时 提示 java.sql.SQLException: Could not retrieve transation read-only status server
生活随笔
收集整理的這篇文章主要介紹了
使用DataX将mysql中做数据导出时 提示 java.sql.SQLException: Could not retrieve transation read-only status server
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
原因是我的數據庫是8.0以上版本,但是datax本身提供的jar包是5.1版本,將datax/plugins目錄下的reader/writer中的mysqlreader/mysqlwriter的lib目錄下的mysql-jar替換為8.0以上版本,并將連接mysql驅動的名稱由com.mysql.jdbc.Driver改為com.mysql.cj.jdbc.Driver即可,僅供參考。
總結
以上是生活随笔為你收集整理的使用DataX将mysql中做数据导出时 提示 java.sql.SQLException: Could not retrieve transation read-only status server的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 3、nginx设置简单的代理服务器-阅读
- 下一篇: 连接mysql数据库报错Cannot c