Test MySQL JDBC Driver Installation : MySQL : Database SQL JDBC : Java examples (example source code) Organized by topic

Java
C++
PHP
Java Home »  Database SQL JDBC   » [  MySQL  ]  Screenshots 
 



Test MySQL JDBC Driver Installation

public class TestJDBCDriverInstallation_MySQL {

  public static void main(String[] args) {
    System.out.println("TestJDBCDriverInstallation_MySQL begin");
    try {
      String className = "org.gjt.mm.mysql.Driver";
      Class driverObject = Class.forName(className);
      System.out.println("driverObject=" + driverObject);
      System.out.println("your installation of JDBC Driver OK.");
    catch (Exception e) {
      // your installation of JDBC Driver Failed
      System.out.println("Failed: JDBC Driver Error: " + e.getMessage());
    }

    System.out.println("TestJDBCDriverInstallation_MySQL end");
  }

}

           
       
Related examples in the same category
1.  Use Oracle DataSource To Store MySql ConnectionHas Download File
2.  Create Database for MySQL
3.  Create table for mysql database
4.  Setup mysql datasource
5.  Access MySQL Database: open connection, create table, insert and retrieve
6.  Count rows in MySQL
7.  Demo ResultSet for MySQL
8.  Create Table With All Data Types In MySQL
9.  Insert text file into MySQL
10.  Read a Clob object from MySQL
11.  How to serialize/de-serialize a Java object to the MySQL database.
12.  Check JDBC Installation for MySQL
13.  Demo MySql Transaction
14.  Create database for MySql
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.