当前位置:网站首页>MySQL table name area in Linux is not case sensitive
MySQL table name area in Linux is not case sensitive
2022-07-27 07:46:00 【Yisu cloud】
linux in mysql The table name area is not case sensitive
This article mainly introduces linux in mysql The table name area is not case sensitive , The content is detailed and easy to understand , The operation is simple and fast , It has certain reference value , I believe that after reading this article linux in mysql The table name area is not case sensitive, and articles will gain , Let's have a look .
linux in mysql Table names are case sensitive ;mysql Database name of 、 Table name 、 Variable names and table aliases are in linux Are strictly case sensitive , Column names and column aliases ignore case in all cases , You can modify MySQL In the configuration file of “ower_case_table_names” Parameter to set whether it is case sensitive .
The operating environment of this tutorial :linux7.3 System 、mysql8.0.22 edition 、Dell G3 The computer .
linux in mysql Are table names case sensitive
linux in ,mysql After installation , Table names are case sensitive by default , And this attribute cannot be modified , What is said on the Internet /etc/mysql/my.cnf The configuration of adding fields in cannot take effect , Modification will cause mysql Can't start .
mysql stay linux Table names in are case sensitive ,mysql stay Windows Table names in are not case sensitive ; Can be in MySQL Configuration file for “my.ini [mysqld]” Add a line to the list “ower_case_table_names = Parameters ” To set whether it is case sensitive .
MySQL stay Linux Next database name 、 Table name 、 Name 、 This is the case rule for aliases :
Database and table names are strictly case sensitive ;
Table aliases are strictly case sensitive ;
Column names and column aliases are case insensitive in all cases ;
Variable names are also strictly case sensitive ;
MySQL stay Windows It's not case sensitive .
So in order to make the program and database run normally in different operating systems , The best way is to turn it into lowercase when designing , But if the case has been normalized at design time , So in Windows Environment, as long as the configuration of the database to make changes on the line ,
The specific operation is as follows :
stay MySQL In the configuration file my.ini [mysqld] Add a line to the list ower_case_table_names = 1
Parameter interpretation :
0: Case sensitive
1: Case insensitive
stay MySQL in , Database and table pairs are related to the directories and files under those directories .
thus , The sensitivity of the operating system determines the case sensitivity of database and table naming . This means that the database and table names are in the Windows Is case insensitive , And in most types of Unix The system is case sensitive .
Column names and column aliases are case insensitive in all cases , The alias of a table is case sensitive . To avoid this problem , You'd better use the combination of lowercase letters and underscores when defining database naming rules , Without using any capital letters . Or it can be forced to -O lower_case_table_names=1 Parameter startup
About “linux in mysql The table name area is not case sensitive ” That's all for this article , Thank you for reading ! I'm sure you're right “linux in mysql The table name area is not case sensitive ” Knowledge has a certain understanding , If you want to learn more , Welcome to the Yisu cloud industry information channel .
边栏推荐
- What is the real HTAP? (2) Challenge article
- Shell loop exercise
- Error when connecting to MySQL: public key retrieval is not allowed [solution]
- 存储过程与函数
- What other methods are available for MySQL index analysis besides explain
- Framework of electronic mass production project -- basic idea
- Jjwt generate token
- Understanding and learning of node flow and processing flow in io
- DEMO:PA30 银行国家码默认CN 增强
- 「翻译」SAP变式物料的采购如何玩转?看看这篇你就明白了
猜你喜欢

Plato Farm有望通过Elephant Swap,进一步向外拓展生态

【QT】capture. Obj:-1: error: lnk2019: unresolved external symbols__ imp_ Htons (solution)

Mysql: increase the maximum number of connections

ARP广播实践案例

Prior Attention Enhanced Convolutional Neural Network Based Automatic Segmentation of Organs at Risk

DEMO:PA30 银行国家码默认CN 增强

What is the real HTAP? (2) Challenge article

LeetCode56. 合并区间

电子量产项目框架--基本思想

mysql备份策略
随机推荐
【StoneDB Class】入门第一课:数据库知识科普
【Golang】golang开发微信公众号网页授权功能
shell企业面试题练习
小程序支付管理-新版支付对接流程
Properties类和properties配置文件的理解学习
glGetUniformLocation,glUniform4f
Regular and sed exercises
Okaleido生态核心权益OKA,尽在聚变Mining模式
glGetUniformLocation,glUniform4f
【QT】capture. Obj:-1: error: lnk2019: unresolved external symbols__ imp_ Htons (solution)
shell循环练习
帮个忙呗~不关注不登录,不到一分钟的一个问卷
IDEA中文乱码怎么办
实用的新药研发项目管理平台
What about idea Chinese garbled code
如何在电脑端登陆多个微信
Panabit SNMP配置
Record a pit dug by yourself~
Resttemplate connection pool configuration
容器内使用sudo报错bash: sudo: command not found解决