title: MySQL Connect, XAMPP and ODBC
body: <p>Note:**I am connecting using Python2.7 in a virtualenv to access MySQL on XAMPP, which was not installed on the virtualenv.</p>
  
  <p>I am trying to connect with MySQL via python. I recently downloaded MySQL connect from Oracle. I also downloaded the ODBC driver from the same site. When I plug in the information below, I get a 2003 error telling me that it cannot connect:</p>
  
  <blockquote>
    <p>mysql.connector.errors.InterfaceError: 2003: Can't connect to MySQL server on '127.0.0.1'</p>
  </blockquote>
  
  <p>but when I include the port number in my connection, it freezes up and nothing happens. </p>
  
  <p>This is my code:</p>
  
  <pre><code>&gt;&gt;&gt;import mysql.connector
  &gt;&gt;&gt;cnx = mysql.connector.connect(user='[my username]',password='[my password]',host='127.0.0.1', database='FXPrices',port=80)
  </code></pre>
  
  <p>After that, the cursor indents--so there are no arrows for the python prompt. I have to hit control-z every time I want it to stop. Do I need mod_wsgi to fix this?</p>