下载安装mysql5.6.17,按照
/article/
中所示的步骤执行,在运行net start mysql 一直报异常如下:
系统发生 1067 错误。
进程意外终止。
查看错误日志如下:
2014-05-04 15:00:53 11452 [Note] Plugin 'FEDERATED' is disabled.
MySQL: Table '' doesn't exist2014-05-04 15:00:53 11452 [ERROR] Can't open the table. Please run mysql_upgrade to create it.
2014-05-04 15:00:53 11452 [Note] InnoDB: Using atomics to ref count buffer pool pages
2014-05-04 15:00:53 11452 [Note] InnoDB: The InnoDB memory heap is disabled
2014-05-04 15:00:53 11452 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2014-05-04 15:00:53 11452 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-05-04 15:00:53 11452 [Note] InnoDB: Not using CPU crc32 instructions
2014-05-04 15:00:53 11452 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2014-05-04 15:00:53 11452 [Note] InnoDB: Completed initialization of buffer pool
2014-05-04 15:00:53 11452 [Note] InnoDB: The first specified data file .\ibdata1 did not exist: a new database to be created!
2014-05-04 15:00:53 11452 [Note] InnoDB: Setting file .\ibdata1 size to 12 MB
2014-05-04 15:00:53 11452 [Note] InnoDB: Database physically writes the file full: wait...
2014-05-04 15:00:54 11452 [Note] InnoDB: Setting log file .\ib_logfile101 size to 48 MB
2014-05-04 15:00:54 11452 [Note] InnoDB: Setting log file .\ib_logfile1 size to 48 MB
2014-05-04 15:00:55 11452 [Note] InnoDB: Renaming log file .\ib_logfile101 to .\ib_logfile0
2014-05-04 15:00:55 11452 [Warning] InnoDB: New log files created, LSN=45781
2014-05-04 15:00:55 11452 [Note] InnoDB: Doublewrite buffer not found: creating new
2014-05-04 15:00:55 11452 [Note] InnoDB: Doublewrite buffer created
2014-05-04 15:00:55 11452 [Note] InnoDB: 128 rollback segment(s) are active.
2014-05-04 15:00:56 11452 [Warning] InnoDB: Creating foreign key constraint system tables.
2014-05-04 15:00:56 11452 [Note] InnoDB: Foreign key constraint system tables created
2014-05-04 15:00:56 11452 [Note] InnoDB: Creating tablespace and datafile system tables.
2014-05-04 15:00:56 11452 [Note] InnoDB: Tablespace and datafile system tables created.
2014-05-04 15:00:56 11452 [Note] InnoDB: Waiting for purge to start
2014-05-04 15:00:57 11452 [Note] InnoDB: 5.6.17 started; log sequence number 0
2014-05-04 15:00:57 11452 [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: d7621764-d359-11e3-a50b-b888e38c7530.
2014-05-04 15:00:57 11452 [Note] Server hostname (bind-address): '*'; port: 3306
2014-05-04 15:00:57 11452 [Note] IPv6 is available.
2014-05-04 15:00:57 11452 [Note] - '::' resolves to '::';
2014-05-04 15:00:57 11452 [Note] Server socket created on IP: '::'.
2014-05-04 15:00:57 11452 [ERROR] Fatal error: Can't open and lock privilege tables: Table '' doesn't exist
这是因为文件中的datadir是自定义的路径,数据库没有初始化,所以将mysql5.6.17安装路径中的data文件中的所有文件拷贝一份到datadir设置的路径下。ok,问题解决。