ERROR 1054 (42S22): Unknown column 'password' in 'field list'

想要查看数据库中用户信息,结果报错没有password这个字段了。原来在mysql 5.7及以上的版本里面,password这个字段已经被authentication_string取代。

报错:


解决办法:

(1)查看mysql中表user的结构,直接describe user


(2)password替换成authentication_string




猜你喜欢

转载自blog.csdn.net/songrenqing/article/details/80326497