~/.kde/share/config/amarokrc: ... [MySQL] Host=10.0.0.159 Password=secret UseServer=true ... jaap@jaap:/$ amarok --debug --nofork ... amarok: connection to mysql failed amarok: [ERROR__] Could not connect to mysql! amarok: [ERROR__] [MySqlStorage] "GREPME MySQL-server query failed! (1045) Access denied for user 'amarokuser'@'jaap.custard.shrl.nl' (using password: YES) on na" ... jaap.custard.shrl.nl is the local machine (10.0.0.150) without database server 10.0.0.159 is the database server (Debian Jessie)
I discovered that with MariaDb the suggested command is not sufficient. Instead of: GRANT ALL PRIVILEGES ON amarokdb.* TO amarokuser IDENTIFIED BY 'secret'; it should be: GRANT ALL PRIVILEGES ON amarokdb.* TO amarokuser@localhost IDENTIFIED BY 'secret';
In your case "@10.0.0.159"...