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]

 其實是有這個表的,但是報這個錯就很郁悶。原因就是區分大小寫


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM