grant all privileges mysql to new user code example
Example: mysql grant all privileges to user from any host
GRANT ALL PRIVILEGES ON database_name. * TO 'username'@'localhost';
GRANT ALL PRIVILEGES ON database_name. * TO 'username'@'localhost';