1209 - The MySQL server is running with the--read-only option so it cannot execute this statement
就一個簡單的方法:
C:\ProgramData\MySQL\MySQL Server 5.5\data 這個有足夠的權限
你要做的就是在MySQL里 show variables like ‘%secure%’; 查看你的這個表屬性。一般情況secure_file_priv為空。只要將上面這個路徑添加進去就可啦。
如何添加修改這個路徑呢?
1、在你的MySQL安裝路徑里找到my.ini文件
2、在my.ini 里面添加一句
secure-file-priv="C:\ProgramData\MySQL\MySQL Server 5.5\data"
就OK啦,(在文件屬性-安全里面改權限就添加這句了)
3·、重啟一下MySQL服務