how to check if database is created are not in php code example Example: python mysql check if database exists CREATE DATABASE IF NOT EXISTS DBName;