When I run following command
mysqld_safe --skip-grant-tables &
I get message
`myuser@myvm:~$ 200523 08:24:41 mysqld_safe Logging to syslog.
200523 08:24:41 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql`
After that when I type mysql
then I get 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")
How do I restart mariadb in safe mode to reset root password?
Asked by Frank Martin
(451 rep)
May 23, 2020, 12:30 PM
Last activity: Apr 13, 2025, 09:00 AM
Last activity: Apr 13, 2025, 09:00 AM