mysql create user for database with remote access and privilages code example
Example: how to add privilege in mysql user
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';