当前位置:网站首页>Different lower_case_table_names settings for server ('1') and data dictionary ('0') solution
Different lower_case_table_names settings for server ('1') and data dictionary ('0') solution
2022-07-31 11:36:00 【m0_67392409】
Problem Scenario
When using the Lowy framework, the database table cannot be found.The conclusion is that mysql is case sensitive.
lower_case_table_names parameter
The official original words, simply put, the default for unix is 0, the default for windows is 1, and the default for mac is 2.
0 is case-sensitive, 1 is insensitive, that is, Windows is case-insensitive by default.
On Unix, the default value of lower_case_table_names is 0. On Windows, the default value is 1. On macOS, the default value is 2.
Problem Resolution
I read a lot of information, all of which said that configuring lower_case_table_names=1 in the configuration file, restarting the service can solve the problem.
Later, after I checked the official mysql documentation, I found that this solution is only valid in mysql with versions lower than 5.6/5.7.
But it doesn't work under version 8.0, even how to do lower_case_table_names variable has not been updated.
A new note added to the official mysql8.0 version
lower_case_table_names can only be configured when initializing the server. Changing the lower_case_table_names setting after the server is initialized is prohibited.
Translation:
LOWER_CASE_TABLE_NAMES can only be configured when initializing the server.Disallow changing the LOWER_CASE_TABLE_NAMES setting after server initialization.
In other words, in version 8.0, your mysql has been initialized and does not support modifying the lower_case_table_names parameter!!
If you are on version 8, it is recommended that you reinstall directly.
Add lower_case_table_names=1 to my.cnf (maybe different names) file
You need to specify the lower_case_table_names=1 parameter during initialization
This is the most reliable reinstallation tutorial I found: https://blog.csdn.net/qq_37598011/article/details/93489404
Let me introduce myself first. The editor graduated from Shanghai Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Alibaba in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is also very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials
边栏推荐
- CWE4.8 -- 2022年危害最大的25种软件安全问题
- mysql 索引使用与优化
- lotus-local-net 2k v1.17.0-rc4
- LeetCode 1161.最大层内元素和:层序遍历
- 《MySQL高级篇》四、索引的存储结构
- 便利贴--46{基于移动端长页中分页加载逻辑封装}
- 【Web技术】1397- 深入浅出富文本编辑器
- Docker practical experience: Deploy mysql8 master-slave replication on Docker
- [Go Affair] See through Go's collections and slices at a glance
- Redis - Basics
猜你喜欢

众多mock工具,这一次我选对了

PyQt5快速开发与实战 9.5 PyQtGraph在PyQt中的应用 && 9.6 Plotly在PyQt中的应用

The most complete phpmyadmin vulnerability summary

Candence学习篇(11) allegro中设置规则,布局,走线,铺铜

Power BI----几个常用的分析方法和相适应的视觉对象

redis-enterprise use

准确率(Accuracy)、精度(Precision)、召回率(Recall)和 mAP 的图解

文件包含漏洞

透过开发抽奖小程序,体会创新与迭代

Cloudera Manager —— 端到端的企业数据中心管理工具
随机推荐
关于Mysql数据库的介绍
MySQL 行级锁(行锁、临键锁、间隙锁)
淀粉与纤维素
内网渗透学习(四)域横向移动——SMB和WMI服务利用
【软件工程之美 - 专栏笔记】33 | 测试工具:为什么不应该通过QQ/微信/邮件报Bug?
学习爬虫之Scrapy框架学习(1)---Scrapy框架初学习及豆瓣top250电影信息获取的实战!
xmind使用指南(XMind具有下列哪些功能)
MySQL row-level locks (row locks, adjacent key locks, gap locks)
Acwing-考研机试题
lotus-local-net 2k v1.17.0-rc4
基于C51实现按键控制
musl Reference Manual
AWS亚马逊云账号注册,免费申请12个月亚马逊云服务器详细教程
oracle优化:instr做join条件很慢「建议收藏」
矩形脉冲波形的占空比及脉冲和瞬态特征的测量
3D激光SLAM:LeGO-LOAM论文解读---点云分割部分
Yarn安装配置(vsftpd安装配置)
安装MYSQL遇到问题:write configuration file卡主
2022/7/28
apisix-入门使用篇