How do I give MySQL permission to localhost?
To GRANT ALL privileges to a user , allowing that user full control over a specific database , use the following syntax: mysql> GRANT ALL PRIVILEGES ON database_name. * TO ‘username’@’localhost’; How do I grant access to a MySQL user? The GRANT statement allows you to set MySQL access permissions using the following syntax: mysql> GRANT privilege ON privilege_level TO …