Username Failures When Connecting SQLAlchemy to MySQL -


i'm attempting connect python web application local database via sqlalchemy.

i have configured following connection string:

sqlalchemy.url = mysql+mysqlconnector://root:root@localhost:3306/db_mother 

when use above, following error (after long stack trace):

sqlalchemy.exc.programmingerror: (programmingerror) 1045 (28000): access denied user 'root'@'localhost' (using password: no) none none

when change connection string this:

sqlalchemy.url = mysql+mysqlconnector://ripley:amanda@localhost:3306/db_mother 

i expected error, because user not configured password in db:

sqlalchemy.exc.programmingerror: (programmingerror) 1045 (28000): access denied user 'ripley'@'localhost' (using password: yes) none none 

so, in first case have valid db user , password (which can use connect via command line or sequelpro), , says i'm not using password. in second case seems understand there password. why not have understanding in first place?

i using python3, sqlalchemy, mysql-connector-python , pyramid. it's of note if strip password root user, works fine.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -