#1036 - Table is read only in phpMyAdmin

大憨熊 提交于 2019-12-13 04:35:53

问题


I'm using a database host with phpMyAdmin. This host isn't mine.

I executed this code in the phpMyAdmin of this host:

INSERT INTO `fronton`(`id`, `Name`, `number`, `cover`, `ligth`, `type`, `height`, `widht`, `lenght`, `latitude`, `longitude`, `status`, `time`, `price`) VALUES (NULL , 'Barrikako Frontoia', '9', '1', '2', '0', NULL , NULL , NULL , '0,3454232', '0,32243243', '0', '0', '0')

And this error appear:

1036 - Table 'fronton' is read only

I have been searching a lot about it, but i haven't found anything. Does anyone know what i can do about this?

Updated:

Now i am using a host service called Hostinger and i have the same problem.

Thank you so much!


回答1:


i found the solution to the problem. Instead of use this code:

ENGINE=MRG_MyISAM DEFAULT CHARSET=utf8mb4;

i have to use:

ENGINE=innoDB DEFAULT CHARSET=utf8;

it was a engine error.




回答2:


If you are using windows server than you comment line innodb_force_recovery = 1 to #innodb_force_recovery = 1 in my.ini

It works for me.



来源:https://stackoverflow.com/questions/32161224/1036-table-is-read-only-in-phpmyadmin

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!