기존 사용자 권한 설정
grant all privileges on dbname.table to 'user' identified by 'password';
Starting with MySQL 8 you no longer can (implicitly) create a user using the GRANT command. Use CREATE USER instead, followed by the GRANT statement:
-> MySQL 8부터 CREATE USER 명시선언 해줘야한다.
create user 'user' identified by 'password';
grant all privileges on *.* 'user';
'DB > MySQL' 카테고리의 다른 글
MySQL 기본 명령어 (0) | 2021.05.20 |
---|