1. DB 연동 관련 Driver 추가

2. DB 연동 후 데이터 출력 test 파일 제작
This commit is contained in:
mcutegs2
2020-06-16 18:00:55 +09:00
parent a7dd2177cd
commit 866c1f9516
6 changed files with 28 additions and 32 deletions

View File

@@ -7,8 +7,9 @@ import java.sql.ResultSet;
import java.sql.SQLException;
public class BasicDao {
private String driver = "com.mysql.jdbc.Driver";
private String url = "jdbc:mysql://@110.35.119.108:3307:hospital_DB";
private String driver = "org.mariadb.jdbc.Driver";
//private String url = "jdbc:mysql://@110.35.119.108:3307:hospital_DB";
private String url="jdbc:mariadb://110.35.119.108:3307/hospital_DB";
private String user = "mes";
private String password = "Mestkdrhdghldmlth1!";
protected Connection conn;