Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/376.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 获取SQLException表不';使用quartz jdbcstore无法生存_Java_Mysql_Quartz Scheduler - Fatal编程技术网

Java 获取SQLException表不';使用quartz jdbcstore无法生存

Java 获取SQLException表不';使用quartz jdbcstore无法生存,java,mysql,quartz-scheduler,Java,Mysql,Quartz Scheduler,Iam使用jdbcstore实现Quartz调度程序。我遇到了类似qrtz_触发器不可用的异常 2013-05-03 07:58:38,211 - - DEBUG, [main], com.mchange.v2.c3p0.impl.DefaultConnectionTester, Testing a Connection in response to an Exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:

Iam使用jdbcstore实现Quartz调度程序。我遇到了类似qrtz_触发器不可用的异常

2013-05-03 07:58:38,211 -  - DEBUG, [main], com.mchange.v2.c3p0.impl.DefaultConnectionTester, Testing a Connection in response to an Exception:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'myData.qrtz_TRIGGERS' doesn't exist
但实际上,表在我的数据库中是可用的,表名是qrtz_触发器。表名都是小写字母。那么,如何解决这个问题以及下面我的石英特性呢

org.quartz.scheduler.instanceName = APP1_SCHEDULER
org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount = 4
org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread = true

#specify the jobstore used
org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX
org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.StdJDBCDelegate
org.quartz.jobStore.useProperties = false

#The datasource for the jobstore that is to be used
org.quartz.jobStore.dataSource = myDS

#quartz table prefixes in the database
org.quartz.jobStore.tablePrefix = qrtz_
org.quartz.jobStore.misfireThreshold = 60000
org.quartz.jobStore.isClustered = false

#The details of the datasource specified previously
org.quartz.dataSource.myDS.driver = com.mysql.jdbc.Driver
org.quartz.dataSource.myDS.URL = jdbc:mysql://localhost:3306/myData
org.quartz.dataSource.myDS.user = root
org.quartz.dataSource.myDS.password = root
org.quartz.dataSource.myDS.maxConnections = 20

尝试将您的表重命名为qrtz_触发器?这似乎是计划程序正在查找的内容。

是否尝试将表重命名为qrtz_触发器?看起来这就是计划程序正在寻找的内容。

可能您的数据库区分大小写,您应该相应地更新配置文件my.cnf

以下链接提供帮助页面,帮助您在linux机器上设置mysaql不区分大小写:

可能您的数据库区分大小写,您应该相应地更新配置文件my.cnf

以下链接提供帮助页面,帮助您在linux机器上设置mysaql不区分大小写: 一般来说:

数据库和表名在Windows中不区分大小写,在大多数Unix中也不区分大小写。因此,qrtz_触发器和qrtz_触发器在您的情况下是不同的。

快速查看: 一般来说:

数据库和表名在Windows中不区分大小写,在大多数Unix中也不区分大小写。因此,qrtz_触发器和qrtz_触发器在您的情况下是不同的。

快速查看: