com.mysql not found error

Joined
Oct 5, 2020
Messages
3
Reaction score
0
I have installed the driver required for connecting MySQL with java. At first it shown class not found exception.later it is showing com.sql package not found.sometimes it is also showing jdbc symbol not found. Can anyone please resolve my problem
 
Joined
Nov 27, 2019
Messages
163
Reaction score
28
Check the address that you are using to connect to the DB. Good chance the DB address is wrong.
 
Joined
Oct 5, 2020
Messages
3
Reaction score
0
Now I am getting class not found exception after a lot of struggle also I have not solved. Help me if u know. No problem with address
 
Joined
Oct 5, 2020
Messages
3
Reaction score
0
Thanks a lot for your response. But I am facing problem with MySQL jar file. After getting jar file, I just wrote one line Class.forName("com.mysql.jdbc.Driver");
It is getting class not found exception. I have deleted and download jar file for several times and also checked class path also. Help me if you know.
 
Joined
Dec 10, 2020
Messages
10
Reaction score
1
Hello,
You need to do the below process.
1. Download the JAR file and add it with your IDE.
2. Check your code, syntax is Class.forName("com.mysql.jdbc.Driver"); .
3. Server must be ON.
4. Database should be connected with the IDE.
If you did not get a result then watch videos on how to connect the database.
Thanks
Devid
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top