I am trying to install wordpress on Odroid C2. However, wordpress could not access mysql.
So, I tried this.
If I execute mysql with sudo, it is OK. But, without sudo, I can't.
The OS of C2 is Ubuntu Mate 16.04, so I installed mariaDB instead of mysql.
I followed the guide of mariaDB installation.
How can I use mysql without sudo, and how can my wordpress access the DB.
This should be an serverfault.com issues. But anyway, go through this checklist
So if in case no 3, you must create a new user and grant access to it to solve this. i.e.
GRANT ALL ON <YOUR_WP_DATABASE_NAME>.* TO "wpuser"@"localhost" IDENTIFIED BY "somepassword";
Afterwards, try mysql using that user to confirm it works.