Prøv dette. Brug INFORMATION_SCHEMA.SCHEMATA
for at kontrollere eksistensen af database
If not exists (SELECT 1
FROM INFORMATION_SCHEMA.SCHEMATA
WHERE SCHEMA_NAME = 'demo-database')
CREATE DATABASE `demo-database`
.....