Crear base de datos si no existe
CREATE DATABASE IF NOT EXISTS my_db;
SAMER SAEID
CREATE DATABASE IF NOT EXISTS my_db;
SELECT DISTINCT store_type FROM stores
WHERE NOT EXISTS (SELECT * FROM cities_stores
WHERE cities_stores.store_type = stores.store_type);
write create database "the database name you want" then semi colon. Then the new database can be created.
Example: create database sushine;
you write the name of databse you want instead of sunshine
to use database write as i said bellow
use database sunshine;