Mariadb alter hôte utilisateur

UPDATE mysql.user SET Host='%' WHERE Host='localhost' AND User='username';
FLUSH PRIVILEGES;
The Strangest Salamander