how to add privilege in mysql user
snippet in sql

mysql grant all privileges to user from any host

user2537

GRANT ALL PRIVILEGES ON database_name. * TO 'username'@'localhost';

how to add privilege in mysql user

user3074

CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';