一开始我用的普通安装版本,一直卡在start severing,重新卸载了n次,也试过
还是不行,后面用了压缩包版本,根据这个教程https://blog.csdn.net/Charonmomo/article/details/98440968
安装到第五步出现error
D:\mysql-8.0.17-winx64\bin>mysqld --initialize --console
2019-09-14T07:50:06.020057Z 0 [System] [MY-013169] [Server] D:\mysql-8.0.17-winx64\bin\mysqld.exe (mysqld 8.0.17) initializing of server in progress as process 2212
2019-09-14T07:50:06.021790Z 0 [Warning] [MY-013242] [Server] --character-set-server: 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
2019-09-14T07:50:06.035158Z 1 [ERROR] [MY-012576] [InnoDB] Unable to create temporary fi le; errno: 2
2019-09-14T07:50:06.035186Z 1 [ERROR] [MY-012929] [InnoDB] InnoDB Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again.
2019-09-14T07:50:06.035536Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2019-09-14T07:50:06.035548Z 0 [ERROR] [MY-013455] [Server] The newly created data directory D:\mysql-8.0.17-winx64\Data\ by --initialize is unusable. You can remove it.
2019-09-14T07:50:06.060472Z 0 [ERROR] [MY-010119] [Server] Aborting
2019-09-14T07:50:06.061611Z 0 [System] [MY-010910] [Server] D:\mysql-8.0.17-winx64\bin\mysqld.exe: Shutdown complete (mysqld 8.0.17)  MySQL Community Server - GPL.D:\mysql-8.0.17-winx64\bin>mysqld --install
Service successfully installed.D:\mysql-8.0.17-winx64\bin>net start mysql
MySQL 服务正在启动 .
MySQL 服务无法启动。有大佬能帮我解决下吗————————————————————后面重新安装8.0.15版本
发现是initialing database 出错   错误日志:Beginning configuration step: Writing configuration file
Ended configuration step: Writing configuration fileBeginning configuration step: Updating Windows Firewall rules
Attempting to delete a Windows Firewall rule with command: netsh.exe advfirewall firewall delete rule name="Port 3306" protocol=TCP localport=3306已删除 1 规则。
确定。
Adding a Windows Firewall rule for MySQL80 on port 3306.
Attempting to add a Windows Firewall rule with command: netsh.exe advfirewall firewall add rule name="Port 3306" protocol=TCP localport=3306 dir=in action=allow
确定。
Successfully added the Windows Firewall rule.
Ended configuration step: Updating Windows Firewall rulesBeginning configuration step: Adjusting Windows service
Attempting to grant Network Service require filesystem permissions.
Granted permissions.
Adding new service
New service added
Ended configuration step: Adjusting Windows serviceBeginning configuration step: Initializing Database
Attempting to run MySQL Server with --initialize-insecure option...
Starting process for MySQL Server 8.0.11...
Starting process with command: C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe --defaults-file="C:\ProgramData\MySQL\MySQL Server 8.0\my.ini" --console --initialize-insecure=on...
2019-09-14T15:48:14.514856Z 0 [Warning] [MY-011071] [Server] option 'read_buffer_size': unsigned value 0 adjusted to 8192
2019-09-14T15:48:14.514893Z 0 [Warning] [MY-011071] [Server] option 'read_rnd_buffer_size': unsigned value 0 adjusted to 1
2019-09-14T15:48:14.514957Z 0 [Warning] [MY-010915] [Server] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
2019-09-14T15:48:14.515018Z 0 [System] [MY-013169] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.11) initializing of server in progress as process 13532
2019-09-14T15:48:14.529831Z 1 [ERROR] [MY-012576] [InnoDB] InnoDB: Unable to create temporary file; errno: 2
2019-09-14T15:48:14.529969Z 1 [ERROR] [MY-012929] [InnoDB] InnoDB: InnoDB Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again.
2019-09-14T15:48:14.530383Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2019-09-14T15:48:14.530462Z 0 [ERROR] [MY-010119] [Server] Aborting
2019-09-14T15:48:14.531275Z 0 [System] [MY-010910] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: Shutdown complete (mysqld 8.0.11)  MySQL Community Server - GPL.
Process for mysqld, with ID 13532, was run successfully and exited with code 1.
Failed to start process for MySQL Server 8.0.11.
Database initialization failed.
Ended configuration step: Initializing Database发现错误原因一样,还不知道怎么解决