Home » Blog article: MySQL OLD_PASSWORD Issue

MySQL OLD_PASSWORD Issue

Many PHP developers out there are probably aware of the change in MySQL’s password hashing algorithm changes between version MySQL 4 and MySQL 5. It requires you to update User passwords when upgrading your database version. The syntax for how to do this is below. However, I just ran into a situation while doing maintenance on a web environment that required me to switch database servers and move and existing MySQL version 4.1.21-community-nt to 4.1.22-community-nt. Much to my surprise, this password hash change existing in MySQL 4.x even between minor releases.

SET PASSWORD FOR 'user'@'host' = OLD_PASSWORD('original-password');
blog comments powered by Disqus
Brian Kupetz

Thats me above wearing one of my favorite Adidas track jackets. This is my home on the web showcasing some of my work over the past few years in the Interactive Marketing/Advertising field. In addition to my portfolio you'll find some personal information about me as well as some ramblings on some of the research and development I participate in. Enjoy!

**Disclaimer - The postings on this site are my own and do not necessarily represent the positions, strategies or opinions of George P. Johnson or Juxt Interactive.

Alltop, all the top stories

Recent Tweets

Browse by Category

Archives

Latest Work

hosted by        ©2007-2008 Brian Jeremy Kupetz. All Rights Reserved.

About this site | Google Sitemap