• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Updating a MySQL password to use new hashingEdit

Created 2013-07-23, updated 2020-03-12

SET SESSION old_passwords=0; SET PASSWORD FOR 'foo'@'bar' = password('blah'); FLUSH PRIVILEGES;

See also

  • http://dev.mysql.com/doc/refman/5.0/en/password-hashing.html
  • http://code.openark.org/blog/mysql/upgrading-passwords-from-old_passwords-to-new-passwords
  • mysql
  • wiki
Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).