说明:在使用Tomcat6.0.32+Spring3.05+Quartz1.8.6+Mysql5.5.9 此项目在我本机上没有问题,当我把mysql 脚本导入到服务器上,将数据源配置修改为服务器对应的mysql时,再次运行程序出现以下问题,

错误信息如下:

严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scheduler' defined in ServletContext resource [/WEB-INF/spring-conf.xml]: Invocation of init method failed; nested exception is org.quartz.SchedulerConfigException: Failure occured during job recovery. [See nested exception: org.quartz.impl.jdbcjobstore.LockException: Failure obtaining db row lock: Table 'wzhpush2.qrtz_LOCKS' doesn't exist [See nested exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'wzhpush2.qrtz_LOCKS' doesn't exist]]

明明我的表都是存在的,却提示:Table 'wzhpush2.qrtz_LOCKS' doesn't exist。

最后找到原因是:我本地是Window平台,此平台下面Mysql默认是不区分下小写的,而服务器时Linux平台,在linux平台下面Mysql默认是严格区分大小写的。此时,修改Mysql配置文件让其不区分大小写,问题解决。。
>sudo vim /etc/mysql/my.cnf

在[mysqld]下面添加:

lower_case_table_names = 1

然后保存退出,重启Mysql

>sudo restart mysql

最新文章

  1. 【WebGoat习题解析】AJAX Security->Insecure Client Storage
  2. cnavas
  3. IntentService源码分析
  4. RDIFramework.NET ━ 9.16 案例模块━ Web部分
  5. 2015某编程网易语言vip课堂全套教程 包含post,hook入门到精通等
  6. 查询一个ID出现2种结果的情况
  7. mysql中character_set_connection的作用
  8. 如何避免JavaScript的内存泄露及内存管理技巧
  9. Gym 100507L Donald is a postman (水题)
  10. 使用date转换UNIX时间戳
  11. Linux内核学习笔记-1.简介和入门
  12. 简单使用JSON,JavaScript读取JSON文本(三)
  13. php 中文转拼音首字母问题
  14. CSS实现的几款不错的菜单栏
  15. Spring @Transactional 使用
  16. Mysql ibd文件恢复指南
  17. Android为TV端助力context转换类型
  18. Stackoverflow热门问题
  19. Spark操作parquet文件
  20. 开源性能测试工具Locust使用篇(一)

热门文章

  1. IC封装图片认识(二):SOP&SOJ
  2. The square chest
  3. Android和FTP服务器交互,上传下载文件(实例demo)
  4. 完整的拆分nginx访问日志
  5. back_insert_iterator和iterator用起来不一样。
  6. poj 1503 大数相加(java)
  7. Paint House 解答
  8. jdbc连接数据库工具类
  9. YYmodel 郭耀源 底层分析
  10. XCode中在提示窗体中对已弃用的API接口画上红线