title: WinError 10061 No connection could be made because the target machine actively refused it
body: <pre><code>import mysql.connector
  
  mydb = mysql.connector.connect(host="localhost", user="myusername", passwd="mypassword")
  
  print(mydb)
  </code></pre>
  
  <blockquote>
    <p>[WinError 10061] No connection could be made because the target machine actively refused it</p>
    
    <p>mysql.connector.errors.InterfaceError: 2003: Can't connect to MySQL server on 'localhost:3306' (10061 No connection could be made because the target machine actively refused it)</p>
  </blockquote>