1.Android 连接MySQL数据库
public class DBOpenHelper {
private static String driver = com.mysql.jdbc.Driver;//MySQL 驱动
private static String url = jdbc:mysql://IP:3306/数据库;//MYSQL数据库连接Url
private static String user = root;//用户名
private static String password = root;//密码
/**
* 连接数据库
1