I am trying to connect to my pythonanywhere Database from Visual studio but keep receiving this error. I tried importing "import mysql.connector" and then :::python
mydb = mysql.connector.connect(
host="JanusHasie.mysql.pythonanywhere-services.com",
user="JanusHasie",
password="Janaster0405",
database="JanusHasie$Project2DB"
)
But nothing seems to be working.