GRANT USAGE ON *.* TO '{user}'@'%' IDENTIFIED BY '{passwd}';
FLUSH PRIVILEGES;
Or you can alternatively use the following:
UPDATE mysql.user SET Password=PASSWORD('{passwd}') WHERE User='{user}';
FLUSH PRIVILEGES;
{{tag>admin database mysql password sql}}