设为首页 收藏本站
查看: 1048|回复: 0

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

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2015-11-24 08:39:54 | 显示全部楼层 |阅读模式
                      
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 服务已经启动成功。

                   


运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-142839-1-1.html 上篇帖子: mysql数据库设计以及sql语句 下篇帖子: Mysql 主从原理
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表