title: python:mysql_config not found when connecting to Mysql DB
body: <p>Im trying to connect mysql through python and have the following packages installed.</p>
  <blockquote>
  <p>apt-get install python-pip</p>
  <p>pip install flask</p>
  <p>apt-get install python-mysqldb</p>
  <p>pip install flask-restful</p>
  </blockquote>
  <p>After searching few of the posts, tried installing the below too: (which doesnt seem to work or is not installing)</p>
  <blockquote>
  <p>apt install libmysqlclient-devel</p>
  <p>easy_install mysql-python</p>
  <p>pip install MySQL-python</p>
  </blockquote>
  <p><strong>My python version :</strong>  Python 2.7.12</p>
  <p>In my script im using:</p>
  <pre><code>import MySQLdb
  </code></pre>
  <p>And in my command if i try:</p>
  <blockquote>
  <p>python nameserver.py</p>
  </blockquote>
  <p>I get the error as:</p>
  <pre><code>import MySQLdb
  ImportError: No module named MySQLdb
  </code></pre>