What is the use case for having different passwords for the same username but different hosts on mariadb/mysql?

Is there a way to synchronized the password for the same username for different hosts?


Yes, just make 'user'@'%', except that it doesn't match 'localhost', so still have to make that one explicitly.

  • intriguing. that does help.
    – theking2
    Aug 13 '20 at 18:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.