For this reason, Alibaba's regulations require:
Therefore, no uppercase letters are allowed in database names, table names, and field names to avoid unnecessary trouble. MySQL case sensitivity is controlled by parametersThere are two parameters related to MySQL case-sensitivity configuration, lower_case_file_system and lower_case_table_names. To view the current case-sensitive configuration of MySQL, you can use the following statement show global variables like '%lower_case%'; +------------------------+-------+ | Variable_name | Value | +------------------------+-------+ | lower_case_file_system | ON | | lower_case_table_names | 0 | +------------------------+-------+ The parameters are described as follows: 1.lower_case_file_system, indicating whether the current system file is case sensitive, is a read-only parameter and cannot be modified. ON is case-insensitive, OFF is case-sensitive.
2.lower_case_table_names, indicates whether the table name is case sensitive, which can be modified. There are three parameters: 0, 1, and 2.
How to set MySQL case sensitivityModify the my.cnf file in Linux system and the my.ini file in Windows system, and add or modify the following content. lower_case_table_names = 0 or lower_case_table_names = 1 Then restart the MySQL service for the changes to take effect. Development Notes
SummarizeDue to the inconsistency of case-sensitivity default settings due to different operating systems, we must pay attention to it during development and develop a strict awareness that all SQL statements should use lowercase letters to avoid meaningless pitfalls. The above are the details of the precautions for MySQL case sensitivity. For more information about MySQL case sensitivity, please pay attention to other related articles on 123WORDPRESS.COM! You may also be interested in:
|
<<: Flash embedded in HTML Solution for embedding Flash files in HTML web page code (Part 2)
>>: How to use environment variables in nginx configuration file
Stored Functions What is a stored function: It en...
In the front-end and back-end separation developm...
This article example shares the specific code of ...
After installing a centos8 service under vmware a...
1. Overview of SQLException When an error occurs ...
Mainly used knowledge points: •css3 3d transforma...
A Brief Discussion on the Navigation Window in If...
1. Create a SpringBooot project and package it in...
<br />This example mainly studies two parame...
Docker virtualizes a bridge on the host machine. ...
Most of the earliest computers could only use ASC...
Preface In the last issue, we explained LinearLay...
Preface I watched web.dev's 2020 three-day li...
Table of contents Creating HTML Pages Implement t...
I collected a lot of them, but all ended in failu...