How do I check if a database exists in Python? code example Example: python mysql check if database exists CREATE DATABASE IF NOT EXISTS DBName;