When trying to run
INTO OUTFILE query in MySQL (Ver 8.0.17) i get
SQL Error  [HY000]: Can't create/write to file '/home/....' (OS errno 13 - Permission denied)
When I had same problem on Ubuntu it was related to AppArmor and was able to fix it fallowing:
In Manjaro problem is that when i run
sudo aa-status don't have mysqld profile and don't know how to add / crate it. More to it
/etc/apparmor.d/local/usr.sbin.mysqld does not exist.