codice:
GRANT ALL PRIVILEGES ON tuodatabase.* TO nomeutente@'%' IDENTIFIED BY 'la_password' WITH GRANT OPTION;
nomeutente@'%'

indica che puoi accedere da tutti gli host