尝试启动时出错 MySQL

Error while trying to start MySQL

我已经安装了 mysql 作为服务并且是 运行。

但是当我尝试启动时 mysql 我得到这个错误:

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

问题是什么?我似乎找不到任何相关的解决方案。

如有任何建议,我们将不胜感激。同样感谢。

编辑:

这是我的错误截图。

Start the MySQL server instance
$ mysqld --skip-grant-tables

Execute these statements.
$ mysql -u root mysql
$mysql> UPDATE user SET Password=PASSWORD('my_password') where USER='root';
$mysql> FLUSH PRIVILEGES;


$ /etc/init.d/mysql restart


$ mysql -u root -p with new password