first i did
pip install mysql-connector-python
and then I made a file names "my.py" containing the following code
import mysql.connector
mydb = mysql.connector.connect(
host="localhost",
user="abc",
password="1234"
)
print(mydb)
and im getting the following error ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it
I have already closed firewalls, I have tried on 127.0.0.1, my LAN is not on proxy settings, and im not able to run connect on either port 3306 or 33060 or 22.
Here's everything from MYSql Installer - Community that I have installed
I think there are 2 possible options: