Setting permissions on a database

 Login to mysql and run this, where "database" is your database, "username" is your database username, and "password" is your preferred password.

grant all on database.* to 'username'@'localhost' identified with mysql_native_password by "password";

Note this is for mysql 8 and above, mysql 5 and below you remove the "with mysql_native_password" part.

Popular posts from this blog

forcing deactivating of plugins via mysql

turning on debug mode