当前位置:网站首页>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 .
边栏推荐
- JS regular expression implementation adds a comma to every three digits
- Record a pit dug by yourself~
- C# 事件用法案例 订阅事件+=
- Installation and use of apifox
- 记录一个自己挖的坑~
- linux能不能安装sqlserver
- Grayog log server single node deployment
- 小程序消息推送配置 Token校验失败,请检查确认
- An open source OA office automation system
- MySQL backup strategy
猜你喜欢
![[stonedb class] introductory lesson 1: popular science of database knowledge](/img/ec/4e3c0b91ac2ee164595c2891b23dfb.jpg)
[stonedb class] introductory lesson 1: popular science of database knowledge

RPC 远程过程调用

正则表达式基础整理

【StoneDB Class】入门第一课:数据库知识科普

JS regular expression implementation adds a comma to every three digits

Graylog 日志服务器单节点部署

LeetCode56. 合并区间

Clickhouse notes 1 | introduction, features | installation and use based on centos7 system | common data types | mergetree table engine | SQL operation

Okaleido tiger is about to log in to binance NFT in the second round, which has aroused heated discussion in the community

Am I delayed by the code... Unfortunately, I became a programmer
随机推荐
C common function integration-2
Temperature and humidity measurement and display device based on Arduino
Regular and sed exercises
冰冰学习笔记:类与对象(中)
Flink de duplication (I) summary of common de duplication schemes in Flink and Flink SQL
shell awk相关练习
MySQL backup strategy
【小程序】uniapp发行微信小程序上传失败Error: Error: {'errCode':-10008,'errMsg':'invalid ip...
STM32_ Find the cause of entering hardfault_ Handler's function
「翻译」SAP变式物料的采购如何玩转?看看这篇你就明白了
Showdoc vulnerability learning - cnvd-2020-26585 (arbitrary file upload)
What are the main threads of Youxuan database?
Docker install MySQL 8.0.28
什么是真正的HTAP?(一)背景篇
Debug:与泛型有关的“无法解析的外部符号”
正则 和 sed 练习
单片机多级菜单
将对象转换为键值对
Comprehensive analysis of ADC noise-01-types of ADC noise and ADC characteristics
电子量产项目框架--基本思想