30go

天将window的项目迁移到linux上面,然后登录时一直报用户表找不到的错误信息。

检查发现数据库中的表名是m_user, 后来才想起来是大小写问题,

找到问题原因,解决方案如下:

修改/etc/my.cnf ,在[mysqld]下面添加一行,然后重启mysql数据库即可。

service mysql stop 

service mysql start

# 设置mysql表名不区分大小写
lower_case_table_names=1

 

分类:

技术点:

相关文章:

  • 2021-10-29
  • 2021-05-28
  • 2021-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
猜你喜欢
  • 2022-12-23
  • 2022-01-02
  • 2021-05-28
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
相关资源
相似解决方案