日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
對(duì)MySQL數(shù)據(jù)庫(kù)中Table is read only的殲滅

在實(shí)際操作中你是否遇到過這樣的提示,repair數(shù)據(jù)表中出現(xiàn)“MySQL數(shù)據(jù)庫(kù)中Table is read only”的字樣,那么對(duì)其到底如何解決呢?以下的文章就是針對(duì)MySQL數(shù)據(jù)庫(kù)中出現(xiàn)Table is read only的解決方案的描述。

網(wǎng)站建設(shè)哪家好,找成都創(chuàng)新互聯(lián)公司!專注于網(wǎng)頁(yè)設(shè)計(jì)、網(wǎng)站建設(shè)、微信開發(fā)、重慶小程序開發(fā)、集團(tuán)企業(yè)網(wǎng)站建設(shè)等服務(wù)項(xiàng)目。為回饋新老客戶創(chuàng)新互聯(lián)還提供了河南免費(fèi)建站歡迎大家使用!

在MySQL中,Select之類的都正常,但在網(wǎng)頁(yè)程序中提示:Table '********' is read only

SQL代碼

 
 
 
 
  1. chmod -R 0777 /var/lib/MySQL/taoniu2007/  

給數(shù)據(jù)庫(kù)目錄的所屬用戶和組改為MySQL,并加上777的權(quán)限,還是一樣提示。

程序中使用root連接,也是一樣的提示。

想用myisamchk來檢查一下,也提示read only。

最終在這里找到了解決方法:http://www.MySQLtalk.org/re-the-table-is-read-only-vt154092.html

引用一下

SQL代碼

 
 
 
 
  1. Hi,   
  2. I just encountered a similar problem on one of my production servers   
  3. this morning. (I'm still investigating the cause.) After doing a   
  4. quick bit of Google-searching, this solved my problem:   
  5. MySQLadmin -u  -p flush-tables   
  6. By the way: All directories in /var/lib/MySQL should have 700   
  7. permissions (owned my the MySQL user) and everything within those   
  8. directories should be 660 (owned by the MySQL user and MySQL group).   
  9. (This was on a FreeBSD 4.8 server running MySQL Server 3.23.58)   
  10. Hope this helps,   
  11. Seth   

運(yùn)行flush-tables后,read only問題解決

以上的相關(guān)內(nèi)容就是對(duì)MySQL數(shù)據(jù)庫(kù)中Table is read only的解決的介紹,望你能有所收獲。

【編輯推薦】

  1. MySQL導(dǎo)出 XLS 數(shù)據(jù)庫(kù)工具的實(shí)際操作
  2. 對(duì)MySQL行鎖的深入研究
  3. MySQL游標(biāo)的使用筆記大全
  4. 對(duì)MySQL 存儲(chǔ)過程中亂碼的破解
  5. MySQL備份之根據(jù)表備份概述

分享標(biāo)題:對(duì)MySQL數(shù)據(jù)庫(kù)中Table is read only的殲滅
路徑分享:http://m.5511xx.com/article/dpedcdc.html