当前位置:网站首页>Docker mysql5.7 how to set case insensitive
Docker mysql5.7 how to set case insensitive
2022-07-06 23:09:00 【1024 questions】
After entering the container
mysql Configuration files are placed in /etc/mysql/mysql.conf.d/mysqld.cnf,
vim /etc/mysql/mysql.conf.d/mysqld.cnf stay [mysqld] Add a line next : lower_case_table_names=1
or
docker run -p 3306:3306 --name mymysql -v $PWD/conf:/etc/mysql/conf.d -v $PWD/logs:/logs -v $PWD/data:/mysql_data -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.7 --lower_case_table_names=1
The host computer is changed
[mysqld]# Case insensitive lower_case_table_names=1lower_case_table_names=1pid-file = /var/run/mysqld/mysqld.pidsocket = /var/run/mysqld/mysqld.sockdatadir = /var/lib/mysql#log-error = /var/log/mysql/error.log# By default we only accept connections from localhost#bind-address = 127.0.0.1# Disabling symbolic-links is recommended to prevent assorted security riskssymbolic-links=0
It can also be used in the host computer docker command cp Go inside the container
docker cp mysqld.cnf mysql:/etc/mysql/mysql.conf.d/mysqld.cnf
restart mysql Containers
docker restart mysql
preservation , Exit the container ;
perform sudo docker restart MySQL , restart MySQL You can view it :
show global variables like '%lower_case%';+------------------------+-------+| Variable_name | Value |+------------------------+-------+| lower_case_file_system | OFF || lower_case_table_names | 1 |+------------------------+-------+2 rows in set (0.00 sec)
This is about docker mysql5.7 This is how to set case insensitive , More about docker mysql5.7 It is not case sensitive. Please search the previous articles of SDN or continue to browse the relevant articles below. I hope you will support SDN in the future !
边栏推荐
- Flutter life cycle
- ICLR 2022 | pre training language model based on anti self attention mechanism
- Rust knowledge mind map XMIND
- Interview question: AOF rewriting mechanism, redis interview must ask!!!
- Jafka source analysis processor
- Method of canceling automatic watermarking of uploaded pictures by CSDN
- Matlab tips (27) grey prediction
- 金融人士必读书籍系列之六:权益投资(基于cfa考试内容大纲和框架)
- asp读取oracle数据库问题
- The problem that dockermysql cannot be accessed by the host machine is solved
猜你喜欢
ICLR 2022 | pre training language model based on anti self attention mechanism
让我们,从头到尾,通透网络I/O模型
MySQL authentication bypass vulnerability (cve-2012-2122)
MySQL实现字段分割一行转多行的示例代码
Machine test question 1
专为决策树打造,新加坡国立大学&清华大学联合提出快速安全的联邦学习新系统
UE4 blueprint learning chapter (IV) -- process control forloop and whileloop
NFTScan 开发者平台推出 Pro API 商业化服务
【Unity】升级版·Excel数据解析,自动创建对应C#类,自动创建ScriptableObject生成类,自动序列化Asset文件
视图(view)
随机推荐
DevSecOps软件研发安全实践——发布篇
Rust knowledge mind map XMIND
ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型
Modules that can be used by both the electron main process and the rendering process
Volatile keyword
(DART) usage supplement
dockermysql修改root账号密码并赋予权限
BasicVSR_ Plusplus master test videos and pictures
CRMEB商城系统如何助力营销?
儿童睡衣(澳大利亚)AS/NZS 1249:2014办理流程
Jafka source analysis processor
【全网首发】Redis系列3:高可用之主从架构的
ACL 2022 | small sample ner of sequence annotation: dual tower Bert model integrating tag semantics
Les entreprises ne veulent pas remplacer un système vieux de dix ans
Bipartite graph determination
Devsecops software R & D security practice - release
MATLAB小技巧(27)灰色预测
UVa 11732 – strcmp() Anyone?
安全保护能力是什么意思?等保不同级别保护能力分别是怎样?
Redis 持久化机制