1. 程式人生 > >idea中執行sql檔案遇到[S1009] Connection is read-only. Queries leading to data modification are not allowed.

idea中執行sql檔案遇到[S1009] Connection is read-only. Queries leading to data modification are not allowed.

[S1009] Connection is read-only. Queries leading to data modification are not allowed.

當在idea中直接執行sql檔案時可能出現此問題。
網上查詢到一些方法和我遇到的情況有所不同,我這裡是在idea中配置資料庫連線時勾選了read-only,取消就可以了。

在這裡插入圖片描述
找不到database視窗可百度如何在idea中找到database視窗