![]() " /usr/rohitsharmahome/lib/jvm/default-java/jre/lib/ext " On the following location.i m giving the location where i put it It will gonna work fine after this.create stattement object and Secondly when you will deploy your connectivity code into anĪpplication, then u will have to save the connectorĭeployed application will seek connector on this location. Our editors will seek connector on the above locationīut for deployed application read below. Simply paste the " mysql-connector-java-3.0.17-ga-bin.jar "įile over the above location relative to your machine.Īfter this execute the code it will gonna work fine. ![]() (You can get this file easily downloadable on Internet, Search by ![]() Here is the solution for this for windows If you will simply install the mysql and run the above code Mysql is installed by default on port 3306 This code on execution will create a database named payroll1. Stmt.executeUpdate("CREATE DATABASE payroll1") String url ="jdbc:mysql://localhost:3306/mysql" Ĭonnection con = DriverManager.getConnection(url,"root", "") I m done with its solution and writing the steps i followed. While connecting Java application to the mysql.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |