mysql 8 유저권한 주기

mysql 8에서는 테이블에 유저 권한을 주는 방식이 달라 졌습니다.

5버전에서는 grant 를 사용하면 유저를 생성하면서 동시에 권한까지 줄 수 있었습니다.

mysql> grant all privileges on [db명].* to [id]@'%' identified by '비밀번호' with grant option
mysql> flush privileges ;

mysql 5 버전

8부터는 생성따로, 권한부여 따로 해줘야 가능합니다.

mysql> create user [id]@'%' identified by '비밀번호'
mysql> grant all privileges on [db명].* to [id]@'%' with grant option;
mysql> flush privileges;

mysql 8 버전

Subscribe to X세대 신입사원

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe
774-86-01972 cinnabar.3d@gmail.com