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

對MySQL數(shù)據(jù)庫中Table is read only的殲滅

數(shù)據(jù)庫 MySQL
以下的文章主要是對MySQL數(shù)據(jù)庫中Table is read only的解決方案的描述,如果你在實際操作中經(jīng)常遇到這樣的情況的話,你就可通過以下的文章對其有一個正確的解決。

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

在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。

最終在這里找到了解決方法: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 <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 on a FreeBSD 4.8 server running MySQL Server 3.23.58)   
  10. Hope this helps,   
  11. Seth   

運行flush-tables后,read only問題解決

MySQL數(shù)據(jù)庫中Table is read only的解決

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

【編輯推薦】

  1. MySQL導(dǎo)出 XLS 數(shù)據(jù)庫工具的實際操作
  2. 對MySQL行鎖的深入研究
  3. MySQL游標(biāo)的使用筆記大全
  4. 對MySQL 存儲過程中亂碼的破解
  5. MySQL備份之根據(jù)表備份概述
責(zé)任編輯:佚名 來源: cnblogs
相關(guān)推薦

2010-05-11 17:56:59

MySQL Table

2010-05-24 09:44:30

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

2011-08-15 11:12:37

SQL Server Read-Only錯誤

2017-10-23 16:06:41

數(shù)據(jù)庫MySQL復(fù)制中斷

2011-07-11 14:36:10

BinlogMysql

2010-05-20 09:01:22

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

2010-05-31 17:15:39

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

2010-05-26 11:21:00

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

2010-06-10 14:03:00

MySQL EMS

2010-06-10 14:03:00

MySQL EMS

2011-03-28 13:25:27

MySQL數(shù)據(jù)庫哈希加密

2009-02-02 16:50:34

數(shù)據(jù)庫表的鎖定MySQL

2010-05-26 10:41:30

2011-08-10 15:38:12

ConstraintOracle

2010-05-20 14:25:25

2010-05-04 11:02:44

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

2019-02-28 21:20:50

MySQL備份與恢復(fù)數(shù)據(jù)庫

2018-07-30 15:00:05

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

2010-06-01 11:28:43

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

2023-05-29 15:23:37

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

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