Not able to configure adojob store Error: There is no metadata information for provider 'MySql-51', Could not Initialize DataSource: myDS

Not able to configure adojob store Error: There is no metadata information for provider 'MySql-51', Could not Initialize DataSource: myDS

我有 .net 4.5.2 应用程序和 quartz.net 3.0.4。我正在尝试使用带有 mysql 的 adojobstore 作为数据库 我的配置是

<add key="quartz.scheduler.instanceName" value="DBScheduler" />
<add key="quartz.threadPool.type" value="Quartz.Simpl.SimpleThreadPool, Quartz" />
<add key="quartz.threadPool.threadCount" value="100" />
<add key="quartz.threadPool.threadPriority" value="2" />
<add key="quartz.scheduler.dbFailureRetryInterval" value="6000000000" />
<add key="quartz.jobStore.driverDelegateType" value="Quartz.Impl.AdoJobStore.SqlServerDelegate, Quartz" />
<add key="quartz.jobStore.tablePrefix" value="QRTZ_" />
<add key="quartz.jobStore.misfireThreshold" value="600000" />
<add key="quartz.jobStore.type" value="Quartz.Impl.AdoJobStore.JobStoreTX, Quartz" />
<add key="quartz.jobStore.dataSource" value="myDS" />
<add key="quartz.dataSource.myDS.connectionString" value="Server=localhost;Port=3306;database=quartznet;Uid=root;pwd=root;allow user variables=true;CharSet=utf8;" />
<add key="quartz.dataSource.myDS.provider" value="MySql-51" />

我总是出错 无法初始化数据源:myDS 内部异常:没有提供者的元数据信息 'MySql-51' 参数名称:providerName

请帮我找出问题所在

我什至试过了<add key="quartz.dataSource.myDS.provider" value="MySql" />

正如 GitHub issue 中所讨论的(请在提问时表明您是 cross-posting),文档不是最新的。

Documentation 已更新为没有提供程序的版本后缀。所以你应该用 "MySql".

替换 "Mysql-51"