How To Reset Root Password Mysql Reference Manual Mac

How do I reset/recover my superuser password without the boot disk? Let you reset (but not recover) the old root password. Up on your Mac in addition to the.

Active5 years, 2 months ago

I'm using SequelPro (http://www.sequelpro.com/)and I would like to know how to reset my root password.I'm trying to log in as

host: localhost
username: root
password: (BLANK)

But I keep getting this error:

Unable to connect to host because access was denied.
Double-check your username and password and ensure that access from your current location is permitted.
MySQL said: Access denied for user 'root'@'localhost' (using password: NO)

Any suggestions?!

Josh KReference
11.4k7 gold badges37 silver badges56 bronze badges
classicrock985classicrock985
How To Reset Root Password Mysql Reference Manual Mac

2 Answers

Depending on what you're using to run MySQL, you could take a look at the official instructions.

If you're using MAMP or something similar you need to find where mysqladmin is located.

If you are using another installation of mysql, you may be able to find out where it is located with:

Community
Josh KJosh K
11.4k7 gold badges37 silver badges56 bronze badges

Here is the procedure to reset password of root user.

1) Stop mysql (Kill mysql process or run following command)

2) Start it in safe mode

3) Open another terminal and run the following command (Keep last terminal open)

4) Run the following command with suitable new password on the mysql console

5) mysql > FLUSH PRIVILEGES;

6) Quit from both terminals and open new terminal and connect to mysql with root user and new password

minhas23minhas23

How To Reset Root Password Mysql Reference Manual Mac Os

Not the answer you're looking for? Browse other questions tagged macosmysql or ask your own question.