首页 > 数据库 >Mysql8.0启动时出现ERROR: Different lower_case_table_names settings for server ('1') and data di

Mysql8.0启动时出现ERROR: Different lower_case_table_names settings for server ('1') and data di

时间:2024-09-27 17:38:36浏览次数:1  
标签:case 02 Different dictionary ott cdn names mysql root

分析:出现这个原因数据库启动后,调整lower_case_table_names参数导致的这个问题。mysql8.0之后,lower_case_table_names 配置必须在安装好 MySQL 后,初始化mysql 配置时才有效。一旦 mysql 启动后,再设置是无效的,而且启动报错。

lower_case_table_names=1 表示 mysql 是不区分大小写的

lower_case_table_names=0 表示 mysql 是区分大小写的

解决:

1、 不调整此值,在配置文件中注释掉这个参数

2、 重新初始化数据库

[root@ott-cdn-02 ~]# systemctl stop mysqld
[root@ott-cdn-02 ~]# rm -f /var/log/mysql
[root@ott-cdn-02 lib]# rm -rf /var/lib/mysql
[root@ott-cdn-02 lib]# mysqld --defaults-file=/etc/my.cnf --initialize --user=mysql --basedir=/var/lib/mysql --datadir=/var/lib/mysql  # 重新初始化mysql
[root@ott-cdn-02 lib]# systemctl start mysqld   #  启动mysql
[root@ott-cdn-02 ~]# grep "temporary password" /var/log/messages   # 查找mysql初始密码
[root@ott-cdn-02 ~]# mysql -u root -p"4kw/iv.uopfU"   # 登录mysql
mysql> ALTER USER USER() IDENTIFIED BY 'Hello123+';   # 更改密码
mysql> flush privileges;
mysql> quit;
[root@ott-cdn-02 ~]# mysql -u root -pHello123+ 

 

标签:case,02,Different,dictionary,ott,cdn,names,mysql,root
From: https://www.cnblogs.com/HByang/p/18436222

相关文章

  • Top 100+ Generative AI Applications / Use Cases in 2024
    Top100+GenerativeAIApplications/UseCasesin2024https://research.aimultiple.com/generative-ai-applications/#general-generative-ai-applications WrittenbyCemDilmeganiResearchedbySılaErmutAsseenfromaboveGoogleTrends......
  • C# Dictionary中的key修改
    在C#中,Dictionary<TKey,TValue>的键(key)是不可变的。一旦你将一个键值对添加到字典中,你就不能直接修改这个键。如果你需要更改键,你需要先删除旧的键值对,然后插入一个新的键值对。以下是一个示例,展示了如何更改Dictionary中的键:Csharp深色版本usingSystem;usingSystem......
  • Business Analytics Case Study
    BusinessAnalyticsCaseStudyCaseDescriptionThefinalbusinessanalyticscasestudyhas two components: a) data transformation with SSIS and b) predictive analysiswithRapidMiner.Bothtasksarebasedonindividualflight experiences from......
  • C语言之switch-case语句
    既然有了if、else组合为什么还需要switch、case组合呢?不要拿青龙偃月刀去削苹果那你既然有了菜刀为什么还需要水果刀呢?一把好刀是一个厨子的很重要的东西,而在做菜时不可能只有一把刀,有的刀适合切菜,有的刀适合剁肉,有的刀适合剔骨......if、else一般表示两个分支或是......
  • [1064] Change values in a DataFrame based on different values
    TochangevaluesinaDataFramebasedondifferentvalues,youcanuseseveralmethodsinPandas.Hereareafewcommonapproaches:UsinglocforConditionalReplacementYoucanusethelocmethodtoreplacevaluesbasedonacondition:importpandasasp......
  • Shell脚本——menu菜单(read、while、case的使用)
    ################################################################################Shell脚本提高工作效率;#Shell脚本定义功能函数;#Shell脚本定义功能分支过多,通过相对路径调用功能Shell脚本,另起炉灶。#Shell脚本通过外部交互输入变量值,例如:read-p"变量含义文本信息:"......
  • Bert下载和使用(以bert-base-uncased为例)
    Bert官方github地址:https://github.com/google-research/bert?tab=readme-ov-file在github下载:在huggingface(地址)下载config.json和pytorch_model.bin将github下载的解压,并将huggingface下载的config.json和pytorch_model.bin放到解压后的文件夹:测试:fromtransformersimp......
  • Shell case in语句详解
    文章目录一、Shellcasein语法二、示例2.1、举例:创建启动脚本,让service命令管理apache2.2、举例:创建启动脚本,让service命令管理nginx2.3、输入一个整数,输出该整数对应的星期几三、casein和正则表达式Shell也支持两种分支结构(选择结构),分别是ifelse语句和case......
  • Mysql Non cluster combined fields select where order by field different time co
    usemydb;droptableifexistst1;createtablet1(idintauto_incrementprimarykey,firstnamevarchar(100)notnulldefault'',lastnamevarchar(100)notnulldefault'',indexfn_ln_index(firstname,lastname)); FLUSHBINARYLO......
  • C# Dictionary(字典)的用法
    要使用Dictionary集合,需要导入C#泛型命名空间!​System.Collections.Generic​(程序集:mscorlib)Dictionary的描述1、从一组键(Key)到一组值(Value)的映射,每一个添加项都是由一个值及其相关连的键组成2、任何键都必须是唯一的3、键不能为空引用null(VB中的Nothing),若值为引用类......