title: Operational Error(2003, "Can't connect to MySQL server on '127.3.138.130' (111)")
body: <p>I am trying to connect MySQL by using ip which I got from PhpMyAdmin using python. But I face <strong>Operational Error(2003, "Can't connect to MySQL server on '127.3.138.130' (111)")</strong> </p>
  
  <p>I know how to use mysql to connect to localhost</p>
  
  <p><em>I am following <a href="https://scriptingmysql.wordpress.com/2011/07/20/connecting-to-mysql-with-python-2/" rel="nofollow">this tutorial</a></em> </p>
  
  <p>I have written following lines of code in python
  I am using ubuntu terminal to run python code and I do have mysql-server installed on my laptop.</p>
  
  <pre><code>import MySQLdb
  db = MySQLdb.connect('127.3.138.130','my_username','my_password','my_db_name')
  </code></pre>
  
  <p>So what the problem is ? how to solve this problem ,please explain me in very simple manner. Thanks!</p>