CoolInterview.com - World's Largest Collection of Interview Questions
 Interview Questions  
 Our Services  

Get 9,000 Interview Questions & Answers in an eBook.


  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!


    Send your Resume to 6000 Companies


  • INTERVIEW QUESTIONS DATABASE MYSQL DETAILS
    Question :
    How to connect mysql from jsp(Java Server Page)?

    Posted by: M.BhagyaLakshmi on 2/5/2008

    Contact M.BhagyaLakshmi  Contact M.BhagyaLakshmi
    Category MYSQL Interview Questions
    Rating (3.3) By 3 users
    Added on 2/5/2008
    Views 1126
    Rate it!
    Answers:

    <%
    String connectionURL = "jdbc:mysql://localhost:3306/database_name";
    Connection connection = null;
    Statement statement = null;

    Class.forName("com.mysql.jdbc.Driver").newInstance();
    connection = DriverManager.getConnection(connectionURL, "database_username", "database_password");
    statement = connection.createStatement();

    %>



     Posted by: swetha    

    Contact swetha  Contact swetha

    jsp connectivity
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");



     Posted by: siva    

    Contact siva  Contact siva


    If you have the better answer, then send it to us. We will display your answer after the approval.
    Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

       
    Related Questions
    View Answer
    How we can count duplicate entery in particular table against Primary Key ? What are constraints?

    View Answer
    What are the advantages of mysql comparing with oracle?

    View Answer
    How to display nth highest record in a table for example?How to display 4th highest (salary) record from customer table?

    View Answer

    Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

    Notify me when better answer is posted!
    Email:

    View ALL MYSQL Interview Questions

    User Options
    Sponsored Links


    Copyright ©2003-2009 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions
    Page URL: http://www.coolinterview.com/interview/12633/default.asp?cachecommand=bypass


    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | Joke of the Day

    0.45