I am trying to connect to MySql server from my Python code. But I am not able to connect. It is showing me the below error.
InterfaceError: 2003: Can't connect to MySQL server on 'localhost:3306' (10061 No connection could be made because the target machine actively refused it)
How can I solve this error?