MySQL Forums :: InnoDB :: #1036 - Table 'gain' is read only


Advanced Search

Re: #1036 - Table 'gain' is read only
Posted by: Ronald Wiplinger ()
Date: November 03, 2016 06:05PM

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?

Options: ReplyQuote


Subject Views Written By Posted
#1036 - Table 'gain' is read only 497 Ronald Wiplinger 11/02/2016 07:07PM
Re: #1036 - Table 'gain' is read only 222 Peter Brawley 11/03/2016 10:53AM
Re: #1036 - Table 'gain' is read only 250 Ronald Wiplinger 11/03/2016 06:05PM
Re: #1036 - Table 'gain' is read only 197 Ronald Wiplinger 11/03/2016 06:49PM
Re: #1036 - Table 'gain' is read only 211 Peter Brawley 11/03/2016 08:26PM
Re: #1036 - Table 'gain' is read only 289 Ronald Wiplinger 11/03/2016 08:34PM
Re: #1036 - Table 'gain' is read only 213 Peter Brawley 11/03/2016 10:39PM
Re: #1036 - Table 'gain' is read only 401 Ronald Wiplinger 11/03/2016 10:56PM
Re: #1036 - Table 'gain' is read only 364 Ronald Wiplinger 11/04/2016 11:38PM
Re: #1036 - Table 'gain' is read only 393 Ronald Wiplinger 11/05/2016 12:09AM
Re: #1036 - Table 'gain' is read only 322 Peter Brawley 11/05/2016 12:16AM
Re: #1036 - Table 'gain' is read only 283 Ronald Wiplinger 11/05/2016 03:05AM
Re: #1036 - Table 'gain' is read only 251 Ronald Wiplinger 11/05/2016 04:04AM
Re: #1036 - Table 'gain' is read only 240 Rick James 11/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.