|
|
|
@ -15,11 +15,11 @@ public class DatabaseHelper {
|
|
|
|
|
|
|
|
|
|
public static Connection getConnection(){
|
|
|
|
|
String username = "root";
|
|
|
|
|
String password ="";
|
|
|
|
|
String password ="SJ1126388959";
|
|
|
|
|
if(conn==null){
|
|
|
|
|
try {
|
|
|
|
|
Class.forName("com.mysql.jdbc.Driver");
|
|
|
|
|
String url = "jdbc:mysql://172.18.22.77:3306/dogson?useSSL=true&characterEncoding=utf-8";
|
|
|
|
|
String url = "jdbc:mysql://139.180.223.93:3306/dogson?useSSL=true&characterEncoding=utf-8";
|
|
|
|
|
conn = DriverManager.getConnection(url,username,password);
|
|
|
|
|
return conn;
|
|
|
|
|
}catch(Exception e){
|
|
|
|
|