1. 查看数据库大小写配置

show variables like '%lower%';

【开发笔记】-MySQL数据库忽略表名大小写

 

 2. 使用root权限登录,修改配置文件 /etc/my.cnf

3. 在[mysqld]节点下,加入一行: 

lower_case_table_names=1

4. 重启MySQL : 

systemctl restart mysqld.service

5. 查看数据库大小写配置

show variables like '%lower%';

【开发笔记】-MySQL数据库忽略表名大小写

 

 6. 设置成功

注意:

如果发生表或数据库不能删除修改的情况,将以上配置改回即可;

相关文章:

  • 2021-10-29
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
  • 2022-01-16
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-15
  • 2021-07-19
  • 2021-12-23
  • 2022-12-23
  • 2021-11-24
  • 2022-12-23
相关资源
相似解决方案