No suitable driver found for jdbc:mysql netbeans, *.jar include in library

12,700

Just simply add the library to your project library. Right click in Library on the Project you use

enter image description here

Then choose MySQL JDBC Driver

enter image description here

Then Click Add Library.So now we can connect to MySQL database

Resource :Java MySQL JDBC Tutorial using NetBeans (Part 1)

Share:
12,700
paulo.sobrinho
Author by

paulo.sobrinho

Updated on June 29, 2022

Comments

  • paulo.sobrinho
    paulo.sobrinho almost 2 years

    I can perform the connection in worbanch, but with the same username and password can not connect through the application in the mysql database. I checked the syntax apparently seems to be correct. I would like to help to solve this problem as the .jar is already in the library folder of Java SE project.

    print screen:

    Screen 1

    screen 2

    ERROR CONSOLE: No suitable driver found for jdbc:mysql://127.0.0.1/sakila

  • paulo.sobrinho
    paulo.sobrinho over 6 years
    Thank You So Much!