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

bash + python script to find wordpress malware and delete it.

enabling web interface updates over FTP or directly

turning on debug mode