I try to connect to mysql database using mysql.connector.connect(), I checked if all arguments passed to function are ok and they are. I want the output of this code to confirm the connection made to database. I run this in PyCharm and nothing happens, just waiting for something... MySQL
Workbench is all set up, I mean the connection is tested and it works well.
import mysql.connector
db = mysql.connector.connect(host="localhost", user="root", password="Asdf124#")
if (db):
print("connected")
else:
print("fail")