(TECHNIKA RZESZOWSKA
import java.sql.*; import javax.swing.*;
public class JDBCMySQLJApplet extends JApplet {
String url = ”jdbc:mysql://localhost/myDatabaseName";
String password = "password";
StringBuffer results; public void i.nit() {
try {
Class.forName("com.mysql.jdbc.Driver");
} catch (java.lang.ClassNotFoundException e) (
System.err.println("ClassNotFoundException: " ♦
e.getMessage());
try {
Connection connection =
DriverManager.getConneotion(url, user, password);
2012 Jtn PHOKC?
Wykład 15