差異處
這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 | |||
mysql [2019/02/19 02:05] jz [Change credential] |
mysql [2019/02/19 02:06] (目前版本) jz [Change credential] |
||
---|---|---|---|
行 31: | 行 31: | ||
<code mysql> | <code mysql> | ||
SET PASSWORD FOR 'user'@'localhost' = PASSWORD('password'); | SET PASSWORD FOR 'user'@'localhost' = PASSWORD('password'); | ||
- | or | + | -- or |
update mysql.user set password=PASSWORD(‘新password’) where User=’root’; | update mysql.user set password=PASSWORD(‘新password’) where User=’root’; | ||
- | and then | + | -- and then |
flush privileges; | flush privileges; | ||
</code> | </code> |