当前位置:网站首页>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 !
边栏推荐
- Puppeteer连接已有Chrome浏览器
- Les entreprises ne veulent pas remplacer un système vieux de dix ans
- On file uploading of network security
- Dockermysql modifies the root account password and grants permissions
- 服务器的系统怎么选者
- TDengine 社区问题双周精选 | 第二期
- 案例推荐丨安擎携手伙伴,保障“智慧法院”更加高效
- 同构+跨端,懂得小程序+kbone+finclip就够了!
- ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型
- CUDA exploration
猜你喜欢
企业不想换掉用了十年的老系统
#DAYU200体验官# 在DAYU200运行基于ArkUI-eTS的智能晾晒系统页面
Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medi
Cloud native technology container knowledge points
Children's pajamas (Australia) as/nzs 1249:2014 handling process
cuda 探索
How to confirm the storage mode of the current system by program?
【全网首发】Redis系列3:高可用之主从架构的
Efficient ETL Testing
Word2vec (skip gram and cbow) - pytorch
随机推荐
Huawei cloud gaussdb (for redis) unveils issue 21: using Gauss redis to achieve secondary indexing
View
NPM cannot install sharp
Les entreprises ne veulent pas remplacer un système vieux de dix ans
three. JS gorgeous bubble effect
石墨文档:4大对策解决企业文件信息安全问题
MySQL ---- first acquaintance with MySQL
AcWing 4300. Two operations (minimum number of BFS searches)
ICLR 2022 | 基于对抗自注意力机制的预训练语言模型
动作捕捉用于蛇运动分析及蛇形机器人开发
Chapter 19 using work queue manager (2)
OpenSSL: a full-featured toolkit for TLS and SSL protocols, and a general encryption library
Thinkphp5 multi table associative query method join queries two database tables, and the query results are spliced and returned
Demonstration of the development case of DAPP system for money deposit and interest bearing financial management
Jafka来源分析——Processor
European Bioinformatics Institute 2021 highlights report released: nearly 1million proteins have been predicted by alphafold
让 Rust 库更优美的几个建议!你学会了吗?
MATLAB小技巧(27)灰色预测
Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medi
None of the strongest kings in the monitoring industry!