GRANT USAGE ON . TO 'user'@'localhost' IDENTIFIED BY PASSWORD '59661egd257g9f2g'
This gives 'user' no privileges on . (everything) when identified by that password.
GRANT ALL PRIVILEGES ON database.* TO 'user'@'localhost'
This gives 'user' all privieges on 'database' without regard to the password.