新聞中心
這里有您想知道的互聯(lián)網營銷解決方案
對MySQL數據庫中Table is read only的殲滅
在實際操作中你是否遇到過這樣的提示,repair數據表中出現“MySQL數據庫中Table is read only”的字樣,那么對其到底如何解決呢?以下的文章就是針對MySQL數據庫中出現Table is read only的解決方案的描述。

網站建設哪家好,找成都創(chuàng)新互聯(lián)公司!專注于網頁設計、網站建設、微信開發(fā)、重慶小程序開發(fā)、集團企業(yè)網站建設等服務項目。為回饋新老客戶創(chuàng)新互聯(lián)還提供了河南免費建站歡迎大家使用!
在MySQL中,Select之類的都正常,但在網頁程序中提示:Table '********' is read only
SQL代碼
- chmod -R 0777 /var/lib/MySQL/taoniu2007/
給數據庫目錄的所屬用戶和組改為MySQL,并加上777的權限,還是一樣提示。
程序中使用root連接,也是一樣的提示。
想用myisamchk來檢查一下,也提示read only。
最終在這里找到了解決方法:http://www.MySQLtalk.org/re-the-table-is-read-only-vt154092.html
引用一下
SQL代碼
- Hi,
- I just encountered a similar problem on one of my production servers
- this morning. (I'm still investigating the cause.) After doing a
- quick bit of Google-searching, this solved my problem:
- MySQLadmin -u
-p flush-tables - By the way: All directories in /var/lib/MySQL should have 700
- permissions (owned my the MySQL user) and everything within those
- directories should be 660 (owned by the MySQL user and MySQL group).
- (This was on a FreeBSD 4.8 server running MySQL Server 3.23.58)
- Hope this helps,
- Seth
運行flush-tables后,read only問題解決
以上的相關內容就是對MySQL數據庫中Table is read only的解決的介紹,望你能有所收獲。
【編輯推薦】
- MySQL導出 XLS 數據庫工具的實際操作
- 對MySQL行鎖的深入研究
- MySQL游標的使用筆記大全
- 對MySQL 存儲過程中亂碼的破解
- MySQL備份之根據表備份概述
文章名稱:對MySQL數據庫中Table is read only的殲滅
文章轉載:http://www.dlmjj.cn/article/dpedcdc.html


咨詢
建站咨詢
