首页 > 数据库技术 > 详细

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

时间:2019-10-23 12:01:18      阅读:291      评论:0      收藏:0      [点我收藏+]

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]

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

 

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

原文:https://www.cnblogs.com/jkwll/p/11717481.html

踩
(1)
赞
(1)
   
举报
评论 一句话评论(0)
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!