Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6354057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:30:54+00:00 2026-05-24T22:30:54+00:00

We migrated our databases to a new server, which unfortunately had a default setting

  • 0

We migrated our databases to a new server, which unfortunately had a default setting of old_passwords=1.

Because we use PASSWORD() from PHP for some functionality, the newer passwords for those applications, and ofcourse the newly created mysql root and other users all have old style passwords.

I would like to move back to new style passwords in order for the user accounts from before the migration to work again, but I also would like the newly created users to be able to log in still.

Reading http://dev.mysql.com/doc/refman/5.0/en/password-hashing.html it seems that >4.1 servers will handle both old and new style passwords, but I would like to have some confirmation that I am reading that information correctly before I remove that line from my my.cnf, restart the server and end up in a lot of trouble

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T22:30:55+00:00Added an answer on May 24, 2026 at 10:30 pm

    From what I have read it is pretty clear:

    4.1 and later clients can authenticate using accounts that have short or long hashes.

    But just make sure all your clients are also 4.1 or later. Otherwise if a pre-4.1 user changes their password, they will be locked out.

    Without the –old-passwords option, the following undesirable scenario
    is possible:

    • An old client connects to an account that has a short password hash.

    • The client changes its own password. Without –old-passwords, this
      results in the account having a long password hash.

    • The next time the old client attempts to connect to the account, it
      cannot, because the account has a long password hash that requires the
      new hashing mechanism during authentication. (Once an account has a
      long password hash in the user table, only 4.1 and later clients can
      authenticate for it, because pre-4.1 clients do not understand long
      hashes.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've just migrated our Team Projects from TFS2008 to a new TFS2010 server and
We have successfully migrated all of our PHP and Ruby apps to use New
We just migrated our application from our development environment to the UAT server that
We just recently migrated our web application from .NET 1.1 to .NET 2.0. The
We migrated from VSS to TFS about 6 months ago. Our way of storing
We recently migrated from coldfusion 7 to coldfusion 8. One of our reporting flex
So we migrated dev sql server to 2008. Our UAT sql server is still
Good Day, We have migrated our web application to ASP.NET 2.0 from ASP.NET 1.1.
We just migrated our installer from WiX 2.x to WiX 3.6 and started using
I am writing code to migrate data from our live Access database to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.