mysql版本5.7.9
在mac終端下修改mysql用戶登錄密碼
終端命令如下:
update mysql.user set authentication_string=PASSWORD("123456") where user='root';
FLUSH PRIVILEGES;
之前嘗試百度到的 update mysql.user set password=PASSWORD("123456") where user='root'; 結果提示Unknown column 'password' in 'field list',看來新的版本對此是有修改的
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系我们删除。