mysql 새 db 만들고 새 사용자에게 해당 db 권한 다 주기

외울려고 보관.

create database newdbname character set utf8mb4;
create user 'new_user_name'@'localhost' identified by 'new_user_password';
grant all privileges on newdbname.* to 'new_user_name'@'localhost';
flush privileges;

👇 카테고리 글 목록

대표글

댓글 남기기