I am using ubuntu and after restarting the mysql server it gives an error - Table 'db.table' doesn't exist in engine
Table exists, frm / ibd is in place and has owner mysql
Before that I did Optimize table
ERROR 1932 (42S02): Table 'db.table' doesn't exist in engine
Related
I exported a database from a production server and I'm trying to import it into my local test environment. When I try to import it gives me the error below on multiple tables.
ERROR 1146 (42S02): Table 'abc123' doesn't exist
I have verified that the tables do exist in the production database and the sql file has the create table statement:
CREATE TABLE `wp_posts` (
...
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
On the Production Database, the Collation is set to latin1_swedish_ci and each table Collation is set to `utf8mb4_unicode_ci' which I have replicated in the local database.
Production Database server: Server version: 5.7.34
Local Database server: Server version: 5.7.24
I have read through a lot of posts on SO and can't find a solution to this.
EDIT:
I was able to fix this problem by increasing the packet size in mysql.ini
I was able to fix this problem by increasing max_allowed_packet to 64MB in the mysql.ini.
I get database from server linux debian /mnt/var/lib/mysql/directorybase the files frm and copy the directorybase in C:\wamp\bin\mysql\mysql5.6.17\data
my local machine wampserver but I get this error in phpmyadmin when I access my table in phpmyadmin then error message
#1146 - Table 'avvvc' doesn't exist.
File log I have this:
[Warning] InnoDB: Cannot open table avis_prod/sib_model_forms from the internal data dictionary of InnoDB though the .frm file for the table exists. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem.
My ownlcoud server is reporting "Connection refused error". A close inspection by phpMyAdmin showed that some tables in mysql database are corrupted.
Code: Select all
Table Op Msg_type Msg_text
mysql.plugin repair Error Incorrect information in file: './mysql>/plugin.frm...
mysql.plugin repair error Corrupt
mysql.procs_priv repair Error Incorrect information in file: './mysql/procs_priv...
mysql.procs_priv repair error Corrupt
mysql.slow_log repair Error Incorrect information in file: './mysql/slow_log.f...
mysql.slow_log repair error Corrupt
The owncloud db is fine. I do not know how to fix these tables (Google returns very conflicting results and several entries here are not answered). Is it possible to repair them (phpMyAdmin and mysqlcheck could not)? Can I reset this db to start afresh? Thank you.
use below query to repair your table
repair table table_name use_frm;
OR
You need to replace that frm from another one with same table structure.
I have just reinstalled WAMPSERVER without backing-up the data folder of MYSQL under WAMPSERVER, with the understanding that uninstalling and re-installing WAMPSERVER would leave the data directory of MYSQL intact as it is. This was a re-installation of the same WAMPSERVER version.
So now I login to MYSQL, can see all databases and tables from previous WAMPSERVER using SHOW DATABASES, and SHOW TABLES IN myDb. But trying SHOW COLUMNS IN myTable or further attempt to access the data in these tables fails, giving the error:
ERROR 1146 (42S02): Table 'myDb.myTable' doesn't exist
and the logfile:
2013-10-08 14:42:23 1072 [Warning] InnoDB: Cannot open table myDB/myTable from the internal data dictionary of InnoDB though the .frm file for the table exists.
try an CREATE if not exists query, see what output this gives.
I'm trying to use mysqldump to dump a database, but I'm getting an error:
mysqldump: Couldn't execute 'show create table wp_commentmeta': Unknown storage engine 'InnoDB' (1286)
No worries; I'll just go into MySQL and change the storage engine for the table:
mysql> show create table wp_commentmeta;
ERROR 1286 (42000): Unknown storage engine 'InnoDB'
mysql> Alter table wp_commentmeta ENGINE = myisam;
ERROR 1286 (42000): Unknown storage engine 'InnoDB'
What am doing wrong? (and/or) How can I fix it?
There are many ways to recover InnnoDB tables.
If you meet these goals, give this page a try.
You got backup of your ibdata1, ib_logfile0 and ib_logfile1
You also got backup of your database folder with .frm files
You would like to restore this backup into an MySQL server that’s already in production.
http://egil.biz/how-to-recover-mysql-data-from-innodb/
If that doesn't solve your problem, give this other InnoDB recovery walkthrough a try:
http://www.mysqlperformanceblog.com/2008/07/04/recovering-innodb-table-corruption/