This might be a simple one, but I couldn't figure it out. I couldn't connect to the database that I created 'clearview' in mysql through.
Please advise. Thanks!
NameError                                 Traceback (most recent call last)
 in 
      3 try:
----> 4     connection = mysql.connector.connect(host='localhost',
      5                                          database='clearview',
NameError: name 'mysql' is not defined
Have you installed the mysql-connector package? Try installing it first with pip install mysql-connector and then import the package import mysql.connector before running your script.
how to connect using python to mysql server