`

mysql的Table is read only错误

阅读更多

mysql的Table xxxx is read only错误往往是发生在Linux主机上,在网上查了很多资料后终于发现它本质上是个权限问题。

要解决它首先要给mysql的数据库目录加上可写权限,即777

然后到mysql的Bin目录执行刷新

mysqladmin -u <username> -p flush-tables

并且保证mysql安装目录的/var/lib/mysql的目录权限设置为700

其间所有文件的权限设置为660

基本可以解决

另:当我们更改了mysql权限表,我们可以重起服务器,但更简单的办法是执行

mysqladmin -u <username> -p reload

 

很恶心!!!!!  害我白折腾 原来大量的数据都没有写进去 

分享到:
评论

相关推荐

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

    本文章总结了关于在linux与windows中 mysql出现Table 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 'xxxx' is read only)的问题,字面意思很明确,就是数据库只有读权限,无写权限,那么我们来分享下我的处理办法

    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, ...

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

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

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

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

    Doctrine ORM for PHP.pdf

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

    Linux操作系统基础教程

    Linux 操作系统基础教程 清华大学信息学院计算机系 目 录 前言..........................................................................................................................................

Global site tag (gtag.js) - Google Analytics