Add database user in MariaDB

When restoring a single MariaDB/MySQL database from a mysqldump, the user is not recreated. The following command can be used to recreate the user.

    GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON database.* TO 'username'@'localhost' IDENTIFIED BY 'password';
    FLUSH PRIVILEGES;