dbvis 資料庫連接配接工具-更新資料庫驅動方法示例示範,驅動與資料庫版本不比對問題:Unknown system variable ‘query_cache_size‘解決方法
用 dbvis 工具連接配接資料庫,報錯資訊如下:
報錯的原因就是我要連接配接的資料庫和我現在要使用的資料庫驅動版本不比對。
An error occurred while establishing the connection:
Long Message:
Unknown system variable 'query_cache_size'
Details:
Type: java.sql.SQLException
Error Code: 1193
SQL State: HY000
dbvis 資料庫連接配接工具-更新資料庫驅動方法示例示範,驅動與資料庫版本不比對問題:Unknown system variable ‘query_cache_size‘解決方法
解決方法:
我要連接配接的資料庫是 mysql,我把新的驅動放到對應的驅動檔案夾下,就是 jdbc 的 mysql 下面。
dbvis 資料庫連接配接工具-更新資料庫驅動方法示例示範,驅動與資料庫版本不比對問題:Unknown system variable ‘query_cache_size‘解決方法
工具的通過驅動管理來重新掃描驅動。
dbvis 資料庫連接配接工具-更新資料庫驅動方法示例示範,驅動與資料庫版本不比對問題:Unknown system variable ‘query_cache_size‘解決方法
可以看到,掃描的結果就是 mysql 的驅動更新了。
dbvis 資料庫連接配接工具-更新資料庫驅動方法示例示範,驅動與資料庫版本不比對問題:Unknown system variable ‘query_cache_size‘解決方法
然後再次連接配接資料庫就成功了。
dbvis 資料庫連接配接工具-更新資料庫驅動方法示例示範,驅動與資料庫版本不比對問題:Unknown system variable ‘query_cache_size‘解決方法