Install mysql connector
# http://conda.pydata.org/docs/faq.html#id1
conda install -n <your python 3 env> mysql-connector-python
Access MySQL from python 3 with mysql connector and put result into pd df
# http://dev.mysql.com/doc/connector-python/en/connector-python-tutorial-cursorbuffered.htmlimport mysql.connector
# Connect with the MySQL Server
cnx = mysql.connector.connect(user='scott', database='employees')
# note that we'll have to set dictionary=True to get column name into pd and fetchall afterwards
cur = cnx.cursor(buffered=True, dictionary=True)
cur.execute('SELECT now() from dual')
pd.DataFrame(cur.fetchall())