dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[BUG] Can't connect MySQL metadata databases

Open copperfield-dev opened this issue 6 years ago • 5 comments

java.sql.SQLException: Access denied for user 'dolphin'@'' (using password: YES)

I have GRANT ALL ON dolphinscheduler.* TO dolphin@'%' IDENTIFIED BY '';

but it cannot connect. If I change to user root, it can do it.

copperfield-dev avatar Jan 06 '20 09:01 copperfield-dev

If it cannot connect, please try to use mysql-cli.

liwenhe1993 avatar Jan 06 '20 09:01 liwenhe1993

But the code use jdbc to connect mysql

copperfield-dev avatar Jan 06 '20 12:01 copperfield-dev

Please verify that the username and password are correct by mysql-cli. Thanks.

liwenhe1993 avatar Jan 07 '20 03:01 liwenhe1993

I have fixed this problem. Because of my password of the database including a comma, then Spring boot read properties from application-dao.properties with wrong pass word. Maybe we should open the encryption function of Druid?

copperfield-dev avatar Jan 09 '20 02:01 copperfield-dev

+1. I use v2.0.5. It also appears this problem by using $.

paul-yangmy avatar Mar 30 '22 02:03 paul-yangmy