Home > Database > Mysql Tutorial > Linux主机下解决MySQL的 Table is read only错误

Linux主机下解决MySQL的 Table is read only错误

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:59:45
Original
967 people have browsed it

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

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

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

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

mysqladmin -u -p flush-tables

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

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

基本可以解决

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

mysqladmin -u -p reload

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template