title: Configuring Django to use remote mysql server?
body: <p>I am trying configure a Django application to use mysql.</p>
  
  <p>I want to use the mysql server available in my network and don't want to install a local copy.</p>
  
  <p>But when I am trying to install mysqldb it needs mysql_config from Mysql!</p>
  
  <p>What should I do if I want to use the mysql server in another machine?</p>
  
  <pre><code>sh: mysql_config: command not found
  Traceback (most recent call last):
    File "setup.py", line 15, in &lt;module&gt;
      metadata, options = get_config()
    File "~/Dev/MySQL-python-1.2.3c1/setup_posix.py", line 43, in get_config
      libs = mysql_config("libs_r")
    File "~/Dev/MySQL-python-1.2.3c1/setup_posix.py", line 24, in mysql_config
      raise EnvironmentError("%s not found" % (mysql_config.path,))
  EnvironmentError: mysql_config not found
  </code></pre>
  
  <p>Tried downloading the MySQL files and pointed to "mysql_config" and built mysqldb.</p>
  
  <p>But when I tried to import mysqldb I get:</p>
  
  <pre><code>&gt;&gt;&gt; import MySQLdb
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "build/bdist.macosx-10.5-i386/egg/MySQLdb/__init__.py", line 19, in &lt;module&gt;
    File "build/bdist.macosx-10.5-i386/egg/_mysql.py", line 7, in &lt;module&gt;
    File "build/bdist.macosx-10.5-i386/egg/_mysql.py", line 6, in __bootstrap__
  ImportError: dlopen(/tmp/MySQL_python-1.2.3c1-py2.5-macosx-10.5-i386.egg-tmp/_mysql.so, 2): Library not loaded: /usr/local/mysql/lib/libmysqlclient_r.15.dylib
    Referenced from: /tmp/MySQL_python-1.2.3c1-py2.5-macosx-10.5-i386.egg-tmp/_mysql.so
    Reason: image not found
  </code></pre>
  
  <p>Any hint on what the error is?</p>
  
  <p>Thanks</p>