How the SQL file table name exported to MySQL under Windows is case-sensitive

Source: Internet
Author: User

Solutions under Windows:

My.ini inside the mysqld part
Join lower_case_table_names=2

[Mysqld]
lower_case_table_names=2
Set-variable=lower_case_table_names=0
Port= 3306

Note: 1 indicates that case-insensitive 2 indicates case sensitivity

Then reboot the MYSQLD server and reboot the MYSQLD service in XAMPP to the XAMPP directory Mysql_start.bat
After restarting the MYSQLD service, the command line enters MySQL, confirming that the Lower_case_table_names value has been changed to 2.


Mysql> Show variables like '%low% ';
+------------------------+---------+
| variable_name | Value |
+------------------------+---------+
| log_slow_queries | Off |
| Low_priority_updates | Off |
| Lower_case_file_system | On |
| Lower_case_table_names | 2 |
| Max_allowed_packet | 1047552 |
| Slow_launch_time | 2 |
+------------------------+---------+
6 rows in Set (0.06 sec)

Import again Product.sql discovery has been able to be case-sensitive.

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.