I went under the root, did the same thing, it worked.
# sudo /etc/init.d/mysql stop # ps axu # sudo mysqld_safe --skip-grant-tables &
Displays the message:
150927 16:24:06 mysqld_safe Can't log to error log and syslog at the same time. Remove all --log-error configuration options for --syslog to take effect. 150927 16:24:06 mysqld_safe Logging to '/var/log/mysql/error.log'. 150927 16:24:06 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
I wait for 15 minutes, ^ C, I watch the processes:
# ps axu
Suddenly there was no muscle in the process. I am glad, I continue:
# mysql -u root mysql> use mysql; mysql> update user set password=PASSWORD("mynewpassword") where User='root'; mysql> flush privileges; mysql> \q # sudo /etc/init.d/mysql stop # sudo /etc/init.d/mysql start
On the one hand, the issue is resolved, on the other hand, it is not clear why it did not work under a non-user user.
... stopcommand. Kill them:sudo pkill -KILL mysqld. - aleksandr barakin