我是因为修改密码后重启遇到的,任务管理器结束mysql进程后 net start mysql 正常启动
果真是缺少了一个文件夹 data 自己手动创建了以后 能启动了 好变态啊 这是什么鬼 不过谢谢 回答正确 的那位亲
可能原因: 1.data文件夹没有清空 2.在1之后没有在命令行中输入mysqld --initialize-insecure --user=mysql,就是没有初始化 在1,2之后尝试再输入net start mysql
求大神解决!!!!!! 2016-11-18T01:24:39.257812Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2016-11-18T01:24:39.257812Z 0 [Warning] '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. 2016-11-18T01:24:39.257812Z 0 [Note] C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe (mysqld 5.7.14-log) starting as process 4828 ... 2016-11-18T01:24:39.289062Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions 2016-11-18T01:24:39.305664Z 0 [Note] InnoDB: Uses event mutexes 2016-11-18T01:24:39.306640Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier 2016-11-18T01:24:39.307617Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3 2016-11-18T01:24:39.307617Z 0 [Note] InnoDB: Adjusting innodb_buffer_pool_instances from 8 to 1 since innodb_buffer_pool_size is less than 1024 MiB 2016-11-18T01:24:39.307617Z 0 [Note] InnoDB: Number of pools: 1 2016-11-18T01:24:39.307617Z 0 [Note] InnoDB: Not using CPU crc32 instructions 2016-11-18T01:24:39.307617Z 0 [Note] InnoDB: Initializing buffer pool, total size = 8M, instances = 1, chunk size = 8M 2016-11-18T01:24:39.323242Z 0 [Note] InnoDB: Completed initialization of buffer pool 2016-11-18T01:24:39.635742Z 0 [ERROR] InnoDB: Only one log file found. 2016-11-18T01:24:39.635742Z 0 [ERROR] InnoDB: Plugin initialization aborted with error not found 2016-11-18T01:24:39.854492Z 0 [ERROR] Plugin 'InnoDB' init function returned error. 2016-11-18T01:24:39.854492Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 2016-11-18T01:24:39.854492Z 0 [ERROR] Failed to initialize plugins. 2016-11-18T01:24:39.854492Z 0 [ERROR] Aborting2016-11-18T01:24:39.854492Z 0 [Note] Binlog end 2016-11-18T01:24:39.854492Z 0 [Note] Shutting down plugin 'CSV' 2016-11-18T01:24:39.854492Z 0 [Note] C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe: Shutdown complete
我也遇到了这个问题,是由于修改my.cnf导致的
我是改了my.ini文件但是没改对所以错了,照着上面的百度经验就ok了
以上试过还不行的话,就打开任务管理器,把所有mysql相关进程全部终结,然后net start mysql
运行mysqld --initialize-insecure --user=mysql后解决了,赞
学些了,运行mysqld --initialize-insecure --user=mysql ,然后net start mysql 是神器啊。 分享个Mysql资料 深入理解MySQL
错误日志如下,请帮忙看看,多谢:2015-11-04T14:53:36.271542Z 0 [Warning] '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.
2015-11-04T14:53:36.271542Z 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-04T14:53:36.272543Z 0 [Note] E:\mysql-5.7.9-winx64\bin\mysqld (mysqld 5.7.9) starting as process 7864 ...
2015-11-04T14:53:36.286553Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2015-11-04T14:53:36.287553Z 0 [Note] InnoDB: Uses event mutexes
2015-11-04T14:53:36.288553Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2015-11-04T14:53:36.288553Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-11-04T14:53:36.289554Z 0 [Note] InnoDB: Number of pools: 1
2015-11-04T14:53:36.290554Z 0 [Note] InnoDB: Not using CPU crc32 instructions
2015-11-04T14:53:36.704832Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2015-11-04T14:53:36.717840Z 0 [Note] InnoDB: Completed initialization of buffer pool
2015-11-04T14:53:37.179150Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2015-11-04T14:53:37.801564Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2015-11-04T14:53:37.802565Z 0 [Note] InnoDB: Setting file 'E:\mysql-5.7.9-winx64\data\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2015-11-04T14:53:38.109771Z 0 [Note] InnoDB: File 'E:\mysql-5.7.9-winx64\data\ibtmp1' size is now 12 MB.
2015-11-04T14:53:38.171811Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2015-11-04T14:53:38.172812Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2015-11-04T14:53:38.174816Z 0 [Note] InnoDB: Waiting for purge to start
2015-11-04T14:53:38.260872Z 0 [Note] InnoDB: 5.7.9 started; log sequence number 1209961
2015-11-04T14:53:38.263877Z 0 [Note] Plugin 'FEDERATED' is disabled.
2015-11-04T14:53:38.263877Z 0 [Note] InnoDB: Loading buffer pool(s) from E:\mysql-5.7.9-winx64\data\ib_buffer_pool
mysqld: Table 'mysql.plugin' doesn't exist2015-11-04T14:53:38.265875Z 0 [Note] InnoDB: not started2015-11-04T14:53:38.266875Z 0 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2015-11-04T14:53:38.268877Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2015-11-04T14:53:38.270879Z 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-04T14:53:38.272880Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2015-11-04T14:53:38.273880Z 0 [Note] IPv6 is available.
2015-11-04T14:53:38.274880Z 0 [Note] - '::' resolves to '::';
2015-11-04T14:53:38.274880Z 0 [Note] Server socket created on IP: '::'.
2015-11-04T14:53:38.345929Z 0 [Note] InnoDB: Buffer pool(s) load completed at 151104 22:53:38
2015-11-04T14:53:38.365943Z 0 [Warning] Failed to open optimizer cost constant tables2015-11-04T14:53:38.370945Z 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
2015-11-04T14:53:38.374948Z 0 [ERROR] Aborting2015-11-04T14:53:38.374948Z 0 [Note] Binlog end
2015-11-04T14:53:38.375950Z 0 [Note] Shutting down plugin 'ngram'
2015-11-04T14:53:38.376949Z 0 [Note] Shutting down plugin 'partition'
2015-11-04T14:53:38.376949Z 0 [Note] Shutting down plugin 'BLACKHOLE'
2015-11-04T14:53:38.376949Z 0 [Note] Shutting down plugin 'ARCHIVE'
2015-11-04T14:53:38.377950Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2015-11-04T14:53:38.378950Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
2015-11-04T14:53:38.378950Z 0 [Note] Shutting down plugin 'MyISAM'
2015-11-04T14:53:38.379951Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
2015-11-04T14:53:38.380958Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2015-11-04T14:53:38.381954Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2015-11-04T14:53:38.459004Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2015-11-04T14:53:38.460004Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2015-11-04T14:53:38.462006Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2015-11-04T14:53:38.468012Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2015-11-04T14:53:38.469010Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2015-11-04T14:53:38.469010Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2015-11-04T14:53:38.470011Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2015-11-04T14:53:38.471012Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2015-11-04T14:53:38.472013Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2015-11-04T14:53:38.472013Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2015-11-04T14:53:38.475014Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2015-11-04T14:53:38.476015Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2015-11-04T14:53:38.478016Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2015-11-04T14:53:38.479017Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
2015-11-04T14:53:38.479017Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
2015-11-04T14:53:38.480017Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2015-11-04T14:53:38.484026Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2015-11-04T14:53:38.485021Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2015-11-04T14:53:38.485021Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2015-11-04T14:53:38.485021Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2015-11-04T14:53:38.486021Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2015-11-04T14:53:38.486021Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
2015-11-04T14:53:38.487021Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2015-11-04T14:53:38.488023Z 0 [Note] Shutting down plugin 'INNODB_CMP'
2015-11-04T14:53:38.488023Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2015-11-04T14:53:38.489023Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
2015-11-04T14:53:38.489023Z 0 [Note] Shutting down plugin 'INNODB_TRX'
2015-11-04T14:53:38.494028Z 0 [Note] Shutting down plugin 'InnoDB'
2015-11-04T14:53:38.494028Z 0 [Note] InnoDB: FTS optimize thread exiting.
2015-11-04T14:53:38.495028Z 0 [Note] InnoDB: Starting shutdown...
2015-11-04T14:53:38.596118Z 0 [Note] InnoDB: Dumping buffer pool(s) to E:\mysql-5.7.9-winx64\data\ib_buffer_pool
2015-11-04T14:53:38.605102Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 151104 22:53:38
2015-11-04T14:53:39.831920Z 0 [Note] InnoDB: Shutdown completed; log sequence number 1209980
2015-11-04T14:53:39.833922Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2015-11-04T14:53:39.833922Z 0 [Note] Shutting down plugin 'MEMORY'
2015-11-04T14:53:39.833922Z 0 [Note] Shutting down plugin 'CSV'
2015-11-04T14:53:39.834922Z 0 [Note] Shutting down plugin 'sha256_password'
2015-11-04T14:53:39.834922Z 0 [Note] Shutting down plugin 'mysql_native_password'
2015-11-04T14:53:39.835923Z 0 [Note] Shutting down plugin 'binlog'
2015-11-04T14:53:39.835923Z 0 [Note] E:\mysql-5.7.9-winx64\bin\mysqld: Shutdown complete
问题:Table 'mysql.plugin' doesn't exist
查看下有没有mysql/data文件夹,好像window的5.7.9版本好多人多说没有mysql/data这个文件夹
看下这个
http://www.oschina.net/question/1244397_2138435
http://bbs.csdn.net/topics/391849032?page=1
希望有帮助
http://jingyan.baidu.com/article/0f5fb0991636376d8234ea7a.html
2015-11-04T14:53:38.374948Z 0 [ERROR] Aborting
至关重要的一步:
mysqld --initialize-insecure --user=mysql
1.data文件夹没有清空
2.在1之后没有在命令行中输入mysqld --initialize-insecure --user=mysql,就是没有初始化
在1,2之后尝试再输入net start mysql
2016-11-18T01:24:39.257812Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-11-18T01:24:39.257812Z 0 [Warning] '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.
2016-11-18T01:24:39.257812Z 0 [Note] C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe (mysqld 5.7.14-log) starting as process 4828 ...
2016-11-18T01:24:39.289062Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2016-11-18T01:24:39.305664Z 0 [Note] InnoDB: Uses event mutexes
2016-11-18T01:24:39.306640Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2016-11-18T01:24:39.307617Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-11-18T01:24:39.307617Z 0 [Note] InnoDB: Adjusting innodb_buffer_pool_instances from 8 to 1 since innodb_buffer_pool_size is less than 1024 MiB
2016-11-18T01:24:39.307617Z 0 [Note] InnoDB: Number of pools: 1
2016-11-18T01:24:39.307617Z 0 [Note] InnoDB: Not using CPU crc32 instructions
2016-11-18T01:24:39.307617Z 0 [Note] InnoDB: Initializing buffer pool, total size = 8M, instances = 1, chunk size = 8M
2016-11-18T01:24:39.323242Z 0 [Note] InnoDB: Completed initialization of buffer pool
2016-11-18T01:24:39.635742Z 0 [ERROR] InnoDB: Only one log file found.
2016-11-18T01:24:39.635742Z 0 [ERROR] InnoDB: Plugin initialization aborted with error not found
2016-11-18T01:24:39.854492Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2016-11-18T01:24:39.854492Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2016-11-18T01:24:39.854492Z 0 [ERROR] Failed to initialize plugins.
2016-11-18T01:24:39.854492Z 0 [ERROR] Aborting2016-11-18T01:24:39.854492Z 0 [Note] Binlog end
2016-11-18T01:24:39.854492Z 0 [Note] Shutting down plugin 'CSV'
2016-11-18T01:24:39.854492Z 0 [Note] C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe: Shutdown complete
分享个Mysql资料 深入理解MySQL