title: Has anyone installed MySQLdb for Python on Cygwin?
body: <p>I'm trying to install MySQLdb for python on Cygwin. Unfortunately, when I run <code>python setup.py build</code>, I get the following error:</p>
  
  <pre><code>$ python setup.py build
  /bin/sh: /usr/local/bin/mysql_config: No such file or directory
  Traceback (most recent call last):
    File "setup.py", line 16, in &lt;module&gt;
      metadata, options = get_config()
    File "/home/Ben/python/MySQL-python-1.2.2/setup_posix.py", line 43, in get_config
      libs = mysql_config("libs_r")
    File "/home/Ben/python/MySQL-python-1.2.2/setup_posix.py", line 24, in mysql_config
      raise EnvironmentError, "%s not found" % mysql_config.path
  EnvironmentError: /usr/local/bin/mysql_config not found
  </code></pre>
  
  <p>Clearly I don't have <code>mysql_config</code> installed, which I guess is the problem. This is mentioned in the README for MySQLdb, but it doesn't explain how to either get around it or how to install mysql_config.</p>
  
  <p>So maybe this is as easy as: How can I install <code>mysql_config</code> for Cygwin?</p>
  
  <p>Or maybe it's harder than that.</p>
  
  <p>FYI: I have python 2.5.2 and MySQL 5.1.30, running under Cygwin.</p>