create database db_name charset utf8mb4;
create user db_user@localhost identified by 'db_password';
grant all privileges on db_name.* to db_user@localhost;
flush privileges;Be careful with localhost, when you are creating in a RDS instance and you don't wan't to set an specific client IP you should use the next statement
create database db_name charset utf8mb4;
create user 'db_user'@'%' identified by 'db_password';
grant all privileges on db_name.* to 'db_user'@'%';
flush privileges;