新聞中心
以下的文章主要介紹的是MySQL Table is read only的具體解決方案,前幾天我們遇到了這樣的一個(gè)提示,即repair數(shù)據(jù)表運(yùn)行的時(shí)候“MySQL Table is read only”的出現(xiàn),在MySQL中,Select之類的都正常,但在網(wǎng)頁(yè)程序中提示:Table '********' is read only。

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


咨詢
建站咨詢
