# /etc/init.d/mysql stop
# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
# mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD('newpassword') where USER='root';
mysql> FLUSH PRIVILEGES;
mysql> quit
# /etc/init.d/mysql restart
# mysql -uroot -p
Enter password: <输入新设的密码newpassword>
mysql>
Access denied for user 'root '@'localhost'
原创
©著作权归作者所有:来自51CTO博客作者pyzheng的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Liveness probe failed: Could not connect to Redis at localhost:6379
背景今天在部署一个平台容器版的时候redis集群始终无法正常启动,报以下错误:Liveness probe failed: Could not connect to Redis at localhost:6379解决过程排除dns解析问题因为报localhost无法访问首先修改成127.0.0.1排除是dns解析的问题,改完后仍然报错,只不过localhost改成127.0.0.1了。
k8s cni0 flannel.1 Count not connet to docker -
Access denied for user 'root'@'localhost' (using password: YES)
1.mysql -uroot2.use mysql3.UPDATE user SET Password=PASSWORD('123456') where USER='root';4.FLUSH PRIVILEGES;5.quit6.mysql -uroot -p7.输入123456成功
Access denied root'@'localhost using password: YES mysql -
connect to database error : Access denied for user 'root'@'localhost'mysql 5e 存储位置 数据库 html
-
windows python 服务端
David Wheeler有一句名言: “计算机科学中的任何问题,都可以通过加上另一层间接的中间层解决。 ”为了提高Python网络服务的可移植性,Python社区在PEP 333中提出了Web服务器网关接口(WSGI,Web Server Gateway Interface)。 为了提高Python网络服务的可移植性,Python社区在PEP 333中提出了Web服务器网
windows python 服务端 http服务器 ios 搭建http服务器 python response python 服务器