MySQL Table is read only的具体解决方案

数据库 MySQL
我们今天主要向大家讨论的是MySQLTable is read only的具体解决方案,以及相关SQL代码的示例,以下就是文章的具体内容介绍。

以下的文章主要介绍的是MySQL Table is read only的具体解决方案,前几天我们遇到了这样的一个提示,即repair数据表运行的时候“MySQL Table is read only”的出现,在MySQL中,Select之类的都正常,但在网页程序中提示:Table '********' is read only。

SQL代码

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

 

给数据库目录的所属用户和组改为MySQL,并加上777的权限,还是一样提示。

程序中使用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  

以上的相关内容就是对MySQL Table is read only的解决的介绍,望你能有所收获。

【编辑推荐】

  1. MySQL QueryCache原理经典讲解
  2. MySQL MyISAM的引擎和InnoDB引擎的比较
  3. MySQL参数设置如何解决瓶颈效应?
  4. MySQL force Index 强制索引概述
  5. MySQL隐藏空间相关问题的解答
责任编辑:佚名 来源: 互联网
相关推荐

2010-05-17 14:49:43

MySQL中文乱码

2010-06-01 15:32:33

MySQL数据库

2011-08-15 11:12:37

SQL Server Read-Only错误

2010-01-27 15:36:35

Android录音失真

2010-05-17 09:49:46

MySQL中文问题

2010-09-27 13:37:40

部署DLP

2010-05-28 13:04:04

MySQL root

2010-05-28 19:39:28

MySQL 编码转换

2010-04-28 11:48:13

Oracle MySQ

2010-05-17 14:17:25

MySQL pytho

2010-05-12 16:47:54

MySQL 中文乱码

2010-05-28 19:25:11

MySQL移植问题

2011-05-12 13:58:56

mysql数据转移

2011-03-07 16:42:05

MySQL数据库安全

2010-05-21 13:05:41

MySQL错误

2018-12-03 11:59:42

Inventec解决方案

2018-12-03 12:13:21

Mellanox解决方案

2018-12-03 12:26:30

YADRO解决方案

2011-03-28 13:11:18

MySQL数据库安全

2013-05-14 15:47:27

MySQL监控错误日志
点赞
收藏

51CTO技术栈公众号