简体   繁体   中英

can't select from mariadb table InnoDB

So I have a mariadb on a InnoDB engine with some tables

MariaDB [nextcloud]> SELECT TABLE_NAME,  ENGINE   FROM 
INFORMATION_SCHEMA.TABLES  WHERE table_schema = 'nextcloud' and 
table_name LIKE 'oc_file%';
+-----------------------+--------+
| TABLE_NAME            | ENGINE |
+-----------------------+--------+
| oc_filecache_extended | InnoDB |
| oc_filecache          | InnoDB |
| oc_file_locks         | InnoDB |
| oc_files_trash        | InnoDB |
+-----------------------+--------+

the selects on all tables are workin fine however when I try to select from oc_filecache I get the following error message

MariaDB [nextcloud]> select * from oc_filecache;
ERROR 1030 (HY000): Got error 1877 "Unknown error 1877" from storage engine InnoDB

Do you have any Idea what this error could mean, how I could fix it or how I could get something like an extended log to pin down the problem?

The odd thing is that after I restart the container running the db, everything works fine again for some time.

Error => #1030 - Got error 1877 "Unknown error" from storage engine InnoDB

To solve this error follow the below steps

  • Step 1. Go to Xampp control Panel and click on 'Config' available next to Mysql.
  • Step 2. Click on 'my.ini'
  • Step 3. Search for 'innodb_buffer_pool_size' and increase size from 16M to 256M
  • Step 4. Search for 'innodb_log_file_size' and increase size from 5M to 128M
  • Step 5. Restart Xampp

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM