GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' IDENTIFIED BY 'password';
sudo mysql -u root # Enter the password you have set for it.