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-02 12:22:08
作者:文/会员上传
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的密码,可以通过以下步骤重置密码:打开终端,以root用户身份登录。停止MySQL服务:sudo systemctl stop mysql使用以下命令启动MySQL并跳过权限检查:su
以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。
如果您在Ubuntu上忘记了MySQL的密码,可以通过以下步骤重置密码:
打开终端,以root用户身份登录。
停止MySQL服务:
sudo systemctl stop mysql
sudo mysqld_safe --skip-grant-tables &
mysql -u root
use mysql;
update user set authentication_string=PASSWORD('新密码') where user='root';
(在MySQL 5.7版本之后,密码字段已更名为authentication_string)
flush privileges;
exit;
sudo systemctl stop mysqld
sudo systemctl start mysql
现在您应该可以使用新密码登录到MySQL了。请确保将“新密码”替换为您想要设置的新密码。
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