Create a MySQL user

Log in to the console as root:

mysql -u root -p

To create a new user:

GRANT ALL PRIVILEGES ON *.* TO ‘username’@’localhost’ IDENTIFIED BY ‘password’;

(restrict permissions as necessary)