项目启动时报表不存在,其实表已经在数据库,查看数据库是不是没有忽略大小写
1. 查看数据库大小写配置
show variables like '%lower%';
2. 使用root权限登录,修改配置文件 /etc/my.cnf 在[mysqld]节点下,加入一行:
lower_case_table_names=1
systemctl restart mysqld.service
3.再次查看,配置成功
项目启动时报表不存在,其实表已经在数据库,查看数据库是不是没有忽略大小写
1. 查看数据库大小写配置
show variables like '%lower%';
2. 使用root权限登录,修改配置文件 /etc/my.cnf 在[mysqld]节点下,加入一行:
lower_case_table_names=1
systemctl restart mysqld.service
3.再次查看,配置成功