`

mysql中Table is read only的解决

阅读更多
今天遇到一个这样的提示repair数据表的时候出现“mysql中Table is read only”

在mysql中,Select之类的都正常,但在网页程序中提示:Table '********' is read only

然后我


SQL代码
chmod -R 0777  /var/lib/mysql/taoniu2007/ 



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

程序中使用root连接,也是一样的提示。

想用myisamchk来检查一下,也提示read only。

最终在这里找到了解决方法:http://www.mysqltalk.org/re-the-table-is-read-only-vt154092.html

引用一下


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 <username> -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 on a FreeBSD 4.8 server running MySQL Server 3.23.58)  
  
Hope this helps,  
Seth  
运行flush-tables后,read only问题解决

分享到:
评论

相关推荐

    mysql中Table is read only的解决方法小结

    本文章总结了关于在linux与windows中 mysql出现Table is read only解决办法总结,有需要的朋友可参考一下

    Linux下MySql 1036 错误码解决(1036: Table 'xxxx' is read only)

    我们在进行数据库搬家的时候,经常会遇到(1036: Table 'xxxx' is read only)的问题,字面意思很明确,就是数据库只有读权限,无写权限,那么我们来分享下我的处理办法

    The MySQL server is running with the --read-only option so it cannot execute this statement

    1209 - The MySQL server is running with the --read-only option so it cannot execute this statement

    Linux下MySql 1036 错误码解决(1036: Table ‘xxxx’ is read only)

    解压,配置好数据库链接参数就行,网站就能正常连接上了,我本以为这已 经是顺利迁移完成了,但后来操作的时候,发现只能读取数据库的内容,不能更改写入任何信息,提示#1036 – Table ‘* ‘ is read only (*号为...

    MySQL 5.6 Reference Manual

    Table of Contents Preface, Notes, Licenses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....

    The.Language.of.SQL.2nd.Edition.0134658256

    This is the only book you need to gain a quick working knowledge of SQL and relational databases. Learn How To... Use SQL to retrieve data from relational databases Apply functions and calculations ...

    php.ini-development

    directive because it is not set or is mistyped, a default value will be used. ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one ; of the INI constants (On, Off, True, ...

    2009达内SQL学习笔记

    1、用法:SELECT columns,prod2,prod3&lt;列&gt; FROM Table1,table2&lt;表名&gt; 分号结束 如: select id from s_emp; select last_name,name from s_emp,s_dept where s_emp.dept_id=s_dept.id;--列表每人所在部门 SELECT...

    Database Processing Fundamentals, Design, and Implementation (12th Edition).rar

    Designing Read-Only Databases Denormalization Customized Duplicated Tables Common Design Problems The Multivalue, Multicolumn Problem Inconsistent Values Missing Values The General-Purpose Remarks ...

    Delphi7.1 Update

    and supersedes information contained in otherdocuments, including previously installed release notes.Borland recommends that you read this file in its entirety.NOTE: If you are updating a localized ...

    oracle学习文档 笔记 全面 深刻 详细 通俗易懂 doc word格式 清晰 连接字符串

    Mysql 甲骨文 是个开源的数据库server,可运行在多种平台, 特点是响应速度特别快,主要面向中小企业 中小型企业 PostgreSQL 号称“世界上最先进的开源数据库“,可以运行在多种平台下,是tb级数据库,而且性能也很...

    php_6_fast_and_easy_web_development.pdf

    Inserting, Updating, or Replacing Within a Table. . . . . . . . . . . 515 Deleting from a Table. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 517 Selecting from a Table. . . . . . . ....

    Linux操作系统基础教程

    在这一讲中,我们主要是了解一下 Linux 的概况,以及对 Linux 有一个初步的感性认识。 一.什么是Linux? Linux 是一个以 Intel 系列 CPU(CYRIX,AMD 的 CPU也可以)为硬件平台,完全免费的 UNIX 兼容系统,完全...

    Doctrine ORM for PHP.pdf

    Table of Contents Introduction....................................................................................................13 Code Examples.........................................................

Global site tag (gtag.js) - Google Analytics