当前位置:网站首页>How to make MySQL case insensitive
How to make MySQL case insensitive
2022-06-21 07:31:00 【Yisu cloud】
How to make mysql Case insensitive
Today, I will share with you how to make mysql Case insensitive related knowledge points , Detailed content , Clear logic , I believe most people still know too much about this knowledge , So share this article for your reference , I hope you will gain something after reading this article , Now let's take a look .
Give Way mysql Case insensitive method :1、 Get into mysql Installation directory , Find and open the configuration file “my.ini”;2、 Add... To the last line of the configuration file “lower_case_table_names=1” sentence , Set case sensitive parameters “lower_case_table_names”, Give Way mysql Case insensitive ;3、 restart mysql The service can be .
The operating environment of this tutorial :windows7 System 、mysql8 edition 、Dell G3 The computer .
Give Way mysql Case insensitive method
mysql Case sensitive configuration is related to two parameters —— lower_case_file_system and lower_case_table_names
lower_case_file_system: Indicates whether the current system file is case sensitive (ON Is not sensitive ,OFF For sensitive ), Read only parameters , Can't modify .
lower_case_table_names: Indicates whether the table name is case sensitive , You can modify .
lower_case_file_system Parameter cannot be modified , So we can only use lower_case_table_names Parameters to make mysql Case insensitive .
step :
1、 Get into mysql Installation directory , Find and open the configuration file my.ini

2、 Add the following sentence to the last line of the configuration file
lower_case_table_names=1
lower_case_file_system Indicates whether the file system where the data directory is located is sensitive to the case of the file name
0: Case sensitive
1: Case insensitive

3、 restart mysql The service can be .
matters needing attention :
Default lower_case_tables_name by 0 Set to 1, You need to convert the existing library table name to lowercase :
1) For the case where only uppercase letters exist in the table name :
①、lower_case_tables_name=0 when , perform rename table In lowercase .
②、 Set up lower_case_tables_name=1, Restart and take effect .
2) Case where the library name exists :
①、lower_case_tables_name=0 when , Use mysqldump export , And delete the old database .
②、 Set up lower_case_tables_name=1, Restart and take effect .
③、 Import data to instance , At this point, the library name containing uppercase letters has been converted to lowercase .
That's all “ How to make mysql Case insensitive ” All the content of this article , Thank you for reading ! I believe you will gain a lot after reading this article , Xiaobian will update different knowledge for you every day , If you want to learn more , Please pay attention to the Yisu cloud industry information channel .
边栏推荐
猜你喜欢

RDKIT | 基于分子指纹的分子相似性

mysql分页查询如何优化

Wechat applet_ 3. Wxml template syntax
![[OSG] OSG development (03) -- build the osgqt Library of MSVC version](/img/54/602cc5e92d8bfafbef346d6fbb96e3.png)
[OSG] OSG development (03) -- build the osgqt Library of MSVC version

AutoCAD - drawing units and drawing boundaries

mysql不是内部命令如何解决

建设数字化工厂的四个必要步骤

How to see who developed the applet (see the method of the applet development company)

如何利用MES管理系统实现防错和预警

Life cycle of kubernetes pod
随机推荐
16 general measurement of data skewness and kurtosis
Asp. Net web API 2 Lesson 1 - getting started
Fault analysis | case analysis of master-slave synchronization error reporting after MySQL slave restart
MATLAB 三维图(非常规)
ETF operation practice record: February 22, 2022
25 parameter estimation - Determination of sample size
mysql不是内部命令如何解决
dried food! Neuron competitive initialization strategy based on information bottleneck theory
Seat number of Pat grade B 1041 test (15 points)
Open up the connection between production and marketing and build a new digital supply chain of agricultural and sideline products
建设数字化工厂的四个必要步骤
On June 13, 2022, interview questions were asked
32单片机——pwm波输出
Record context information through ThreadLocal (record user information to realize global operation)
[graduation season - advanced technology Er]: the technology sharing of senior college students and the future encouragement
mysql存储过程中的循环语句怎么写
Life cycle of kubernetes pod
IDM mobile terminal function upgrade description
mysql数据库拉链表是什么
17 statistics and their sampling distribution statistics and distribution