question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MySQLDatabase return "using password: NO" when password is provided

See original GitHub issue

Version: 3.5.0

I’m trying to validate my connection via MySQLDatabase on a fresh MySQL server (added a user with permission to specified database) but it’s not accepting a password:

>>> db = MySQLDatabase('database', user='username', password='***')
>>> db.get_tables()
(1045, "Access denied for user 'username'@'localhost' (using password: NO)")

I checked db.__dict__['connect_params']['password'] and it exist there.This differs from another MySQL server which uses peewee@3.2.2, succeeds to connect.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
bmwantcommented, Feb 17, 2019

I had exact the same issue with

>>> pymysql.__version__
'0.8.0'

and simple upgrade pip install pymysql --upgrade to 0.9.3 version resolved it.

0reactions
deepthi2514commented, Nov 14, 2019

yes

On Thu, Nov 14, 2019 at 8:05 PM Charles Leifer notifications@github.com wrote:

Are you able to connect to the mysql database using the mysql shell?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/coleifer/peewee/issues/1626?email_source=notifications&email_token=ANXMUXMFB3FM23KWFNL5XDLQTVOZHA5CNFSM4FDYM3YKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEECBA2I#issuecomment-553914473, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANXMUXKPO5X3MSXFVQVTSETQTVOZHANCNFSM4FDYM3YA .

Read more comments on GitHub >

github_iconTop Results From Across the Web

4.14 Troubleshooting Problems Connecting to MySQL
For example, if you get an error message that contains using password: NO , it means that you tried to log in without...
Read more >
SQL Server link to MySQL reports "using password: no"
The password is most definitely set, and works just fine in MySQL Workbench. It's an admin on MySQL. Both machines are local. I...
Read more >
mysql is prompting for password even though my password is ...
it prompts for password and without providing any input I just hit enter and it works. Now I need to perform some operation...
Read more >
General Security Issues and the MySQL Access Privilege ...
Do not keep any plain-text passwords in your database. When your computer becomes compromised, the intruder can take the full list of passwords...
Read more >
How to set, change, and recover your MySQL root password
Chances are you have MySQL running somewhere in your data center. If that's the case, there might be a time when you need...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found