Mysql啟動(dòng)發(fā)生系統(tǒng)錯(cuò)誤1067
問(wèn)題描述
Windows解壓的Mysql,編輯my.ini后無(wú)法啟動(dòng)。
[mysqld] innodb_buffer_pool_size = 128M basedir = D:/mysql-5.6.34-winx64 datadir = D:/mysql-data port = 3306 server_id = mysql join_buffer_size = 128M sort_buffer_size = 2M read_rnd_buffer_size = 2M sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
D:mysql-5.6.34-winx64bin>net start mysqlMySQL 服務(wù)正在啟動(dòng) .MySQL 服務(wù)無(wú)法啟動(dòng)。系統(tǒng)出錯(cuò)。發(fā)生系統(tǒng)錯(cuò)誤 1067。進(jìn)程意外終止。
日志如下:
2016-10-25 14:27:40 3972 [Note] Plugin ’FEDERATED’ is disabled.MySQL: Table ’mysql.plugin’ doesn’t exist2016-10-25 14:27:40 3972 [ERROR] Can’t open the mysql.plugin table. Please run mysql_upgrade to create it.2016-10-25 14:27:40 3972 [Note] InnoDB: Using atomics to ref count buffer pool pages2016-10-25 14:27:40 3972 [Note] InnoDB: The InnoDB memory heap is disabled2016-10-25 14:27:40 3972 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions2016-10-25 14:27:40 3972 [Note] InnoDB: Memory barrier is not used2016-10-25 14:27:40 3972 [Note] InnoDB: Compressed tables use zlib 1.2.32016-10-25 14:27:40 3972 [Note] InnoDB: Not using CPU crc32 instructions2016-10-25 14:27:40 3972 [Note] InnoDB: Initializing buffer pool, size = 128.0M2016-10-25 14:27:40 3972 [Note] InnoDB: Completed initialization of buffer pool2016-10-25 14:27:40 3972 [Note] InnoDB: Highest supported file format is Barracuda.2016-10-25 14:27:40 3972 [Note] InnoDB: Log scan progressed past the checkpoint lsn 494632016-10-25 14:27:40 3972 [Note] InnoDB: Database was not shutdown normally!2016-10-25 14:27:40 3972 [Note] InnoDB: Starting crash recovery.2016-10-25 14:27:40 3972 [Note] InnoDB: Reading tablespace information from the .ibd files...2016-10-25 14:27:40 3972 [Note] InnoDB: Restoring possible half-written data pages 2016-10-25 14:27:40 3972 [Note] InnoDB: from the doublewrite buffer...InnoDB: Doing recovery: scanned up to log sequence number 16006072016-10-25 14:27:41 3972 [Note] InnoDB: Starting an apply batch of log records to the database...InnoDB: Progress in percent: 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 InnoDB: Apply batch completed2016-10-25 14:27:41 3972 [Note] InnoDB: 128 rollback segment(s) are active.2016-10-25 14:27:41 3972 [Note] InnoDB: Waiting for purge to start2016-10-25 14:27:41 3972 [Note] InnoDB: 5.6.34 started; log sequence number 16006072016-10-25 14:27:41 3972 [Note] Server hostname (bind-address): ’*’; port: 33062016-10-25 14:27:41 3972 [Note] IPv6 is available.2016-10-25 14:27:41 3972 [Note] - ’::’ resolves to ’::’;2016-10-25 14:27:41 3972 [Note] Server socket created on IP: ’::’.2016-10-25 14:27:41 3972 [ERROR] Fatal error: Can’t open and lock privilege tables: Table ’mysql.user’ doesn’t exist
網(wǎng)上方法失敗:
D:mysql-5.6.34-winx64bin>mysql_upgrade -u root -pEnter password:Looking for ’mysql.exe’ as: D:mysql-5.6.34-winx64binmysql.exeLooking for ’mysqlcheck.exe’ as: D:mysql-5.6.34-winx64binmysqlcheck.exeError: Failed while fetching Server version! Could be due to unauthorized access.FATAL ERROR: Upgrade failed
問(wèn)題解答
回答1:你從別處拿來(lái)的 mysql 壓縮包釋放的路徑跟原來(lái)的路徑一致嗎?如果不一致,你需要配置 my.cnf/my.ini 重新設(shè)置下 datadir 為你目前的 data 目錄位置再嘗試啟動(dòng),留意下配置里是不是還有其他路徑類的配置。
補(bǔ)充,給你搜了篇 http://zhidao.baidu.com/quest... 看能幫上你不?
相關(guān)文章:
1. mysql優(yōu)化 - mysql 一張表如果不能確保字段列長(zhǎng)度一致,是不是就不需要用到char。2. python - scrapy 如何組合2個(gè)不同頁(yè)面的數(shù)據(jù),一并存儲(chǔ)3. javascript - 新浪微博網(wǎng)頁(yè)版的字?jǐn)?shù)限制是怎么做的4. javascript - 用jsonp抓取qq音樂(lè)總是說(shuō)回調(diào)函數(shù)沒(méi)有定義5. python2.7 - python 函數(shù)或者類 代碼的執(zhí)行順序6. node.js - mysql如何通過(guò)knex查詢今天和七天內(nèi)的匯總數(shù)據(jù)7. sublime可以用其他編譯器替換嗎?8. 使用python中的pandas求每個(gè)值占該列的比例9. python - 多態(tài)調(diào)用方法時(shí)卻顯示bound method...10. mysql 怎么做到update只更新一行數(shù)據(jù)?
