Mysql Error 1146 Tabel doen't exist Error caused by high-Case sensitivity in MySql, tabeldoen

Source: Internet
Author: User

Mysql Error 1146 Tabel doen't exist Error caused by high-Case sensitivity in MySql, tabeldoen

MySql Error 1146 Tabel doen't exist. Generally, the table does not exist, or the table name is incorrect and the permission is incorrect.

I encountered this problem today. I checked it several times and confirmed it was correct. I tried select in phpMyAdmin to query the data. Check the permissions and make sure that the mysql user has all permissions. What is this error? After querying some information, I found that if the mysql engine is incorrect, it may cause the real tables to be inaccessible, but the engine is myisam.

I am so worried. Where is the error? After searching for another half a day, there is still no result. Looking at the error code for a while, I suddenly found a detail that has been ignored by me. The detailed error code is Tabel ABC doen't exist. The table name here is in uppercase, the name of the table in the database is abc (Ma Dong Note: for example only, this table is not available), which is in lower case. In phpMyAdmin, use the capital table name ABC to try the select statement. The error message Tabel ABC doen't exist is displayed.

Here, the problem is clearly visible, because it is ignored by me: On windows Server, mysql Data Tables are case-insensitive, while linux server is case-sensitive by default. If the linux server is not sensitive to uppercase or lowercase letters, find/etc/my. cnf and add a line under [mysqld]: lower_case_table_names = 1. (Ma Dong Note: lower_case_table_names is 0 by default, and the table name is case sensitive. If it is changed to 1, it is case insensitive ). If you do not have the permission to modify the server configuration, note that the names of each table must be case-insensitive.

If you do not pay attention to small details, it will often waste a lot of time. Details determine success or failure.




Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.