import java.sql.*;
import java.io.*;
public class WriteDB {
public static void main(String[] args) {
Connection conn=null;
String driver="com.mysql.jdbc.Driver";//驱动
String url="jdbc:mysql://127.0.0.1/test?useUnicode=true;characterEncoding=8859_1";// 数据库联接
try{
Class.forName(driver).newInstance();
conn=DriverManager.getConnection(url,"root","");
File file=new File(args[0]);
FileI...[ 查看全文 ]