MySQL表名不区分大小写的设置方法

mysql在windows系统下安装好后,默认是对表名大小写不敏感的,但是在linux下,一些系统需要手动设置。用root登录,打开并修改 /etc/my.cnf;在[mysqld]节点下,加入一行: lower_case_table_names=1。

重启mysql服务service mysql restart

坑:

Error creating bean with name 'sysJobController': Unsatisfied dependency expressed through field 'jobService'; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysJobServiceImpl': Invocation of init method failed; 
nested exception is org.quartz.JobPersistenceException: Couldn't check for existence of job: Table 'ry.QRTZ_JOB_DETAILS' doesn't exist [See nested exception:

 java.sql.SQLSyntaxErrorException: Table 'ry.QRTZ_JOB_DETAILS' doesn't exist]

 其实是有这个表的,但是报这个错就很郁闷。原因就是区分大小写

posted @ 2019-10-23 11:17  wullll  阅读(5624)  评论(0编辑  收藏  举报