Skip to content
Advertisement

unknown database in jdbc

I am using JDBC and new to it. but I keep getting this runtime exception:

JavaScript

Here is the gave code

JavaScript

how do I get this code to work? I am only a beginner with JDBC….

for the above code; PASS = “passowrd”, USER = “root”

I had a problem with port which it was fixed through this site

thanks a lot

Advertisement

Answer

please check in mysql database whether the database name ‘kholofedb‘ is existed or not

i think you haven’t created

please check it once if no create it and its related tables also

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement