arvindparaliya commented on issue #4161:
URL: 
https://github.com/apache/dolphinscheduler/issues/4161#issuecomment-2818168937

   Hi, I need some help with a MySQL JDBC connection issue that I've been 
struggling with for the past 3 months. I’ve tried almost everything.
   
   **org.springframework.jdbc.cannotgetjdbcconnectionexception: failed to 
obtain jdbc connection after some time**
   
   MySQL version: 8.0.42
   Driver: I tried both mysql-connector-java-8.4.0 and 5.1.48
   Java: Using Corretto 21
   OS: Windows 11
   IDE: IntelliJ and Eclipse (same issue)
   MySQL service is running
   Credentials are correct (I can log in with the same root user and password 
using MySQL CLI and Workbench)
   
   Still, in Java, it throws:
   org.springframework.jdbc.cannotgetjdbcconnectionexception: failed to obtain 
jdbc connection after some time.
   java.sql.SQLException: Access denied for user 'root'@'localhost' (using 
password: YES)
   Things I’ve tried:
   ✔ Verified user privileges
   ✔ Reinstalled MySQL multiple times
   ✔ Tried different drivers
   ✔ Disabled sleep/hibernate
   ✔ Rechecked JDBC URL with useSSL=false&allowPublicKeyRetrieval=true
   ✔ Even tested with plain JDBC code — same result
   ✔ Restarted laptop and MySQL many times
   
   I’m really stuck and losing a lot of time due to this. If you’ve experienced 
this or can guide me, it would mean a lot 🙏


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to