Spring boot 石英调度器sql脚本的液化错误
我正在做一个Spring启动项目,在那里我必须配置quartz调度程序。 所需的quartz调度程序表是在tables_mysql.sql文件中构建的,下面是我发现问题的第一行:Spring boot 石英调度器sql脚本的液化错误,spring-boot,quartz-scheduler,liquibase,Spring Boot,Quartz Scheduler,Liquibase,我正在做一个Spring启动项目,在那里我必须配置quartz调度程序。 所需的quartz调度程序表是在tables_mysql.sql文件中构建的,下面是我发现问题的第一行: DROP TABLE IF EXISTS QRTZ_FIRED_TRIGGERS; DROP TABLE IF EXISTS QRTZ_PAUSED_TRIGGER_GRPS; DROP TABLE IF EXISTS QRTZ_SCHEDULER_STATE; DROP TABLE IF EXISTS QRTZ_LO
DROP TABLE IF EXISTS QRTZ_FIRED_TRIGGERS;
DROP TABLE IF EXISTS QRTZ_PAUSED_TRIGGER_GRPS;
DROP TABLE IF EXISTS QRTZ_SCHEDULER_STATE;
DROP TABLE IF EXISTS QRTZ_LOCKS;
DROP TABLE IF EXISTS QRTZ_SIMPLE_TRIGGERS;
DROP TABLE IF EXISTS QRTZ_SIMPROP_TRIGGERS;
DROP TABLE IF EXISTS QRTZ_CRON_TRIGGERS;
DROP TABLE IF EXISTS QRTZ_BLOB_TRIGGERS;
DROP TABLE IF EXISTS QRTZ_TRIGGERS;
DROP TABLE IF EXISTS QRTZ_JOB_DETAILS;
liquibase YAML文件如下所示:
运行应用程序时,将显示以下错误:
08:31:15.153 [localhost-startStop-1] ERROR liquibase - classpath:/db/changelog/db.changelog-master.yaml: classpath:/db/changelog/db.changelog-master.yaml::4::marouane: Change Set classpath:/db/changelog/db.changelog-master.yaml::4::marouane failed. Error: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DROP TABLE IF EXISTS QRTZ_PAUSED_TRIGGER_GRPS;
DROP TABLE IF EXISTS QRTZ_SCHEDUL' at line 2
liquibase.exception.DatabaseException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DROP TABLE IF EXISTS QRTZ_PAUSED_TRIGGER_GRPS;
DROP TABLE IF EXISTS QRTZ_SCHEDUL' at line 2
at liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:316)
at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)
at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:122)
请帮助我解决此问题,谢谢尝试在sql文件中的表名中添加反勾号。反勾号不起作用。我认为\n nGO不是mysql的正确结束分隔符。我想你想要;作为分隔符。谢谢你@SteveDonie你救了我一天