Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver error #7

Open
Tanviiiiii opened this issue Mar 5, 2022 · 6 comments
Open

Comments

@Tanviiiiii
Copy link

image

i am getting this error on every page. i have created the database tables already.
as this error is coming bcz the MySQL jar file was not there but we have not created the pom.xml file so can u tell me how to resolve this error

@SaadAhmed1122
Copy link

Which database are you using?

@Tanviiiiii
Copy link
Author

mySQL

@SaadAhmed1122
Copy link

have you change the connection url according to you database?

@Tanviiiiii
Copy link
Author

yes, i have made the changes but still the same error is coming

@SaadAhmed1122
Copy link

SaadAhmed1122 commented Apr 15, 2022 via email

@MananG-dev
Copy link

This is because you are using deprecated class of MySQL driver. So instead of using "com.mysql.jdbc.Driver", use this "com.mysql.cj.jdbc.Driver". Hope, it will resolve your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants