自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

MySQL Table is read only的具體解決方案

數(shù)據(jù)庫 MySQL
我們今天主要向大家討論的是MySQLTable is read only的具體解決方案,以及相關(guān)SQL代碼的示例,以下就是文章的具體內(nèi)容介紹。

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

SQL代碼

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

 

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

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

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

最終在這里找到了解決方法

引用一下

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 <username> -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  

以上的相關(guān)內(nèi)容就是對MySQL Table is read only的解決的介紹,望你能有所收獲。

【編輯推薦】

  1. MySQL QueryCache原理經(jīng)典講解
  2. MySQL MyISAM的引擎和InnoDB引擎的比較
  3. MySQL參數(shù)設置如何解決瓶頸效應?
  4. MySQL force Index 強制索引概述
  5. MySQL隱藏空間相關(guān)問題的解答
責任編輯:佚名 來源: 互聯(lián)網(wǎng)
相關(guān)推薦

2010-05-17 14:49:43

MySQL中文亂碼

2010-06-01 15:32:33

MySQL數(shù)據(jù)庫

2011-08-15 11:12:37

SQL Server Read-Only錯誤

2010-01-27 15:36:35

Android錄音失真

2010-09-27 13:37:40

部署DLP

2010-05-17 09:49:46

MySQL中文問題

2010-05-28 13:04:04

MySQL root

2010-05-28 19:39:28

MySQL 編碼轉(zhuǎn)換

2010-05-17 14:17:25

MySQL pytho

2010-04-28 11:48:13

Oracle MySQ

2010-05-12 16:47:54

MySQL 中文亂碼

2010-05-28 19:25:11

MySQL移植問題

2011-03-07 16:42:05

MySQL數(shù)據(jù)庫安全

2010-05-21 13:05:41

MySQL錯誤

2018-12-03 12:13:21

Mellanox解決方案

2018-12-03 12:26:30

YADRO解決方案

2018-12-03 11:59:42

Inventec解決方案

2012-05-27 16:21:31

IDC華為

2018-12-03 12:17:27

Semptian解決方案

2010-05-27 18:24:09

MySQL數(shù)據(jù)庫密碼
點贊
收藏

51CTO技術(shù)棧公眾號