当前位置:网站首页> 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不区分大小写内容请搜索软件开发网以前的文章或继续浏览下面的相关文章希望大家以后多多支持软件开发网!
边栏推荐
- 前置机是什么意思?主要作用是什么?与堡垒机有什么区别?
- 企業不想換掉用了十年的老系統
- Extern keyword
- Aardio - integrate variable values into a string of text through variable names
- Flutter life cycle
- Method of canceling automatic watermarking of uploaded pictures by CSDN
- POJ 1094 sorting it all out
- CSDN 上传图片取消自动加水印的方法
- Custom swap function
- Jafka来源分析——Processor
猜你喜欢

Let's see through the network i/o model from beginning to end

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

mysql连接vscode成功了,但是报这个错

Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medi

浅谈网络安全之文件上传

uniapp滑动到一定的高度后固定某个元素到顶部效果demo(整理)

Aardio - construct a multi button component with customplus library +plus
dockermysql修改root账号密码并赋予权限

CSDN 上传图片取消自动加水印的方法

专为决策树打造,新加坡国立大学&清华大学联合提出快速安全的联邦学习新系统
随机推荐
服务器的系统怎么选者
Dockermysql modifies the root account password and grants permissions
The difference between enumeration and define macro
Slide the uniapp to a certain height and fix an element to the top effect demo (organize)
European Bioinformatics Institute 2021 highlights report released: nearly 1million proteins have been predicted by alphafold
使用云服务器搭建代理
memcached
Aardio - integrate variable values into a string of text through variable names
How to choose the server system
COSCon'22 社区召集令来啦!Open the World,邀请所有社区一起拥抱开源,打开新世界~
dockermysql修改root账号密码并赋予权限
Rust knowledge mind map XMIND
[step on pit collection] attempting to deserialize object on CUDA device+buff/cache occupy too much +pad_ sequence
Hard core observation 545 50 years ago, Apollo 15 made a feather landing experiment on the moon
Aardio - does not declare the method of directly passing float values
MySQL authentication bypass vulnerability (cve-2012-2122)
Custom swap function
ACL 2022 | small sample ner of sequence annotation: dual tower Bert model integrating tag semantics
允许全表扫描 那个语句好像不生效set odps.sql.allow.fullscan=true;我
视图(view)