操作系统:window10
mysql版本:8.0.13-winx64
安装步骤比较简单,本文不再啰嗦,以下是runoob提供的安装说明:
安装后遇到的问题:
一:access denied for user (using password:yes)
解决方式:
1、以管理员的身份进入到cmd命令窗口,并cd到mysql安装路径的bin目录下。
2、关闭mysql服务:
net stop mysql
3、使用 --skip-grant-tables
配置项的方式,跳过权限验证进入mysql。
注意:mysql8.x版本貌似不支持直接修改my.ini配置文件的内容,会导致 “mysql服务无法启动,服务没有报告任何错误”。
命令:
mysqld --console --shared-memory --skip-grant-tables
说明:若缺少 --shared-memory ,则会提示错误:“tcp/ip,--shared-memory,or -name-pipe should be configured on nt os”。
4、保持第3步骤窗口不关闭,再以管理员身份打开cmd窗口并跳转到mysql安装路径下的bin目录,输入mysql,此时便能成功进入。
5、刷新权限:
flush privileges;
6、修改密码:
alter user identified by '新密码';
7、修改成功后,正常启动mysql服务,使用用户名、密码进行登陆校验是否设置成功。
启动mysql服务:
net start mysql
登陆命令:
mysql -uroot -p密码
二:使用navicat连接mysql时报错:client does not support authentication protocol requested by server;consider upgrading mysql client
解决方式:
alert user 'root'@'localhost' identified by '密码' password expire never; alert user 'root'@'localhost' identified with mysql_native_password by '密码'; flush privileges;
说明:mysql8.x默认的认证插件为caching_sha2_password,原先采用的是mysql_native_password,这使得原来的navicat等连接出现认证失败。
总结
以上所述是小编给大家介绍的win10系统安装mysql8.0.13遇到的问题及解决方法,希望对大家有所帮助
您可能感兴趣的文章:
如您对本文有疑问或者有任何想说的,请 点击进行留言回复,万千网友为您解惑!
网友评论