docker exec -it 컨테이너명 /bin/bash
mysql -u root -p
use mysql;
select user, host from user;
create user '[name]'@'localhost' identified by '[password]';

mysql 8.x부터는 grant all로 사용자 생성 및 권한 동시 부여 불가능

create user '[name]'@'%' identified by '[password]';
grant super on *.* to 'yihn'@'%';
grant all privileges on *.* to 'yihn'@'%';
show grants for '[name]'@'%';
drop user '[name]'@'localhost';