본문 바로가기

Database

(20)
java sql 설정 ============================================= ## project에 MySQL JDBC 등록하기 mvnrepository.com 접속 검색창에 mysql-connector 검색 MySQL Connector/J 선택 내컴퓨터에 설치된 version 선택 Files 탭의 jar파일 다운로드 ============================================= ## MySQL 설치 시 connector/J 설치 완료 시 C:\Program Files (x86)\MySQL\Connector J 8.0 경로로 이동하여 mysql-connector-java-version.jar 확인 ---------------------------------------------- ..
06.08 JDBC 드라이버 로딩 및 DBMS 접속(eclipse에서 db연계) vJDBC(Java DataBase Connectivity) §자바/JSP 프로그램 내에서 데이터베이스와 관련된 작업을 처리할 수 있도록 도와주는 자바 표준 인터페이스 v2.3 Connection 객체 생성하기 §JDBC 드라이버에서 데이터베이스와 연결된 커넥션을 가져오기 위해 DriverManager 클래스의 getConnection( ) 메소드를 사용 §DriverManager 클래스로 Connection 객체를 생성할 때 JDBC 드라이버를 검색하고, 검색된 드라이버를 이용하여 Connection 객체를 생성한 후 이를 반환 String driver = "com.mysql.cj.jdbc.Driver"; String url = "jdbc:mysql://localhost:3306/연결할db이름"; pr..
06.07 example data Import sql있는 주소창에서 'cmd'입력 후 C:\Users\admin\Downloads\test_db-master\test_db-master>mysql -u root -p Enter password: ***** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 26 Server version: 8.0.33 MySQL Community Server - GPL Copyright (c) 2000, 2023, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other na..
06.05 mysql시작 https://dev.mysql.com/downloads/file/?id=518835 MySQL :: Begin Your Download The world's most popular open source database Contact MySQL | Login | Register dev.mysql.com No thanks, just start my download. 클릭 custom - MYsql, connertor J. workbench, Samples and Examples 8.0 선택 환경변수 path 등록하기. -- ctrl + mouse 휠로 글자크기 조정 -- database 목록확인 -- 실행 단축키 - ctrl + enter show databases; -- 사용할 데이터베이스 or sche..