安装SQL的过程:
参考资料:https://www.cnblogs.com/laumians-notes/p/9069498.html
Q1:修改当前root用户密码:
8.0以上版本必须修改当前用户密码的语句:ALTER USER USER() IDENTIFIED BY '12345678';
出现上述提示时,就表示修改成功了,直接另外打开窗口重新登录即可
Q2:启动服务报错The service did not report an error.
C:\Windows\system32>net start mysql
The MySQL service is starting.
The MySQL service could not be started.
The service did not report an error.
More help is available by typing NET HELPMSG 3534.
解决办法:
1)删除mysql安装主目录下的data目录下所有文件
2)之后两行命令
mysqld --initialize
mysqld --initialize-insecure