当前位置:网站首页> docker mysql5.7如何设置不区分大小写
docker mysql5.7如何设置不区分大小写
2022-07-06 15:38:00 【1024问】
进入容器后
mysql 配置文件是放在 /etc/mysql/mysql.conf.d/mysqld.cnf,
vim /etc/mysql/mysql.conf.d/mysqld.cnf 在 [mysqld] 下加入一行: lower_case_table_names=1
或
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在宿主机改好
[mysqld]#不区分大小写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也可以在宿主机改好用docker命令cp到容器里面
docker cp mysqld.cnf mysql:/etc/mysql/mysql.conf.d/mysqld.cnf重启mysql容器
docker restart mysql保存,退出容器;
执行sudo docker restart MySQL ,重启MySQL即可查看:
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)到此这篇关于docker mysql5.7如何设置不区分大小写的文章就介绍到这了,更多相关docker mysql5.7不区分大小写内容请搜索软件开发网以前的文章或继续浏览下面的相关文章希望大家以后多多支持软件开发网!
边栏推荐
- 项目复盘模板
- ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型
- hdu 5077 NAND(暴力打表)
- The difference between enumeration and define macro
- 关于声子和热输运计算中BORN电荷和non-analytic修正的问题
- 【无标题】
- Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medi
- Efficient ETL Testing
- Introduction to network basics
- MATLAB小技巧(27)灰色预测
猜你喜欢

Enterprises do not want to replace the old system that has been used for ten years

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

企業不想換掉用了十年的老系統

rust知识思维导图xmind

监控界的最强王者,没有之一!

Custom swap function

Balanced Multimodal Learning via On-the-fly Gradient Modulation(CVPR2022 oral)

【Unity】升级版·Excel数据解析,自动创建对应C#类,自动创建ScriptableObject生成类,自动序列化Asset文件

Efficient ETL Testing

Bipartite graph determination
随机推荐
Puppeter connects to the existing Chrome browser
[untitled]
uniapp滑动到一定的高度后固定某个元素到顶部效果demo(整理)
AcWing 4300. Two operations (minimum number of BFS searches)
How big is the empty structure?
Cocoscreator+typescripts write an object pool by themselves
允许全表扫描 那个语句好像不生效set odps.sql.allow.fullscan=true;我
存币生息理财dapp系统开发案例演示
[unity] upgraded version · Excel data analysis, automatically create corresponding C classes, automatically create scriptableobject generation classes, and automatically serialize asset files
监控界的最强王者,没有之一!
MySQL ---- first acquaintance with MySQL
Custom swap function
None of the strongest kings in the monitoring industry!
Motion capture for snake motion analysis and snake robot development
The ceiling of MySQL tutorial. Collect it and take your time
How to achieve text animation effect
Demonstration of the development case of DAPP system for money deposit and interest bearing financial management
uniapp设置背景图效果demo(整理)
POJ 1258 Agri-Net
Efficient ETL Testing