In this video, I have shown how to connect your java program or application with the mysql database installed on your local system in ubuntu linux using terminal …
Original source
In this video, I have shown how to connect your java program or application with the mysql database installed on your local system in ubuntu linux using terminal …
Original source
10 responses to “Java JDBC Tutorial 1 : Connect Java Application with MySQL Database”
great thanks lot sir
firstApp.java:14: error: cannot find symbol
Resultset myResultset=myStatement.executeQuery("Select * from students");
^
symbol: class Resultset
location: class FirstApp
firstApp.java:20: error: cannot find symbol
System.out.println(e.getMesage());
^
symbol: method getMesage()
location: variable e of type Exception
2 errors
Please give me a solution ASAP
I have written the program in eclipse. How can run the program? I having trouble with connector jar file
Thank you sir.
java -cp E:javaexercicesApril20188firstApplicationmysql-connector-java-5.1.46-bin.jar is this command correct
But sir replace emacs by subline but error is come… Subline will work here or not ..?
sir …. at 6:09 min the progarm emacs not found …….
now sir …. what i have to do
my programe is compiled after compile there are one warnning is:"WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Access denied for user 'root'@'localhost'".plz tell me solution
Thanks for share your knowledge
is the same code applicable for windows 7….