简体   繁体   中英

MySQL: [Err] 1146 - Unknown error 1146

I'm using MySQL 5.7.13. I'm getting above error if a table doesn't exist. Not only this whatever the error is I'm getting only 'unknown error'. Can any let me know that how to make MySQL to display actual error ie Table doesn't exist.

Thanks

1.You should probably look if your table exist. 2. If you are inserting data from one table to another table with a statement like, Insert into table_A select * from table_B, in this if there is any column mismatch, you will encounter this error.

Having the same issue with a raw download binary.

Comes with this error when trying to run any mysqld :

[ERROR] Can't find error-message file

Solved it by specifying --lc_messages_dir .

Examples:

mysqld --console --datadir ~/.mysqldata --lc_messages_dir=$MYSQL_HOME/share/english --initialize-insecure 
mysqld --console --datadir ~/.mysqldata --lc_messages_dir=$MYSQL_HOME/share/english

Following two steps will help you out:

  1. if you have copied the mysql data, Go to the original directory xampp/mysql/data ( or whatever is relevant to your OS), and copy all the files starting with word ib, like ib_logfil0 etc. and paste to the new directory.

  2. Go to mysql command line, and run this command:

mysql_upgrade

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