2017-07-09T13:21:13.486736Z 0 [Warning] InnoDB: New log files created, LSN=45790
2017-07-09T13:21:13.931761Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2017-07-09T13:21:14.001765Z 0 [ERROR] mysqld: unknown option '-i'
2017-07-09T13:21:14.002765Z 0 [ERROR] Aborting
2017-07-09T13:21:35.372988Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2017-07-09T13:21:35.372988Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2017-07-09T13:21:35.372988Z 0 [Note] MySQL (mysqld 5.7.18) starting as process 5616 ...
2017-07-09T13:21:35.384988Z 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2017-07-09T13:21:35.385988Z 0 [Note] InnoDB: Uses event mutexes
2017-07-09T13:21:35.385988Z 0 [Note] InnoDB: _mm_lfence() and _mm_sfence() are used for memory barrier
2017-07-09T13:21:35.386988Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2017-07-09T13:21:35.387988Z 0 [Note] InnoDB: Number of pools: 1
2017-07-09T13:21:35.388988Z 0 [Note] InnoDB: Not using CPU crc32 instructions
2017-07-09T13:21:35.393989Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2017-07-09T13:21:35.410990Z 0 [Note] InnoDB: Completed initialization of buffer pool
2017-07-09T13:21:35.492994Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2017-07-09T13:21:35.660004Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2017-07-09T13:21:35.661004Z 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2017-07-09T13:21:35.817013Z 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB.
2017-07-09T13:21:35.820013Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2017-07-09T13:21:35.821013Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2017-07-09T13:21:35.822013Z 0 [Note] InnoDB: Waiting for purge to start
2017-07-09T13:21:35.873016Z 0 [Note] InnoDB: 5.7.18 started; log sequence number 1209961
2017-07-09T13:21:35.874016Z 0 [Note] InnoDB: Loading buffer pool(s) from D:\Mysql\mysql-5.7.18-winx64\data\ib_buffer_pool
2017-07-09T13:21:35.875016Z 0 [Note] Plugin 'FEDERATED' is disabled.
MySQL: Table 'mysql.plugin' doesn't exist
2017-07-09T13:21:35.876016Z 0 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2017-07-09T13:21:35.877016Z 0 [Note] InnoDB: Buffer pool(s) load completed at 170709 21:21:35
2017-07-09T13:21:35.877016Z 0 [Note] Salting uuid generator variables, current_pid: 5616, server_start_time: 1499606495, bytes_sent: 0,
2017-07-09T13:21:35.886017Z 0 [Note] Generated uuid: '88680618-64a9-11e7-b542-3c970e21a6a9', server_start_time: 1499612111, bytes_sent: 114865280
2017-07-09T13:21:35.887017Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 88680618-64a9-11e7-b542-3c970e21a6a9.
2017-07-09T13:21:35.920019Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2017-07-09T13:21:35.921019Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key
2017-07-09T13:21:35.923019Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2017-07-09T13:21:35.925019Z 0 [Note] IPv6 is available.
2017-07-09T13:21:35.925019Z 0 [Note] - '::' resolves to '::';
2017-07-09T13:21:35.926019Z 0 [Note] Server socket created on IP: '::'.
2017-07-09T13:21:35.927019Z 0 [Warning] Failed to open optimizer cost constant tables
2017-07-09T13:21:35.928019Z 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
2017-07-09T13:21:35.929019Z 0 [ERROR] Aborting
2017-07-09T13:21:35.930019Z 0 [Note] Binlog end
2017-07-09T13:21:35.930019Z 0 [Note] Shutting down plugin 'ngram'
2017-07-09T13:21:35.930019Z 0 [Note] Shutting down plugin 'partition'
2017-07-09T13:21:35.931019Z 0 [Note] Shutting down plugin 'BLACKHOLE'
2017-07-09T13:21:35.931019Z 0 [Note] Shutting down plugin 'ARCHIVE'
2017-07-09T13:21:35.931019Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2017-07-09T13:21:35.932020Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
2017-07-09T13:21:35.932020Z 0 [Note] Shutting down plugin 'MyISAM'
2017-07-09T13:21:35.932020Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
2017-07-09T13:21:35.933020Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2017-07-09T13:21:35.933020Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2017-07-09T13:21:35.934020Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2017-07-09T13:21:35.934020Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2017-07-09T13:21:35.935020Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2017-07-09T13:21:35.935020Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2017-07-09T13:21:35.935020Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2017-07-09T13:21:35.936020Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2017-07-09T13:21:35.936020Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2017-07-09T13:21:35.937020Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2017-07-09T13:21:35.937020Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2017-07-09T13:21:35.937020Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2017-07-09T13:21:35.938020Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2017-07-09T13:21:35.938020Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2017-07-09T13:21:35.939020Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2017-07-09T13:21:35.939020Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
2017-07-09T13:21:35.939020Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
2017-07-09T13:21:35.940020Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2017-07-09T13:21:35.940020Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2017-07-09T13:21:35.941020Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2017-07-09T13:21:35.941020Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2017-07-09T13:21:35.942020Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2017-07-09T13:21:35.942020Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2017-07-09T13:21:35.942020Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
2017-07-09T13:21:35.943020Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2017-07-09T13:21:35.943020Z 0 [Note] Shutting down plugin 'INNODB_CMP'
2017-07-09T13:21:35.944020Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2017-07-09T13:21:35.944020Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
2017-07-09T13:21:35.944020Z 0 [Note] Shutting down plugin 'INNODB_TRX'
2017-07-09T13:21:35.945020Z 0 [Note] Shutting down plugin 'InnoDB'
2017-07-09T13:21:35.945020Z 0 [Note] InnoDB: FTS optimize thread exiting.
2017-07-09T13:21:35.946020Z 0 [Note] InnoDB: Starting shutdown...
2017-07-09T13:21:36.046026Z 0 [Note] InnoDB: Dumping buffer pool(s) to D:\Mysql\mysql-5.7.18-winx64\data\ib_buffer_pool
2017-07-09T13:21:36.049026Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 170709 21:21:36
2017-07-09T13:21:37.257095Z 0 [Note] InnoDB: Shutdown completed; log sequence number 1209980
2017-07-09T13:21:37.258095Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2017-07-09T13:21:37.258095Z 0 [Note] Shutting down plugin 'MEMORY'
2017-07-09T13:21:37.259095Z 0 [Note] Shutting down plugin 'CSV'
2017-07-09T13:21:37.259095Z 0 [Note] Shutting down plugin 'sha256_password'
2017-07-09T13:21:37.259095Z 0 [Note] Shutting down plugin 'mysql_native_password'
2017-07-09T13:21:37.260095Z 0 [Note] Shutting down plugin 'binlog'
2017-07-09T13:21:37.260095Z 0 [Note] MySQL: Shutdown complete
2 个解决方案
#1
看下一下你贴出来的日志,有2个问题,1个是日志里面提到的启动项里面是不支持-i 的参数,看下你启动的时候是不是指定了。然后另外一个错误是启动的时候没有找到mysql.user表的文件,通常这个问题是由于datadir的设置问题引起的,检查一下路径的权限
#2
抱歉啊 以为这贴会沉下去 没怎么看 现在才回复 谢谢啦
#1
看下一下你贴出来的日志,有2个问题,1个是日志里面提到的启动项里面是不支持-i 的参数,看下你启动的时候是不是指定了。然后另外一个错误是启动的时候没有找到mysql.user表的文件,通常这个问题是由于datadir的设置问题引起的,检查一下路径的权限
#2
抱歉啊 以为这贴会沉下去 没怎么看 现在才回复 谢谢啦