I’m not sure exactly how you’d check, but if you just want to create it if it doesn’t exist, then you can do
CREATE DATABASE IF NOT EXISTS DBname
I’m not sure exactly how you’d check, but if you just want to create it if it doesn’t exist, then you can do
CREATE DATABASE IF NOT EXISTS DBname