我试图遵循这里的所有建议,但没有一个对我有用。我在 Fedora 上安装了 mysql 社区服务器mysql-community-server-5.7.9-1.fc21.x86_64
我尝试使用访问临时密码,
sudo grep 'temporary password' mysqld.log
但它不返回任何密码。
我不断收到错误
Access denied for user 'root'@'localhost' (using password: NO)
执行 mysqld_safe --skip-grant-tables 时出现此错误
2016-06-14 10:46:00 3495 mysqld_safe: Logging to '/var/log/mysqld.log'.
chown: invalid user: ‘@MYSQLD_USER@’
2016-06-14 10:46:00 3495 mysqld_safe: The file @libexecdir@/mysqld
does not exist or is not executable. Please cd to the mysql installation
directory and restart this script from there as follows:
./bin/mysqld_safe&
See http://dev.mysql.com/doc/mysql/en/mysqld-safe.html for more information
我无法重置 root 用户密码。请帮忙。