java.sql.SQLException::No suitable driver
이전:
val conn= DriverManager.getConnection("jdbc:mysql://ip주소/데이터베이스이름","sql 권한 받은 아이디","sql 비밀번호")
해결
Class.forName("com.mysql.jdbc.Driver")
val conn= DriverManager.getConnection("jdbc:mysql://ip주소/데이터베이스이름","sql 권한 받은 아이디","sql 비밀번호")
참고링크:
java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/database
I've been trying to set up my own rest api for a school project. I decided to use MySQL as a database and i want to connect it with my webservice, but apparently i always get this error message: j...
stackoverflow.com
'디버깅' 카테고리의 다른 글
sql ip 권한부여 (0) | 2021.01.10 |
---|---|
☃Requested internal only, but not enough space'' (0) | 2020.12.26 |
JDBC 이용한 MySQL , Android Studio 연결 error (0) | 2020.12.24 |
c# 외부 파일(프로세스) 불러와서 실행하기 (0) | 2020.12.07 |
마우스 Win api 좌표 넘겨 받을때 좌표값의 오류 (0) | 2019.09.18 |