I'm trying to reset my mariadb password following this site -> https://www.rosehosting.com/blog/how-to-reset-your-mariadb-root-password/
but when I enter mysql -u root I get the following error:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")

Any ideas? Thanks.

Recommended Answers

I won't pretend that I know what I'm talking about, but did you shut down the MySQL service first as in the instructions?

Jump to Post

All 2 Replies

I won't pretend that I know what I'm talking about, but did you shut down the MySQL service first as in the instructions?

Indeed.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.