Grant Privileges
Grant the privileges for a user:
Enter
GRANT SELECT ON database.* TO username@'localhost' IDENTIFIED BY 'password';
to allow the
SELECT statement only.
Enter
GRANT ALL ON database.* TO username@'localhost' IDENTIFIED BY 'password';
to grant all privileges.