新聞中心
這里有您想知道的互聯網營銷解決方案
MySQLTableisreadonly的具體解決方案
以下的文章主要介紹的是MySQL Table is read only的具體解決方案,前幾天我們遇到了這樣的一個提示,即repair數據表運行的時候“MySQL Table is read only”的出現,在MySQL中,Select之類的都正常,但在網頁程序中提示:Table '********' is read only。

成都創(chuàng)新互聯公司專業(yè)為企業(yè)提供海西網站建設、海西做網站、海西網站設計、海西網站制作等企業(yè)網站建設、網頁設計與制作、海西企業(yè)網站模板建站服務,10余年海西做網站經驗,不只是建網站,更提供有價值的思路和整體網絡服務。
SQL代碼
- chmod -R 0777 /var/lib/MySQL/taoniu2007/
給數據庫目錄的所屬用戶和組改為MySQL,并加上777的權限,還是一樣提示。
程序中使用root連接,也是一樣的提示。
想用myisamchk來檢查一下,也提示read only。
最終在這里找到了解決方法
引用一下
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
以上的相關內容就是對MySQL Table is read only的解決的介紹,望你能有所收獲。
【編輯推薦】
- MySQL QueryCache原理經典講解
- MySQL MyISAM的引擎和InnoDB引擎的比較
- MySQL參數設置如何解決瓶頸效應?
- MySQL force Index 強制索引概述
- MySQL隱藏空間相關問題的解答
分享文章:MySQLTableisreadonly的具體解決方案
網頁網址:http://m.fisionsoft.com.cn/article/cccjide.html


咨詢
建站咨詢
