보관함
MariaDB, DB생성
AI 윤 선생
2020. 2. 11. 16:06
반응형
1.DB생성
먼저 create database 치고, DB이름;
저는 abc라고 하겠습니다.
2.사용자계정생성
create user 'abc12'@'접속위치' identified by '비밀번호';
어떤 곳에서 접속하는지 접속위치와 비밀번호를 정해줍니다.
3.DB와 사용자계정을 연결해줍니다.
grant all privileges on abc.* to 'abc12'@'접속위치';
4.서버를 리로딩합니다.
flush privileges;
create DATABASE aboutw3;
create user 'aboutw3' identified BY '9909';
grant all privileges on aboutw3.* to 'aboutw3';
flush privileges;
반응형