mysql安装后无法启动和连接问题

(5.7的版本)

1.无法启动,报错:服务没有报告任何错误。

输入命令 mysqld --initialize进行初始化,初始化成功后再重新输入命令启动net start mysql

2.安装后root无法连接:

首次安装后,root连接的密码在datamy-pc.err中查找(A temporary password 。。。冒号后面的就是初始密码)

3.连接后无法修改初始密码,提示:Unknown column 'password' in 'field list'

数据字段已改为authentication_string,所以修改密码语句为:update user set authentication_string=password('your new password') where user='root';
原文地址:https://www.cnblogs.com/jdm532000/p/8630916.html