CREATE DATABASE db_name; CREATE USER 'db_usr'@'%' IDENTIFIED BY 'db_pwd'; GRANT ALL PRIVILEGES ON db_name.* TO 'db_usr'@'%'; FLUSH PRIVILEGES;