mysql-5.7.9-winx64 MySQL服务无法启动,服务没有报告任何错误 的解决办法

本文涉及的产品
RDS MySQL DuckDB 分析主实例,集群系列 4核8GB
RDS AI 助手,专业版
RDS MySQL DuckDB 分析主实例,基础系列 4核8GB
简介:

mysql-5.7.9-winx64 MySQL服务无法启动,服务没有报告任何错误

最新解压版本的mysql 解压安装的时候报错

D:\mysql-5.7.9-winx64\bin>net start mysql

MySQL 服务正在启动 .

MySQL 服务无法启动。

服务没有报告任何错误。



mysql下面是没有data文件夹的,此文件夹不需要自己建。


D:\mysql-5.7.9-winx64\bin>mysqld --console

2015-11-23T14:46:03.711082Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

2015-11-23T14:46:03.711082Z 0 [Warning] Insecure configuration for --secure-file-priv: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path.

2015-11-23T14:46:03.711583Z 0 [Note] mysqld (mysqld 5.7.9) starting as process 9984 ...

2015-11-23T14:46:03.716585Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions

2015-11-23T14:46:03.717086Z 0 [Note] InnoDB: Uses event mutexes

2015-11-23T14:46:03.717591Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier

2015-11-23T14:46:03.721090Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3

2015-11-23T14:46:03.726596Z 0 [Note] InnoDB: Number of pools: 1

2015-11-23T14:46:03.727094Z 0 [Note] InnoDB: Not using CPU crc32 instructions

2015-11-23T14:46:03.764098Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M

2015-11-23T14:46:03.774101Z 0 [Note] InnoDB: Completed initialization of buffer pool

2015-11-23T14:46:03.805645Z 0 [Note] InnoDB: Highest supported file format is Barracuda.

2015-11-23T14:46:03.832178Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables

2015-11-23T14:46:03.832679Z 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...

2015-11-23T14:46:03.924164Z 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB.

2015-11-23T14:46:03.926664Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.

2015-11-23T14:46:03.927165Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.

2015-11-23T14:46:03.929749Z 0 [Note] InnoDB: Waiting for purge to start

2015-11-23T14:46:03.988759Z 0 [Note] InnoDB: 5.7.9 started; log sequence number 1209980

2015-11-23T14:46:03.990259Z 0 [Note] InnoDB: not started

2015-11-23T14:46:03.990759Z 0 [Note] InnoDB: Loading buffer pool(s) from D:\mysql-5.7.9-winx64\data\ib_buffer_pool

2015-11-23T14:46:03.990759Z 0 [Note] Plugin 'FEDERATED' is disabled.

2015-11-23T14:46:03.996731Z 0 [Note] InnoDB: Buffer pool(s) load completed at 151123 22:46:03

mysqld: Table 'mysql.plugin' doesn't exist

2015-11-23T14:46:04.003002Z 0 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.

2015-11-23T14:46:04.007005Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.

2015-11-23T14:46:04.009510Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key

2015-11-23T14:46:04.015010Z 0 [Note] Server hostname (bind-address): '*'; port: 3306

2015-11-23T14:46:04.016513Z 0 [Note] IPv6 is available.

2015-11-23T14:46:04.018012Z 0 [Note]   - '::' resolves to '::';

2015-11-23T14:46:04.021520Z 0 [Note] Server socket created on IP: '::'.

2015-11-23T14:46:04.029022Z 0 [Warning] Failed to open optimizer cost constant tables

2015-11-23T14:46:04.035027Z 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist

2015-11-23T14:46:04.037027Z 0 [ERROR] Aborting

2015-11-23T14:46:04.038528Z 0 [Note] Binlog end

2015-11-23T14:46:04.042030Z 0 [Note] Shutting down plugin 'ngram'

2015-11-23T14:46:04.045533Z 0 [Note] Shutting down plugin 'partition'

2015-11-23T14:46:04.048050Z 0 [Note] Shutting down plugin 'BLACKHOLE'

2015-11-23T14:46:04.050550Z 0 [Note] Shutting down plugin 'ARCHIVE'

2015-11-23T14:46:04.053037Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'

2015-11-23T14:46:04.053539Z 0 [Note] Shutting down plugin 'MRG_MYISAM'

2015-11-23T14:46:04.058545Z 0 [Note] Shutting down plugin 'MyISAM'

2015-11-23T14:46:04.059544Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'

2015-11-23T14:46:04.063045Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'

2015-11-23T14:46:04.065547Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'

2015-11-23T14:46:04.069049Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'

2015-11-23T14:46:04.073053Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'

2015-11-23T14:46:04.081560Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'

2015-11-23T14:46:04.084060Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'

2015-11-23T14:46:04.086063Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'

2015-11-23T14:46:04.088564Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'

2015-11-23T14:46:04.100570Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'

2015-11-23T14:46:04.101071Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'

2015-11-23T14:46:04.103575Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'

2015-11-23T14:46:04.106077Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'

2015-11-23T14:46:04.109580Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'

2015-11-23T14:46:04.118084Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'

2015-11-23T14:46:04.120589Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'

2015-11-23T14:46:04.123088Z 0 [Note] Shutting down plugin 'INNODB_METRICS'

2015-11-23T14:46:04.127091Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'

2015-11-23T14:46:04.130093Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'

2015-11-23T14:46:04.132093Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'

2015-11-23T14:46:04.135097Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'

2015-11-23T14:46:04.137097Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'

2015-11-23T14:46:04.141601Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'

2015-11-23T14:46:04.144602Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'

2015-11-23T14:46:04.148106Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'

2015-11-23T14:46:04.151608Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'

2015-11-23T14:46:04.154108Z 0 [Note] Shutting down plugin 'INNODB_CMP'

2015-11-23T14:46:04.158112Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'

2015-11-23T14:46:04.166119Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'

2015-11-23T14:46:04.169622Z 0 [Note] Shutting down plugin 'INNODB_TRX'

2015-11-23T14:46:04.171624Z 0 [Note] Shutting down plugin 'InnoDB'

2015-11-23T14:46:04.177629Z 0 [Note] InnoDB: FTS optimize thread exiting.

2015-11-23T14:46:04.182131Z 0 [Note] InnoDB: Starting shutdown...

2015-11-23T14:46:04.293551Z 0 [Note] InnoDB: Dumping buffer pool(s) to D:\mysql-5.7.9-winx64\data\ib_buffer_pool

2015-11-23T14:46:04.295552Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 151123 22:46:04

2015-11-23T14:46:05.445554Z 0 [Note] InnoDB: Shutdown completed; log sequence number 1209999

2015-11-23T14:46:05.447053Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"

2015-11-23T14:46:05.448554Z 0 [Note] Shutting down plugin 'MEMORY'

2015-11-23T14:46:05.449054Z 0 [Note] Shutting down plugin 'CSV'

2015-11-23T14:46:05.452556Z 0 [Note] Shutting down plugin 'sha256_password'

2015-11-23T14:46:05.458060Z 0 [Note] Shutting down plugin 'mysql_native_password'

2015-11-23T14:46:05.459061Z 0 [Note] Shutting down plugin 'binlog'

2015-11-23T14:46:05.463065Z 0 [Note] mysqld: Shutdown complete



D:\mysql-5.7.9-winx64\bin>mysqld  --initialize

2015-11-23T14:49:00.783987Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

2015-11-23T14:49:00.785988Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting.

2015-11-23T14:49:00.786989Z 0 [ERROR] Aborting



上面的错误是自己建了data文件夹之后 用 mysqld  --initialize报错。


删除之前建的data文件夹,由mysql自己创建即可。

D:\mysql-5.7.9-winx64\bin>mysqld  --initialize

D:\mysql-5.7.9-winx64\bin>net start mysql

MySQL 服务正在启动 .

MySQL 服务已经启动成功。




 本文转自 w156445045 51CTO博客,原文链接:http://blog.51cto.com/enetq/1716159,如需转载请自行联系原作者

相关实践学习
如何快速连接云数据库RDS MySQL
本场景介绍如何通过阿里云数据管理服务DMS快速连接云数据库RDS MySQL,然后进行数据表的CRUD操作。
MySQL数据库入门学习
本课程通过最流行的开源数据库MySQL带你了解数据库的世界。   相关的阿里云产品:云数据库RDS MySQL 版 阿里云关系型数据库RDS(Relational Database Service)是一种稳定可靠、可弹性伸缩的在线数据库服务,提供容灾、备份、恢复、迁移等方面的全套解决方案,彻底解决数据库运维的烦恼。 了解产品详情: https://www.aliyun.com/product/rds/mysql 
相关文章
|
12月前
|
关系型数据库 MySQL PHP
源码编译安装LAMP(HTTP服务,MYSQL ,PHP,以及bbs论坛)
通过以上步骤,你可以成功地在一台Linux服务器上从源码编译并安装LAMP环境,并配置一个BBS论坛(Discuz!)。这些步骤涵盖了从安装依赖、下载源代码、配置编译到安装完成的所有细节。每个命令的解释确保了过程的透明度,使即使是非专业人士也能够理解整个流程。
341 18
|
数据管理 关系型数据库 MySQL
数据管理服务DMS支持MySQL数据库的无锁结构变更
本文介绍了使用Sysbench准备2000万数据并进行全表字段更新的操作。通过DMS的无锁变更功能,可在不锁定表的情况下完成结构修改,避免了传统方法中可能产生的锁等待问题。具体步骤包括:准备数据、提交审批、执行变更及检查表结构,确保变更过程高效且不影响业务运行。
993 2
|
关系型数据库 MySQL Linux
Linux系统如何设置自启动服务在MySQL数据库启动后执行?
【10月更文挑战第25天】Linux系统如何设置自启动服务在MySQL数据库启动后执行?
871 3
|
关系型数据库 MySQL Linux
在 CentOS 7 中通过编译源码方式安装 MySQL 数据库的详细步骤,包括准备工作、下载源码、编译安装、配置 MySQL 服务、登录设置等。
本文介绍了在 CentOS 7 中通过编译源码方式安装 MySQL 数据库的详细步骤,包括准备工作、下载源码、编译安装、配置 MySQL 服务、登录设置等。同时,文章还对比了编译源码安装与使用 RPM 包安装的优缺点,帮助读者根据需求选择最合适的方法。通过具体案例,展示了编译源码安装的灵活性和定制性。
1188 2
|
关系型数据库 MySQL 数据库
vertx 的http服务表单提交与mysql验证
本文介绍了如何使用Vert.x处理HTTP服务中的表单提交,并通过集成MySQL数据库进行验证,包括项目依赖配置、表单HTML代码和完整的Vert.x服务代码。
172 2
|
数据采集 中间件 关系型数据库
Mac系统通过brew安装mysql5.7后,启动报错的解决办法
Mac系统通过brew安装mysql5.7后,启动报错的解决办法
1118 2
|
SQL JavaScript 关系型数据库
Node服务连接Mysql数据库
本文介绍了如何在Node服务中连接MySQL数据库,并实现心跳包连接机制。
206 0
Node服务连接Mysql数据库
|
SQL 关系型数据库 MySQL
MySQL异常一之: You can‘t specify target table for update in FROM clause解决办法
这篇文章介绍了如何解决MySQL中“不能在FROM子句中指定更新的目标表”(You can't specify target table for update in FROM clause)的错误,提供了错误描述、需求说明、错误做法和正确的SQL写法。
2784 0
|
关系型数据库 MySQL Java
【Azure 应用服务】App Service 无法连接到Azure MySQL服务,报错:com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
【Azure 应用服务】App Service 无法连接到Azure MySQL服务,报错:com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
598 0
|
Kubernetes 关系型数据库 MySQL
k8s练习--通过NFS+PV+PVC+POD,部署一个MySQL服务,并将MySQL的数据进行持久化存储
本文档介绍了如何使用Kubernetes (K8s)、NFS、PersistentVolume (PV)、PersistentVolumeClaim (PVC)和Pod来部署并实现MySQL服务的数据持久化存储。Kubernetes是一个用于自动化部署、扩展和管理容器化应用的强大平台。NFS作为一种网络文件系统协议,能够使Kubernetes集群中的Pod跨节点访问共享文件。PV和PVC机制则提供了持久化的存储解决方案,确保数据即使在Pod生命周期结束后仍得以保留。
1163 0

推荐镜像

更多