Create mysql database, user and grant permission

I just can’t remember these commands

mysql> create database mydb;

mysql> create user newuser@'192.168.1.2' identified by '-Pas$w0rd-';
mysql> grant all privileges on mydb.* to newuser@'192.168.1.2';
mysql> flush privileges