当前位置:网站首页>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
边栏推荐
- [Part 1 of Cloud Native Monitoring Series] A detailed explanation of Prometheus monitoring system
- IDEA 配置方法注释自动参数
- 数据持久化技术——MP
- 应用层基础 —— 认识URL
- 音视频基础
- R语言:文本(字符串)处理与正则表达式
- apisix-Getting Started
- 台达PLC出现通信错误或通信超时或下载时提示机种不符的解决办法总结
- [Go Affair] See through Go's collections and slices at a glance
- 3.网页信息解析方法:Xpath与BeautifulSoup
猜你喜欢

SQL - Left join, Right join, Inner join

St. Regis Takeaway Project: New dishes and dishes paged query

MySQL模糊查询性能优化

Data Persistence Technology - MP

Intranet Penetration Learning (IV) Domain Lateral Movement - SMB and WMI Service Utilization

安装MYSQL遇到问题:write configuration file卡主

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

学自动化测试哪个培训机构好 试听课程后就选了这个地方学习

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

无法将“node.exe”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。
随机推荐
才22岁!这位'00后'博士拟任职985高校!
SQL - Left join, Right join, Inner join
便利贴--46{基于移动端长页中分页加载逻辑封装}
最新MySql安装教学,非常详细
Docker build Mysql master-slave replication
《云原生的本手、妙手和俗手》——2022全国新高考I卷作文
CWE4.8 -- 2022年危害最大的25种软件安全问题
矩形脉冲波形的占空比及脉冲和瞬态特征的测量
Read through the interface to call the artifact RestTemplate
[Go Affair] See through Go's collections and slices at a glance
如何正确地把服务器端返回的文件二进制流写入到本地保存成文件
Threading(in thread main)
R语言:文本(字符串)处理与正则表达式
ApiPost 真香真强大,是时候丢掉 Postman、Swagger 了
【虚拟化生态平台】平台架构图&思路和实现细节
使用内存映射加快PyTorch数据集的读取
Yarn安装配置(vsftpd安装配置)
In PLC communication error or timeout or download the prompt solution of the model
ApiPost is really fragrant and powerful, it's time to throw away Postman and Swagger
MySql模糊查询大全