最近新买了电脑,再重新安装mysql过程中,发现user字段没有了password字段,update root密码失败,发现最新版本更新为authentication_string,然后update user set authentication_string=‘123456’ where user=‘root’;
免登录之后发现authentication_string已变为123456,然而去除免密重启之后一直1045,后来发现没有用到mysql的加密函数,实际应该使用update user set authentication_string=password(‘123456’) where user=‘root’;调用mysql的password函数。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)