I am aware of this command:
GRANT ALL PRIVILEGES ON database.* TO \'user\'@\'yourremotehost\' IDENTIFIED BY \'newpassword\';
But then it on
In website panels like cPanel you may add a single % (percentage sign) in allowed hostnames to access your MySQL database.
%
By adding a single % you can access your database from any IP or website even from desktop applications.