1. 程式人生 > >MySQL5.7修改密碼

MySQL5.7修改密碼

AC TP 修改用戶密碼 cati 平時 password code 記錄 5.7

平時沒怎麽用過Mysql,今天有個小程序需要用一下,但是忘記怎麽修改用戶密碼了,網上搜索一下,記錄一下。

1 update user set authentication_string = password(root), password_expired = N, password_last_changed = now() where user = root;

重啟MySQL服務後生效。

原文鏈接:https://www.cnblogs.com/activiti/p/7810166.html

MySQL5.7修改密碼