Conecting to MySQL

Axy axy at declassed.art
Tue Aug 9 11:27:16 EDT 2022


>> trying to connect to MYSQL it appears the error msg below:
>> InterfaceError: 2003: Can't connect to MySQL server on 'localhost:3306'
>> (111 Connection refused)
>> [image: conexao.png]
>> How can i fix that.?
> What do you use for connection?
> Does the firewall interfere with the connection?

Firewall usually causes connection to hang and timeout with no response.

But in this case connection looks immediately refused which means either 
port number is wrong or mysql is not listening on 127.0.0.1.


Axy



More information about the Python-list mailing list