노력과 삽질 퇴적물

SQL: 마리아 디비(mariaDB) zip버전 윈도우 로컬서버 본문

프로그래밍note/서버 및 통신

SQL: 마리아 디비(mariaDB) zip버전 윈도우 로컬서버

MTG 2022. 10. 12. 23:56
목차
0.
 필요한 파일
1.
 환경설정
기타.
 참조자료






0. 필요한 파일

 

파일명
 예시경로
 mariadb-10.10.1-winx64 [#다운로드]  D:\dev_lib\mariadb-10.10.1-winx64
 HeidiSQL_12.1_64_Portable [#다운로드]  D:\dev_lib\HeidiSQL_12


SQL쪽 GUI툴로는 워크벤치가 가장 보편적이던거 같던데,
일부 자료형 입력일때 빼고는 잘 안 쓰는 편이라 HeidiSQL로 선정했습니다.
dbeaver는 아직 숙달되지 않아서 여기서는 논외.





1. 환경설정


1) 명령어로 설치

-> CMD는 관리자 권한으로 실행.
-> 만약 서비스를 삭제하고 싶으면, 지금 설정기준으로는(CMD) sc delete mongoDB
-> 기본 포트가 동일한 mySQL이 이미 설치되어 있는 경우, 포트번호를 다르게 하거나 삭제를 하는게 편합니다.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
C:\Windows>d:
D:\dev_lib\mariadb-10.10.1-winx64\bin>mysql_install_db --datadir="D:\dev_lib\mariadb-10.10.1-winx64\repo_database" --service=mariaDB --port=3306 --password=this_is_pw
Running bootstrap
Registering service 'mariaDB'
Creating my.ini file
2022-10-12 21:26:53 0 [Note] D:\dev_lib\mariadb-10.10.1-winx64\bin\mysqld.exe (server 10.10.1-MariaDB) starting as process 3168 ...
Removing default user
Setting root password
Creation of the database was successful
 
D:\dev_lib\mariadb-10.10.1-winx64\bin>mysql -u root -p
Enter password: ****
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 10.10.1-MariaDB mariadb.org binary distribution
 
Copyright (c) 20002018, Oracle, MariaDB Corporation Ab and others.
 
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
 
MariaDB [(none)]>
cs


2) 환경변수
-> 자세한건 개발용 환경변수 설정(Path 설정) 참조.





기타. 참조자료

1) 한국어
MariaDB Portable 설치&구성





기타. 변경이력

일자
 변경이력
 2022-10-12  초안 작성.