Granting 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

could not find course/ could not find top level course/ could not find course category

migrating moodle from one server to another

installing moosh to make your life easier