How To Reset Root Password Mysql Reference Manual Mac

Posted on  by 

Mar 08, 2015  Changing root Password on Mac with Directory Utility Directory Utility can be accessed through the preference panel or directly. From the  Apple menu, choose “System Preferences”, then click on the “Users & Groups” preference panel Select the lock icon in the corner, then enter an admin password.

Active1 year, 5 months ago
  • Sep 20, 2016  How to Change the MySQL root Password in Linux or macOS via Command Line September 20, 2016 53 Comments If you have forgot the MySQL root password, can’t remember or want to break in. You can reset the mysql database password from the command line in either Linux or macOS Sierra and OSX as long as you know the root user password of the.
  • If FileVault is turned on, you might be able to reset your password using the Reset Password assistant: Wait up to a minute at the login screen, until you see a message saying that you can use the power button on your Mac to shut down and start up again in Recovery OS. If you don't see this message, FileVault isn't on.

I lost the superuser password for my iMac and I don't have the boot disk. I already tried the second answer on this page, but every time I type su from the command prompt, it still asks for a password that I don't have anymore. Is there another way to reset the superuser password?

Community
PaulPaul
2762 gold badges8 silver badges15 bronze badges

5 Answers

Max RiedMax Ried
6,2761 gold badge33 silver badges56 bronze badges

If you have an administrator user account set up on your Mac in addition to the root account, you can use the Directory Utility to do the following:

  1. Open the Directory Utility from /System/Library/CoreServices or in OS X 10.11 and later, System/Library/CoreServices/Applications.

  2. Click the lock button and authenticate as an administrator:

  3. Go to the menu Edit > Change root password...:

  4. It should prompt you to enter a new root password:

Again, you have to have access to an administrator account to do this (so you can authenticate).

Good luck.

user3439894
31.4k7 gold badges49 silver badges70 bronze badges
Matt LoveMatt Love

The best solution for 10.7 and 10.8 is to boot in recovery mode (CMD+R). Then, open a terminal window and type the command 'resetpassword'. This will open a window which will allow you to reset any user's password.

BernzBernz

Open Terminal.app and run:

Type the current admin password
Type the new password to root
Re-type new password to root

Done!

Mysqldaviesgeek
22.2k48 gold badges142 silver badges188 bronze badges
Geyson Rogerio L SilvaGeyson Rogerio L Silva

How To Reset Root Password Mysql Reference Manual Mac Os

I found this on the web.

How To Reset Root Password Mysql Reference Manual Mac

The obvious downside is the fact you can't actually recover your password: you'd have to delete the account, and use the new administrator. Nonetheless, you could get hold of the files in the Home Folder before the account is deleted, or even after, as OSX allows you to delete an account but keep the files in it.

The files will be protected, though there are some ways in which you should be able to remove the restrictions on them. You could simply use Terminal to chown the directory and all it's contents, and once you remove the permissions all the files in your previous account should be accessible to your new account.

If you decide to follow this method I could provide more information on how to chown the directory, though a web search should do.

Hope it helps!

daviesgeek
22.2k48 gold badges142 silver badges188 bronze badges

How To Reset Root Password Mysql Reference Manual Machine

kevin9794kevin9794
3,2842 gold badges22 silver badges35 bronze badges

How To Reset Root Password Mysql Reference Manual Mac Pro

You must log in to answer this question.

How To Reset Root Password Mysql Reference Manual Macbook Pro

Not the answer you're looking for? Browse other questions tagged macospasswordsudoroot .

Coments are closed