I have a spring boot application and I trying to initialize some data on application startup.
This is my application properties:
#Database connection
Try this code. Remove PRIMARY KEY(id) and execute it.
PRIMARY KEY(
)
CREATE TABLE IF NOT EXISTS `Person` ( `id` INTEGER PRIMARY KEY AUTO_INCREMENT, `first_name` VARCHAR(50) NOT NULL, `age` INTEGER NOT NULL );