Maria DB (계정, DB 생성)

심야·2023년 7월 14일
0

웹 개발

목록 보기
32/46

DB 생성

create database pentest_study default character set utf8;

계정 생성

create user 'inmo'@'localhost' identified by 'inmog';

권한 부여

계정을 생성할 때 host 지정을 [localhost](http://localhost) 로 지정했기 때문에 권한도 localhost로 지정해야 한다.

GRANT ALL PRIVILEGES ON pentest_study.* TO 'inmo'@'localhost';

새로고침

FLUSH PRIVILEGES;

접속 및 DB 권한 확인

1. mysql -u inmo -p
2. show databases;
3. use pentest_study;
profile
하루하루 성실하게, 인생 전체는 되는대로.

0개의 댓글