To create a user and grant all permission to him:
- Log in as root
mysql -u root - Create the user and sets the password
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password'; - Grant permission, I’ll be granting all permission
GRANT ALL PRIVILEGES ON * . * TO 'username'@'localhost';





