Case sensitivity of mysql statements in linux

Source: Internet
Author: User

Mysql statements are case sensitive in linux. In windows, the default SQL statement is lower_case_table_name = 1 (0 is case sensitive and 1 is case insensitive), which is case insensitive. however, in linux, lower_case_table_name = 0 is case sensitive by default. To modify the mysql configuration file, follow these steps: 1. # vi/etc/my. cnf 2. Add lower_case_table_name = 1 to [mysqld], save and exit: 1. press Esc. 2. enter the colon ": wq" 3. Restart mysql/etc/init. d/mysqld restart if Warning: World-writable config file '/etc/my. cnf 'is ignored. This is only a warning and can be ignored. But the following is a solution to fix it: chmod 644/etc/my. cnf-644 indicates rw-r-and then restart the service.

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.