How is the table name in MySQL Linux case insensitive?

Source: Internet
Author: User


How does MySQL table name in Linux be case-insensitive? When I tested the table name in linux, I encountered some problems. When I saw the data, I couldn't find it. Later I found that in Linux,
Mysql table names are case-sensitive, but are case-insensitive in windows. Data scripts exported from windows Use lowercase letters,
In the SQL statement generated by Hibernate, the table name is in uppercase, so no data can be found. Google has some information to modify a mysql parameter, as shown below: In ubuntu,/etc/mysql/my. add lower_case_table_names = 1 0 to the end of [mysqld] In the cnf file, which is case-sensitive. 1. If it is not distinguished, it may also be in/etc/my. cnf, which cannot be used in ubuntu. Www.2cto.com and then restart mysqlsudo/etc/init. d/mysql restart Note: (the following content is taken from the internet) MYSQL in LINUX Database Name, table name, column name, alias case rules are as follows: 1. the Database Name and table name are case sensitive. the table alias is case sensitive. column names and column aliases are case-insensitive in all cases. the variable name is also strictly case sensitive. MYSQL is case insensitive in WINDOWS. Author jpr1990

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.