当前位置:网站首页>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 !
边栏推荐
- Windows auzre background operation interface of Microsoft's cloud computing products
- [unity] upgraded version · Excel data analysis, automatically create corresponding C classes, automatically create scriptableobject generation classes, and automatically serialize asset files
- Case recommendation: An Qing works with partners to ensure that the "smart court" is more efficient
- Detailed explanation of ThreadLocal
- Jafka source analysis processor
- mysql查看表结构的三种方法总结
- DR-Net: dual-rotation network with feature map enhancement for medical image segmentation
- 前置机是什么意思?主要作用是什么?与堡垒机有什么区别?
- Dayu200 experience officer runs the intelligent drying system page based on arkui ETS on dayu200
- 第十九章 使用工作队列管理器(二)
猜你喜欢
让我们,从头到尾,通透网络I/O模型
为了交通安全,可以做些什么?
None of the strongest kings in the monitoring industry!
儿童睡衣(澳大利亚)AS/NZS 1249:2014办理流程
dockermysql修改root账号密码并赋予权限
How to choose indoor LED display? These five considerations must be taken into account
Cocoscreator+typescripts write an object pool by themselves
asp读取oracle数据库问题
Flutter life cycle
MySQL authentication bypass vulnerability (cve-2012-2122)
随机推荐
memcached
mysql查看表结构的三种方法总结
Case recommendation: An Qing works with partners to ensure that the "smart court" is more efficient
Dayu200 experience officer homepage AITO video & Canvas drawing dashboard (ETS)
How to achieve text animation effect
Demonstration of the development case of DAPP system for money deposit and interest bearing financial management
Jafka source analysis processor
How to choose the server system
ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型
UDP programming
How big is the empty structure?
MATLAB小技巧(27)灰色预测
Flutter life cycle
Huawei cloud gaussdb (for redis) unveils issue 21: using Gauss redis to achieve secondary indexing
Machine test question 1
Designed for decision tree, the National University of Singapore and Tsinghua University jointly proposed a fast and safe federal learning system
Hard core observation 545 50 years ago, Apollo 15 made a feather landing experiment on the moon
OpenSSL: a full-featured toolkit for TLS and SSL protocols, and a general encryption library
Custom swap function
Aardio - integrate variable values into a string of text through variable names