A connectivity package such as mysql.connector must be imported before writing database connectivity Python code.