📜  mysql 更改用户密码 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:32.562000             🧑  作者: Mango

代码示例6
UPDATE mysql.user SET authentication_string = PASSWORD('NEW_USER_PASSWORD')WHERE User = 'user-name' AND Host = 'localhost';FLUSH PRIVILEGES;CopyCopyCopied!