Is MySQL big and lowercase sensitive?

Source: Internet
Author: User

About the big-and lowercase-sensitive problem of myslq,

Description of the Case sensitivity of the MySQL database name and table name: The Database Name and table name in MySQL are related to the operating system. In Windows, the database name is case-insensitive. in UNIX and Linux operating systems, the database name is case-sensitive. In fact, you can view it in the data directory where MySQL stores data. You can know that a database corresponds to a table, and a table corresponds toTable name + ". frm" file.

In Windows, file names and directory names are case-insensitive,

Therefore, the MySQL database name and table name are case-insensitive in windows, while those in Unix or Linux are case-insensitive.

The following is the original description of mysqlmanual:

In MySQL, databases and tables correspond to directories and files within those directories.
Consequently, the Case sensitivity of the underlying operating system determines the case
Sensitivity of database and table names. This means database and table names are case
Sensitive in UNIX and case insensitive in windows.

Case sensitivity of column names:

In MySQL, column names are case-insensitive, that is, "testcolumn" and "testcolumn" are the same.

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.