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]
其實是有這個表的,但是報這個錯就很郁悶。原因就是區分大小寫