首先我们win + r,打开我们的黑框框。
然后登录上你的mysql。
然后输入这样一句话:
alter user 'root'@'localhost' identified with mysql_native_password by 'password';
注意!!!!,最后'password' 是填你的mysql登录密码,而不是passwod!!!!!!!!!!.
然后再执行
flush privileges;
最后只要保证,你的yog端口号和你的mysql端口号一致就行了。
如何查mysql的端口号?
show global variables like 'port';
输入下面这段话就可以了。