12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
ADADADADAD
建站问答 时间:2024-12-01 19:17:40
作者:文/会员上传
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
ubuntu中mysql改密码忘了的解决方法:1.在终端中切换到root权限,命令:su root2. 停止mysqld,输入命令:/etc/init.d/mysql stop3. 以不检查权限的方式启动MySQL,命令:mysqld --skip-g
以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。
ubuntu中mysql改密码忘了的解决方法:
1.在终端中切换到root权限,命令:
su root
2. 停止mysqld,输入命令:
/etc/init.d/mysql stop
3. 以不检查权限的方式启动MySQL,命令:
mysqld --skip-grant-tables &
4. 用空密码方式使用root用户登录MySQL,命令:
mysql -u root
5. 修改root用户的密码为123456,命令如下:
mysql> update mysql.user set password=PASSWORD('123456') where User='root';
mysql> flush privileges;
mysql> quit
6.重新启动MySQL即可。命令:
/etc/init.d/mysql restart
11-20
11-19
11-20
11-20
11-20
11-19
11-20
11-20
11-19
11-20
11-19
11-19
11-19
11-19
11-19
11-19