[Mysql] 사용자 생성, 권한 부여, DB 생성 등


사용자 생성

create user '사용자'@'localhost' identified by '비밀번호';

DB 생성

create database [DB명]

사용자 DB 권한 부여

grant all privileges on [DB이름].[테이블] to '사용자'@'호스트';

ex : grant all privileges on sample.* to 'user1'@'localhost';

새로고침

flush privileges;

답글 남기기

이메일 주소는 공개되지 않습니다.