from sqlalchemy import create_engine
engine = create_engine(
    'mysql+mysqlconnector://[user]:[pass]@[host]:[port]/[schema]', echo=False)
Writing to MySQL database with pandas using SQLAlchemy, to_sql