关于mysql数据库user表没有password字段

解决

这个是因为mysql的版本问题,是mysql 5.7版本出现的,具体是mysql 5.7.x 开始变化的我不知道

新的字段变更为authentication_string
修改密码的方式还是和原来一致的

use mysql;
update user set authentication_string=password("python") where user="root";
posted @ 2020-03-10 23:10  Hello_wshuo  阅读(170)  评论(0)    收藏  举报