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 9165939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:01:45+00:00 2026-06-17T15:01:45+00:00

I have a dedicated server which has been setup and running well for some

  • 0

I have a dedicated server which has been setup and running well for some time now with the following. Let’s call this server 1.

MySQL 5.0.95
PHP 5.2.17

Creating connections to the database from PHP is running okay using this method:

mysql_connect($IPAddress,$DBUser,$DBPassword);
@mysql_select_db($database) or die( "Unable to select database");

Now I also have a second dedicated server, let’s call this server 2, which connects to the database on the above server, until today it was working fine. What I did was update PHP to version 5.3.19 and now the error I receive is:

Could not connect: mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD(‘your_existing_password’). This will store a new, and more secure, hash value in mysql.user. If this user is used in other scripts executed by PHP 5.2 or earlier you might need to remove the old-passwords flag from your my.cnf file

I’ve tried running the SET PASSWORD command and it still doesn’t work. I’ve also tried setting old-passwords flag to 0 and that doesn’t work either.

Am I missing something? All works fine on server 1, it’s just server 2 that doesn’t work.

  • 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-06-17T15:01:46+00:00Added an answer on June 17, 2026 at 3:01 pm

    Remove or comment out the following line in the file “my.cnf” (e.g. /etc/my.cnf):

    old_passwords = 1
    

    This will stop MySQL from using the old passwords, right now I am betting that if you ran the query – SELECT user, Length(Password) FROM mysql.user; – you would see that your username probably has two entries, a 16 character and a 41 (41 being the query SET PASSWORD you recently ran.)

    After old_passwords have been removed / commented out then you need to restart MySQL or it will keep using the old_passwords

    Once MySQL has restarted then you may need to run the following queries again:

    UPDATE mysql.user SET Password = PASSWORD('yourPassword!') WHERE user = 'yourUser';
    

    &

    FLUSH Privileges;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a development vm which is running sql server as well as some
I have a dedicated server running Linux. The operating system runs the following -let's
I have the following setup: Dedicated server --> Internet --> Modem (telenet) --> Router
I have one dedicated server which has the whole Lamp-Stack, SVN and Hudson installed.
I have a myisam only dedicated 32 GB RAM mysql server that is running
Ok. I have a dedicated box running centOS 5, it has cPanel installed to
We're running a large site at the moment which has a dedicated VPS for
I have a web application, which has been suffering high load recent days. The
I have a php app which worked perfectly on a dedicated server. Once i
I am using a dedicated server. 1gbps port. There are the following code (which

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.