在Centos7 下mysql大小写敏感问题,会导致程序运行时找不到对应的表。

解决办法:

第一步:编辑/etc/my.cnf文件,在[mysqld]节下 添加 lower_case_table_names=1 参数,并设置相应的值 (备注:为0时大小写敏感,为1时大小写不敏感,默认为0)。

(必须是在[mysqld]节点下添加,否则没有效果)

第二步:重启mysql

# service mysqld restart

第三步:查看mysql的参数

# mysql -uroot -p

Centos7 下mysql大小写敏感问题

相关文章:

  • 2021-12-16
  • 2021-08-11
  • 2021-10-21
  • 2021-07-11
  • 2021-06-14
  • 2021-10-15
  • 2021-05-21
猜你喜欢
  • 2021-08-16
  • 2021-12-31
  • 2021-08-31
  • 2022-12-23
  • 2021-09-08
  • 2022-12-23
相关资源
相似解决方案