中午安装了泽众的TC测试软件之后,电脑上本来安装的mysql忽然启动不了了,查看了错误日志才发现是my.ini文件被修改的缘故。
错误日志如下:
141229 21:25:29 InnoDB: Waiting for the background threads to start
141229 21:25:30 InnoDB: 1.1.8 started; log sequence number 1595675
141229 21:25:30 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
141229 21:25:30 [Note] - '0.0.0.0' resolves to '0.0.0.0';
141229 21:25:30 [Note] Server socket created on IP: '0.0.0.0'.
141229 21:25:30 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
141229 21:32:12 [Note] Plugin 'FEDERATED' is disabled.
141229 21:32:12 InnoDB: The InnoDB memory heap is disabled
141229 21:32:12 InnoDB: Mutexes and rw_locks use Windows interlocked functions
141229 21:32:12 InnoDB: Compressed tables use zlib 1.2.3
141229 21:32:12 InnoDB: Initializing buffer pool, size = 43.0M
141229 21:32:12 InnoDB: Completed initialization of buffer pool
141229 21:32:13 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
141229 21:32:13 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
在网上搜索之后才找到解决办法,解决办法如下:
打开mysql\bin\my.ini,查找[mysqld],在[mysqld]下面添加一行文字, skip-grant-tables 即: [mysqld] skip-grant-tables至此我的mysql无法启动问题就解决了!