更改在 Ubuntu 的 Mysql 密碼

来源:互联网 发布:eago人工智能骗局 编辑:程序博客网 时间:2024/06/03 19:50

更改在 Ubuntu 的 Mysql 密碼


>>sudo killall mysqld

>>sudo  mysqld -u root --skip-grant-tables &

>> mysql


Mysql interface:


>use mysql
>UPDATE user SET password=password('new password') where user='root';
>FLUSH PRIVILEGES;
0 0
原创粉丝点击