---
title: "解决MySQL error 1036: table is read only "
author: "eonbell"
date: "2011-05-05T22:37:14Z"
tags: []
categories: ["非技术"]
slug: "mysql-error-1036-table-is-read-only"
draft: false
lastmod: "2011-05-05T22:37:14Z"
id: 1032558
url: "https://eonbell.iteye.com/blog/1032558"
---

改变数据库文件的宿主权限
sudo chown -R mysql:mysql /var/lib/mysql

重启mysql服务
sudo service mysqld restart