Spring Boot Database initialization MySQLException for Trigger
问题 I am using Spring Boot Database initialization using Spring JDBC with schema.sql file.I am using MYSQL If I have simple table creation in schema.sql as follows it works fine CREATE TABLE Persons ( PersonID int, LastName varchar(255), FirstName varchar(255), Address varchar(255), City varchar(255) ); But when I add one trigger as follows which runs correctly in MySQL Workbench DROP TRIGGER IF EXISTS Persons_log_update; CREATE TRIGGER Persons_log_update BEFORE UPDATE ON Persons FOR EACH ROW