title: How to fix InterfaceError: 2003: Can't connect to MySQL server on '127.0.0.1:3306:3306' (11001 getaddrinfo failed)
body: <p>my MySQL connection is successful but ran into this interface errror</p>
  
  <pre class="lang-py prettyprint-override"><code>import mysql.connector
  
  db=mysql.connector.connect(
      host="127.0.0.1:3306",
      user="root",
      passwd="teja",
      database="test"
  )
  </code></pre>
  
  <pre><code>InterfaceError: 2003: Can't connect to MySQL server on '127.0.0.1:3306:3306' (11001 getaddrinfo failed)
  </code></pre>