Re: #1036 - Table 'gain' is read only
MariaDB [(none)]> show variables like 'innodb_file_per_table';
+-----------------------+-------+
| Variable_name | Value |
+-----------------------+-------+
| innodb_file_per_table | ON |
+-----------------------+-------+
ls -la db_gain
total 212
drwx------ 2 mysql mysql 4096 10月 22 16:41 .
drwx------ 15 mysql mysql 4096 11月 1 14:10 ..
-rw-rw---- 1 mysql mysql 61 10月 22 16:18 db.opt
-rw-rw---- 1 mysql mysql 4142 10月 22 16:41 gain.frm
-rw-rw---- 1 mysql mysql 196608 10月 31 23:25 gain.ibd
No error log:
ls -l /var/log/mysql/
total 4
-rw-r----- 1 mysql adm 0 11月 4 07:41 error.log
-rw-r----- 1 mysql adm 0 11月 3 07:39 error.log.1
-rw-r----- 1 mysql adm 20 10月 19 07:37 error.log.8.gz
select * from gain; shows all data in the table,
Your last hint seems to show something. I read the dump file and see:
LOCK TABLES `gain` WRITE;
Is that the reason why I cannot write to that table? How to unlock?
Subject
Views
Written By
Posted
2216
November 02, 2016 07:07PM
983
November 03, 2016 10:53AM
Re: #1036 - Table 'gain' is read only
973
November 03, 2016 06:05PM
805
November 03, 2016 06:49PM
780
November 03, 2016 08:26PM
912
November 03, 2016 08:34PM
827
November 03, 2016 10:39PM
1226
November 03, 2016 10:56PM
1490
November 04, 2016 11:38PM
2603
November 05, 2016 12:09AM
1000
November 05, 2016 12:16AM
1186
November 05, 2016 03:05AM
1313
November 05, 2016 04:04AM
964
November 05, 2016 04:19PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.