Hello. It's me again!
I launched MySQL database on my website but now i have problem. I would like to connect to it via sql-alchemy on my computer (virtualenv) using my simple project. Some ideas?
Code:
from sqlalchemy import create_engine
import MySQLdb
engine = create_engine('mysql+mysqlconnector://myUsername:myPassword@librarysystem.mysql.pythonanywhere- services.com/databaseName')
connection = engine.connect()
Error:
File "/home/username/Desktop/myProject/flask/local/lib/python2.7/site-packages/sqlalchemy/dialects/mysql/mysqlconnector.py", line 107, in dbapi
from mysql import connector
ImportError: No module named mysql
I was searching but nothing helped. Have a nice day!