MYSQL pairs indicate case-sensitive

Source: Internet
Author: User
MYSQL statement is case-insensitive. It is depressing today. In LINUX, if a program is downgraded, the table cannot be found, but the table is clearly created and can be found in the MYSQL command line, why can't the program find the table ?? Later, I asked a teacher to solve the problem. It turns out that MYSQL in LINUX is case sensitive by default.

MYSQL statement is case-insensitive. It is depressing today. In LINUX, if a program is downgraded, the table cannot be found, but the table is clearly created and can be found in the MYSQL command line, why can't the program find the table? ? Later, I asked a teacher to solve the problem. It turns out that MYSQL in LINUX is case sensitive by default.

MYSQL pairs indicate case-insensitive

Today, I am depressed. I used to downgrade a program in LINUX and said I couldn't find the table, but I obviously created the table. I can also find it under the MYSQL command line, why can't the program find the table?

?

Later, I asked a teacher to solve the problem. It turns out that MYSQL in LINUX is case-sensitive by default. Well, it's so old that it's killing me.

The case-insensitive MYSQL method is actually very simple:

1. Log On with ROOT and modify/etc/my. cnf

2. Add a row under [mysqld]: lower_case_table_names = 1

3. Restart the database.

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.