您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

丢失MySQL root 密码?_MySQL

2024/3/10 23:17:17发布21次查看
bitscn.com
1 先停止掉 mysql 服务
/etc/init.d/mysqld stop
2 使用 mysqld_safe 安全登录
mysqld_safe --skip-grant-tables &
3 执行登录,修改密码等
mysql -u -rootuse mysql;update user set password=password('your new password') where user='root';exit;
4 重新启动mysql服务
/etc/init.d/mysqld start
bitscn.com
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product