34 thoughts on “16.2 Java Database Connectivity Practical

  • October 29, 2018 at 21:41
    Permalink

    i am getting this error : Cannot establish a connection to jdbc:mysql://localhost:3306/bank using com.mysql.jdbc.Driver (CLIENT_PLUGIN_AUTH is required) on netbeans. what to do?

  • October 29, 2018 at 21:41
    Permalink

    When i am trying to execute in my eclipse .It is showing Could not create connection to database server.Anyone p
    lease help me to solve this

  • October 29, 2018 at 21:41
    Permalink

    Thanks for this video. Something is changed now.
    In the url variable, after the database name, i had to add this code "?autoReconnect=true&useSSL=false".
    For example, in my case is:
    String url = "jdbc:mysql://localhost:3306/serra_databaseprova?autoReconnect=true&useSSL=false";

    I you don't do this, ssl error will occur.

    After this, in the Class.ForName i had to modify a little:
    Class.forName("com.mysql.cj.jdbc.Driver").

    I my case, for study database purpose, I don't need ssl security enable, so "?autoReconnect=true&useSSL=false" will disable SSL and also suppress the SSL errors (thanks to stackoverflow).
    Thanks Telusko for the video

  • October 29, 2018 at 21:41
    Permalink

    Sir please tell me the supported driver for oracle10g express edition ….and the code which I should have to write class.forname() code….Pls…….Pls…….sir

  • October 29, 2018 at 21:41
    Permalink

    Thanks you Telusko sir , your way of teaching is very understandable , thank you again for sharing your knowledge to millions of people , God Bless you , keep doing it .

  • October 29, 2018 at 21:41
    Permalink

    Navin in this video 16.2 u used a statement that is con.creatstatement() please explain because conection object con is created in the same class then why i need to use the object in the same class

  • October 29, 2018 at 21:41
    Permalink

    I write exactly the same code and also made one table in Mysql Workbench but I am getting an error :
    Exception in thread "main" com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create a connection to the database server.
    Caused by: java.lang.NullPointerException
    please help me.
    and my password is correct.

  • October 29, 2018 at 21:41
    Permalink

    I did the exact same s u did……but I get" Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary. " errorwhat would probably the issue be here…. !! thank you   …

  • October 29, 2018 at 21:41
    Permalink

    how do you get the hyperlink help on key words to pop up those help libraries? do I have to install some help file libraries? if so which ones?

  • October 29, 2018 at 21:41
    Permalink

    I really liked this video. Very helpful. Had to use the line below for my url

    "jdbc:mysql://localhost:3306/db_assignment_two?autoReconnect=true&useSSL=false"

  • October 29, 2018 at 21:41
    Permalink

    Sir, how to use scrap book in java instead going for workbench and what should be given in URL if scarp book is used

  • October 29, 2018 at 21:41
    Permalink

    Sir i Followed from A-Z but i am facing this Error: Exception in thread "main" java.sql.SQLException: Unknown initial character set index '255' received from server. Initial client character set can be forced via the 'characterEncoding' property.

  • October 29, 2018 at 21:41
    Permalink

    my oracle is installed in to two drives c and g .
    in c disk oracle folder is there. and in G disk app folder is installed .
    in that G disk where app folder is installed in that i have jar file.but in app folder G:appPrashanthproduct11.2.0dbhome_1jdbclib…here i have total 9 jar files with the name of ojdbc5,5g,5dms,6,6g,6dms,simplefan. these are the jar files in my folder . but i added the ojdbc 6 only but i still getting error.
    ……… so please resolve this issuse..
    and at the same time in my encliipse its not showing add external jar file… when am click the librarie folder .it shows module path AND class path … when i am click module path it will show the add external jar file…. sooo please

Leave a Reply