安裝mysql后,啟動服務時提示“本地計算機上的mysql服務啟動后停止。某些服務在未由其他服務或程式使用時將自動停止。”無法啟動服務。求教版上先進,該如何解決。
系統:win 8.1 x64
Mysql版本:最新的x64位社區版本
服務中設定的登錄用戶是管理員。
報錯截圖如下:
uj5u.com熱心網友回復:
百度一下 MYSQL 錯誤日志,然后找到這個檔案,用記事本打開后,將相關內容復制到貼子中以供分析。uj5u.com熱心網友回復:
你這個mysql啟動時自動的,你試下在dos視窗啟動mysql,如果不成功,看錯誤日志(my.ini)uj5u.com熱心網友回復:
錯誤日志如下,請幫忙看看,多謝:
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 started
2015-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 tables
2015-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] Aborting
2015-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
uj5u.com熱心網友回復:
多謝回復。錯誤日志貼在了3樓。也請幫忙看看,謝謝!
uj5u.com熱心網友回復:
資料庫版本是:mysql-5.7.9-winx64問題: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
希望有幫助
uj5u.com熱心網友回復:
新版本問題,查看過里可以解決。http://jingyan.baidu.com/article/0f5fb0991636376d8234ea7a.html
uj5u.com熱心網友回復:
2015-11-04T14:53:38.370945Z 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist2015-11-04T14:53:38.374948Z 0 [ERROR] Aborting
uj5u.com熱心網友回復:
至關重要的一步:
mysqld --initialize-insecure --user=mysql
uj5u.com熱心網友回復:
有可能是改了my.ini的內容導致的,我改了編碼,然后就啟動不了了,改回來之后就正常了。uj5u.com熱心網友回復:
我是因為修改密碼后重啟遇到的,任務管理器結束mysql行程后 net start mysql 正常啟動uj5u.com熱心網友回復:
與樓主同樣的問題,參照您的提示解決了。謝謝!
uj5u.com熱心網友回復:
果真是缺少了一個檔案夾 data 自己手動創建了以后 能啟動了 好變態啊 這是什么鬼 不過謝謝 回答正確 的那位親uj5u.com熱心網友回復:
可能原因:1.data檔案夾沒有清空
2.在1之后沒有在命令列中輸入mysqld --initialize-insecure --user=mysql,就是沒有初始化
在1,2之后嘗試再輸入net start mysql
uj5u.com熱心網友回復:

uj5u.com熱心網友回復:
求大神解決!!!!!!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] Aborting
2016-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
uj5u.com熱心網友回復:
8樓正解,多謝多謝uj5u.com熱心網友回復:
我的錯誤日志和樓主的一樣。。求告知怎么解決的,。,。謝謝uj5u.com熱心網友回復:
大神正解uj5u.com熱心網友回復:
我也遇到了這個問題,是由于修改my.cnf導致的uj5u.com熱心網友回復:
哎。我是裝了半天還是沒有裝好。徹底放棄了。uj5u.com熱心網友回復:
我是改了my.ini檔案但是沒改對所以錯了,照著上面的百度經驗就ok了
uj5u.com熱心網友回復:
這個正確,證實了
uj5u.com熱心網友回復:
以上試過還不行的話,就打開任務管理器,把所有mysql相關行程全部終結,然后net start mysqluj5u.com熱心網友回復:
運行mysqld --initialize-insecure --user=mysql后解決了,贊uj5u.com熱心網友回復:
謝謝大神,啟動成功了uj5u.com熱心網友回復:
以上試過還不行的話,就打開任務管理器,把所有mysql相關行程全部終結,然后net start mysql
謝謝大神,前面的用了還是不行,用你這個方法徹底解決了
uj5u.com熱心網友回復:
學些了,運行mysqld --initialize-insecure --user=mysql ,然后net start mysql 是神器啊。分享個Mysql資料 深入理解MySQL
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/80849.html
標籤:MySQL
上一篇:mysql查詢陳述句
