Reseting the mysql password on a Homestead box

Published 9 months ago by Leff7

I have 2 boxes on my virtual machine, one with php v.7 and the other with php v.5.6. I have installed the latter one, just recently and I have updated to macOS High Sierra. Today I realised that I can't access anymore sites that I have locally, I get the error:

Your password has expired. To log in you must change it using a client that supports expired passwords.

I went to reset the password on vagrant machine again by running this command, and then was prompted to reset password, which I have just set up to the old one that I already had:

mysqladmin -u root -p password
Enter password: 
New password: 
Confirm new password:

I have then run vagrant halt and vagrant up, but nothing has changed, I have still got the same error as previously.

Best Answer (As Selected By Leff7)
Dry7

@Leff7 Homestead usually uses a homestead user, try

mysqladmin -u homestead -p password
Dry7
Dry7
9 months ago (151,880 XP)

@Leff7 Homestead usually uses a homestead user, try

mysqladmin -u homestead -p password

Please sign in or create an account to participate in this conversation.