Ten Digit Grid
Ten Digit Grid

Reputation: 2619

Cant start mysql in safe mode to recover root password

I am currentley trying to start mysql in safe mode to recover the password for root.

I am following this guide here:

Here is the error I get:

enter image description here

I have also tried

sudo service mysql stop

Upvotes: -1

Views: 1438

Answers (2)

Manish Verma
Manish Verma

Reputation: 781

You can reset the password for the root user by using this command.

sudo dpkg-reconfigure mysql-server-*

mysql-server version is what version you have installed.

You can try pressing tab for options.

Upvotes: 2

jvb
jvb

Reputation: 61

Your error means that one mysql server is already started on your computer when you try to start another one in safe mode. First shutdown previous instance of mysql server.

Upvotes: 0

Related Questions