当前位置:网站首页>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=1The 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=0It 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.cnfrestart mysql Containers
docker restart mysqlpreservation , 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 !
边栏推荐
- Designed for decision tree, the National University of Singapore and Tsinghua University jointly proposed a fast and safe federal learning system
- Signed and unsigned keywords
- ICLR 2022 | pre training language model based on anti self attention mechanism
- Detailed explanation of ThreadLocal
- Dayu200 experience officer homepage AITO video & Canvas drawing dashboard (ETS)
- Jafka source analysis processor
- Balanced Multimodal Learning via On-the-fly Gradient Modulation(CVPR2022 oral)
- memcached
- Enterprises do not want to replace the old system that has been used for ten years
- 石墨文档:4大对策解决企业文件信息安全问题
猜你喜欢

Introduction to network basics

欧洲生物信息研究所2021亮点报告发布:采用AlphaFold已预测出近1百万个蛋白质

Slide the uniapp to a certain height and fix an element to the top effect demo (organize)

案例推荐丨安擎携手伙伴,保障“智慧法院”更加高效

Dayu200 experience officer runs the intelligent drying system page based on arkui ETS on dayu200

Designed for decision tree, the National University of Singapore and Tsinghua University jointly proposed a fast and safe federal learning system

Improving Multimodal Accuracy Through Modality Pre-training and Attention

Matlab tips (27) grey prediction

Motion capture for snake motion analysis and snake robot development

Balanced Multimodal Learning via On-the-fly Gradient Modulation(CVPR2022 oral)
随机推荐
Traversal of a tree in first order, middle order, and then order
为了交通安全,可以做些什么?
European Bioinformatics Institute 2021 highlights report released: nearly 1million proteins have been predicted by alphafold
Puppeter connects to the existing Chrome browser
UVa 11732 – strcmp() Anyone?
Return keyword
How to choose indoor LED display? These five considerations must be taken into account
QT signal and slot
Hard core observation 545 50 years ago, Apollo 15 made a feather landing experiment on the moon
Some suggestions for foreign lead2022 in the second half of the year
Detailed explanation of ThreadLocal
使用云服务器搭建代理
None of the strongest kings in the monitoring industry!
Dayu200 experience officer runs the intelligent drying system page based on arkui ETS on dayu200
How to use flexible arrays?
docker中mysql开启日志的实现步骤
How to achieve text animation effect
OpenNMS separation database
Cloud native technology container knowledge points
How big is the empty structure?