简体   繁体   English

mysql安装问题。 (mysql本地服务启动和停止。一些服务...)

[英]Mysql installation problems. (The mysql local service started and stopped . Some services...)

I understand that this question has been asked alot of times before with and I have tried everyone of their solutions.我知道这个问题之前已经被问过很多次了,我已经尝试了他们的每个解决方案。 It hasn't worked for me.它对我不起作用。 To summarize I'm installing using the windows msi installer version 8.0.22.0 to install mysql.总而言之,我正在使用 windows msi 安装程序版本 8.0.22.0 来安装 mysql。 Everything goes fine in the installation until we get to the starting services part of the installation.安装过程中一切正常,直到我们进入安装的启动服务部分。 There it gets stuck at starting server never advancing.在那里它卡在启动服务器永远不会前进。 I know that's due to the service not starting and I do the recommended step of running services.msc as a service.我知道这是由于服务未启动,我执行了将 services.msc 作为服务运行的推荐步骤。 I'll also paste my error log that I got from the programdata/mysql/mysql server 8.0/ directory.我还将粘贴我从 programdata/mysql/mysql server 8.0/ 目录中获得的错误日志。

Important info mysql version 8.0.22.0 using msi installer windows 10重要信息 mysql 版本 8.0.22.0 使用 msi 安装程序 windows 10

2020-11-08T19:46:08.681432Z 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. 2020-11-08T19:46:08.681432Z 0 [警告] [MY-010915] [服务器] 'NO_ZERO_DATE'、'NO_ZERO_IN_DATE' 和 'ERROR_FOR_DIVISION_BY_ZERO' 应该与严格模式一起使用 sql 模式。 They will be merged with strict mode in a future release.它们将在未来版本中与严格模式合并。 2020-11-08T19:46:08.682752Z 0 [System] [MY-010116] [Server] C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqld.exe (mysqld 8.0.22) starting as process 17300 2020-11-08T19:46:08.719892Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2020-11-08T19:46:08.682752Z 0 [系统] [MY-010116] [服务器] C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqld.exe (mysqld 8.0.22) 从进程 17300 2020 开始-11-08T19:46:08.719892Z 1 [系统] [MY-013576] [InnoDB] InnoDB 初始化已经开始。 2020-11-08T19:46:09.221182Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended. 2020-11-08T19:46:09.221182Z 1 [系统] [MY-013577] [InnoDB] InnoDB 初始化已经结束。 2020-11-08T19:46:09.369387Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. 2020-11-08T19:46:09.369387Z 0 [系统] [MY-011323] [服务器] X 插件准备好连接。 Bind-address: '::' port: 33060 2020-11-08T19:46:09.464341Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.绑定地址:'::' 端口:33060 2020-11-08T19:46:09.464341Z 0 [警告] [MY-010068] [服务器] CA 证书 ca.pem 是自签名的。 2020-11-08T19:46:09.465186Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. 2020-11-08T19:46:09.465186Z 0 [系统] [MY-013602] [服务器] 通道 mysql_main 配置为支持 TLS。 Encrypted connections are now supported for this channel.此通道现在支持加密连接。 2020-11-08T19:46:09.477256Z 0 [ERROR] [MY-013129] [Server] A message intended for a client cannot be sent there as no client-session is attached. 2020-11-08T19:46:09.477256Z 0 [ERROR] [MY-013129] [Server] 由于没有附加客户端会话,因此无法向客户端发送消息。 Therefore, we're sending the information to the error-log instead: MY-000001 - Can't create/write to file 'C:\\ProgramData\\MySQL\\MySQL Server 8.0\\Data????.pid' (OS errno 2 - No such file or directory) 2020-11-08T19:46:09.479597Z 0 [ERROR] [MY-010092] [Server] Can't start server: can't create PID file: No such file or directory 2020-11-08T19:46:09.485610Z 0 [ERROR] [MY-010119] [Server] Aborting 2020-11-08T19:46:10.655699Z 0 [System] [MY-010910] [Server] C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqld.exe: Shutdown complete (mysqld 8.0.22) MySQL Community Server - GPL.因此,我们将信息发送到错误日志:MY-000001 - Can't create/write to file 'C:\\ProgramData\\MySQL\\MySQL Server 8.0\\Data????.pid' (OS errno 2 - 没有那个文件或目录)2020-11-08T19:46:09.479597Z 0 [ERROR] [MY-010092] [Server] 无法启动服务器:无法创建 PID 文件:没有那个文件或目录 2020- 11-08T19:46:09.485610Z 0 [ERROR] [MY-010119] [Server] Aborting 2020-11-08T19:46:10.655699Z 0 [System] [MY-010910] [Server] C:\\Program Files\\ \\MySQL Server 8.0\\bin\\mysqld.exe:关闭完成 (mysqld 8.0.22) MySQL 社区服务器 - GPL。

The questions I've looked at the MySQL service on local computer started and then stopped The MSSQLSERVER service on Local Computer started and then stopped.我查看了本地计算机的 MySQL 服务启动然后停止的问题本地计算机上的 MSSQLSERVER 服务启动然后停止。 Some services stop automatically 某些服务会自动停止

我的服务属性

错误信息

You have to check in your my.ini which is located in C:\\ProgramData\\MySQL\\MySQL Server 8.0\\您必须检查位于C:\\ProgramData\\MySQL\\MySQL Server 8.0\\中的 my.ini

Can't create/write to file C:\\ProgramData\\MySQL\\MySQL Server 8.0\\Data????.pid无法创建/写入文件C:\\ProgramData\\MySQL\\MySQL Server 8.0\\Data????.pid

As you can see the correct path would be如您所见,正确的路径是

[mysqld]
pid-file = "C:/ProgramData/MySQL/MySQL Server 8.0/Data/????.pid"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM