当前位置:网站首页>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 !
边栏推荐
- 安全保护能力是什么意思?等保不同级别保护能力分别是怎样?
- 面试题:AOF重写机制,redis面试必问!!!
- Windows Auzre 微软的云计算产品的后台操作界面
- Volatile keyword
- AcWing 4299. Delete point
- 让 Rust 库更优美的几个建议!你学会了吗?
- Motion capture for snake motion analysis and snake robot development
- 企业不想换掉用了十年的老系统
- npm无法安装sharp
- Improving Multimodal Accuracy Through Modality Pre-training and Attention
猜你喜欢
![[launched in the whole network] redis series 3: high availability of master-slave architecture](/img/42/e67c7fa88e57c8ad3262552fd7b83c.png)
[launched in the whole network] redis series 3: high availability of master-slave architecture

Dayu200 experience officer homepage AITO video & Canvas drawing dashboard (ETS)

Why are some people still poor and living at the bottom of society even though they have been working hard?

企业不想换掉用了十年的老系统

Les entreprises ne veulent pas remplacer un système vieux de dix ans

DR-Net: dual-rotation network with feature map enhancement for medical image segmentation

What can be done for traffic safety?

Aardio - does not declare the method of directly passing float values

Children's pajamas (Australia) as/nzs 1249:2014 handling process

Aardio - construct a multi button component with customplus library +plus
随机推荐
Comparison between variable and "zero value"
儿童睡衣(澳大利亚)AS/NZS 1249:2014办理流程
DevSecOps软件研发安全实践——发布篇
使用云服务器搭建代理
asp读取oracle数据库问题
POJ 1258 Agri-Net
Redis persistence mechanism
mysql查看表结构的三种方法总结
MySQL authentication bypass vulnerability (cve-2012-2122)
Aardio - Method of batch processing attributes and callback functions when encapsulating Libraries
dockermysql修改root账号密码并赋予权限
ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型
How to use flexible arrays?
Detailed explanation of ThreadLocal
memcached
How to choose indoor LED display? These five considerations must be taken into account
UE4 blueprint learning chapter (IV) -- process control forloop and whileloop
企业不想换掉用了十年的老系统
The problem that dockermysql cannot be accessed by the host machine is solved
Puppeter connects to the existing Chrome browser