mysqld --console输出的信息
D:\gonju\mysql-8.0.27-winx64\bin>mysqld --console
2021-12-01T08:49:33.910282Z 0 [System] [MY-010116] [Server] D:\gonju\mysql-8.0.27-winx64\bin\mysqld.exe (mysqld 8.0.27) starting as process 3564
2021-12-01T08:49:33.936153Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2021-12-01T08:49:34.426488Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2021-12-01T08:49:34.835575Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1 is enabled for channel mysql_main
2021-12-01T08:49:34.835777Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1.1 is enabled for channel mysql_main
2021-12-01T08:49:34.838844Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2021-12-01T08:49:34.839046Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2021-12-01T08:49:34.842618Z 0 [ERROR] [MY-013129] [Server] A message intended for a client cannot be sent there as no client-session is attached. Therefore, we're sending the information to the error-log instead: MY-000001 - Can't create/write to file 'D:\gonju\mysql-8.0.27-winx64\data??.pid' (OS errno 2 - No such file or directory)
2021-12-01T08:49:34.842806Z 0 [ERROR] [MY-010092] [Server] Can't start server: can't create PID file: No such file or directory
2021-12-01T08:49:34.848656Z 0 [ERROR] [MY-010119] [Server] Aborting
2021-12-01T08:49:35.949355Z 0 [System] [MY-010910] [Server] D:\gonju\mysql-8.0.27-winx64\bin\mysqld.exe: Shutdown complete (mysqld 8.0.27) MySQL Community Server - GPL.
1.错版服务起不来,那就进注册表删。
Win+R regedit, 图片在CurrentControlSet和ControlSet***里的Services目录下找一找有没有MySQL,找到就删。在各ControlSet目录下的,Services下的EventLog下的Application目录下找MySQL,然后删,如果目录下没有MySQL怎么办?那你删别的试一试,其他应用挂了别找我。
2.下载MySQLzip安装包
https://dev.mysql.com/downloads/mysql/5.7.html#downloads
解压,cmd进解压路径。
输入 mysqld --initialize --console 初始化数据,初始密码会显示在控制台。
输入 mysqld -install 完成安装
3.如果我不想进cmd怎么办,下MySQLmsi安装包(全家桶,反正我也不知道都是ho么用的,先装了再说,然后玩游戏贼卡。)
https://dev.mysql.com/downloads/windows/installer/5.7.html
ERROR不就是错误吗,这么一大串错误,怎么说没有报任何错误
你把错误代码丢网上搜,大概率能搜到怎么解决
我估计就是因为你的ini文件乱配导致的
你看看是不是环境变量 弄错了