DOWNLOADS 메뉴 클릭 ->
MySQL Community (GPL) Downloads 클릭 ->
MySQL Installer for Windows 클릭 ->
최신버전 확인 후
Go to Download Page > 클릭
Windows (x86, 32-bit), MSI Installer (용량 큰거) - 다운로드 클릭
Login 버튼 , Sign up 버튼 클릭 하지 말고 아래..
No thanks, just start my download. << 클릭 다운로드
오류메세지 - 다운 받은 파일 설치
*) 추가설치 : https://www.microsoft.com/en-us/download/details.aspx?id=42642
설치과정)


출처: https://dancepkt.cafe24.com/
https://mvnrepository.com/artifact/com.mysql/mysql-connector-j/8.0.32
을통해 jar다운 해서 java와연동
mysql검색 Connector/J 간다.다운받은후 WEB_INF - lib 폴더에 넣어둔다.
jsp파일 하나를 생성해서 db접속할수있도록 구문입력
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%
//디비 접속
Class.forName("com.mysql.jdbc.Driver");
String url="jdbc:mysql://localhost:3306/ppjj"; //데이터베이스명 변경필수!!!!!!!!!
String user="root";
String password="1111";
%>
'Database > MySQL' 카테고리의 다른 글
Tomcat Always 실행시 아무것도 안묻는는거 되돌릴때 (0) | 2023.04.27 |
---|---|
JOIN,UNION (0) | 2023.04.26 |
prestatement방식 , statement방식 차이. (0) | 2023.03.15 |
MySQL 명령문~ (0) | 2023.01.21 |
댓글