当前位置:网站首页>Different lower_case_table_names settings for server (‘1‘) and data dictionary (‘0‘) 解决方案
Different lower_case_table_names settings for server (‘1‘) and data dictionary (‘0‘) 解决方案
2022-07-30 19:30:00 【asdfadafd】
问题情景
在使用洛伊框架的时候,数据库表找不到的问题。下结论是mysql区分大小写导致的问题。
lower_case_table_names 参数
官方原话,简单来说就是,unix默认是0,windows默认是1,mac是2。
0是区分大小写的,1是不区分的,也就是windows是默认不区分大小写的。
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.
问题解决
我翻阅了大量资料,都是说在配置文件配置lower_case_table_names=1,重启服务可以解决问题。
后来经过我查阅mysql官方文档资料发现:该解决方案只能在5.6/5.7低版本的mysql中有效。
但是在8.0版本下是行不通的,就算怎么做lower_case_table_names变量也没有得到更新。
官方mysql8.0版本新增的一条说明
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.
翻译:
LOWER_CASE_TABLE_NAMES只能在初始化服务器时配置。禁止在服务器初始化后更改LOWER_CASE_TABLE_NAMES设置。
也就是说在8.0版本,你的mysql已经初始化过就不支持修改lower_case_table_names参数了!!
如果你的是8版本这边建议你直接重装。
在my.cnf(可能名字不同)文件中添加lower_case_table_names=1
在初始化的时候需要指定lower_case_table_names=1参数
这是我找到最靠谱的重装教程:https://blog.csdn.net/qq_37598011/article/details/93489404
先自我介绍一下,小编13年上师交大毕业,曾经在小公司待过,去过华为OPPO等大厂,18年进入阿里,直到现在。深知大多数初中级java工程师,想要升技能,往往是需要自己摸索成长或是报班学习,但对于培训机构动则近万元的学费,着实压力不小。自己不成体系的自学效率很低又漫长,而且容易碰到天花板技术停止不前。因此我收集了一份《java开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
- 【MindSpore1.2.0-rc1产品】num_workers问题
- MindSpore:对image作normalize的目的是什么?
- 第十七届“振兴杯”全国青年 职业技能大赛——计算机程序设计员(云计算平台与运维)参赛回顾与总结
- JS提升:Promise中reject与then之间的关系
- 青蛙跳台阶(递归和非递归)-------小乐乐走台阶
- NXP IMX8QXP replacement DDR model operation process
- The problem of writing go run in crontab does not execute
- VBA batch import Excel data into Access database
- Talking about Contrastive Learning (Contrastive Learning) the first bullet
- 几个GTest、GMock的例子
猜你喜欢

Frog jumping steps (recursive and non-recursive) ------- Xiaolele walks the steps

【hbuilder】运行不了部分项目 , 打开终端 无法输入指令

LeetCode 0952.按公因数计算最大组件大小:建图 / 并查集

牛客刷题系列之进阶版(搜索旋转排序数组,链表内指定区间反转)

MySQL数据库 ---MySQL表的增删改查(进阶)

The technology is very powerful, do you still need to "manage up"?

2种手绘风格效果比较,你更喜欢哪一种呢?

MindSpore: CV.Rescale(rescale,shift)中参数rescale和shift的含义?

VBA connects Access database and Excel

MySQL分组后取最大一条数据【最优解】
随机推荐
[flink] Error finishing Could not instantiate the executor. Make sure a planner module is on the classpath
7.29模拟赛总结
MindSpore:【resnet_thor模型】尝试运行resnet_thor时报Could not convert to
MySQL Functions (Classic Collection)
【MindSpore】用coco2017训练Model_zoo上的 yolov4,迭代了两千多batch_size之后报错,大佬们帮忙看看。
MindSpore: CV.Rescale(rescale,shift)中参数rescale和shift的含义?
已删除
架构师如何成长
Alibaba Cloud Martial Arts Headline Event Sharing
跨域问题的解决方法
ResNet18-实现图像分类
What is the difference between a cloud database and an on-premises database?
How to build FTP server under win2003
VBA批量将Excel数据导入Access数据库
Niuke.com - Huawei Question Bank (100~108)
【MindSpore1.2.0-rc1产品】num_workers问题
The advanced version of the cattle brushing series (search for rotating sorted arrays, inversion of the specified range in the linked list)
ImportError:attempted relative import with no known parent package
Linux下最新版MySQL 8.0的下载与安装(详细步骤)
什么是 RESTful API?