Obsidian/Recognition/Programing/MariaDB/설치.md

42 lines
803 B
Markdown
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

#mariaDB
- 테이블 스페이스 생성
```
(설치된 MySQL Client 실행)
create database gmtwork DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
create user 'gmtwork'@localhost  identified by 'gmtwork';
grant all privileges on gmtwork.* to gmtwork@'localhost'; 
flush privileges;
```
- 사용자계정 삭제
```
drop user '사용자'@'localhost';
```
- (my.ini) utf8로 모두 변경하도록 한다
```Txt
C:\Program Files\MariaDB 10.2\data\my.ini 파일을 열어 아래 사항을 추가한다.
[client]
default-character-set=utf8
[mysql]
default-character-set=utf8
[mysqldump]
default-character-set=utf8
[mysqld]
init_connect="SET collation_connection = utf8_general_ci"
init-connect='SET NAMES utf8'
character-set-server=utf8
collation-server = utf8_general_ci
```