MySQL 5.6 - windows:删除auto.cnf文件意外无法启动服务器

时间:2014-06-09 20:00:03

标签: mysql sql

我在Windows 8.1(64位)上安装了MySQL。我不小心从目录ProgramData \ MySQL \ MySQL Server 5.6 \ data

中删除了文件auto.cnf

现在,当我尝试启动服务器获取错误时

E:\Program Files\MySQL\MySQL Server 5.6\bin>mysqld --init-file=mysql-int1.txt --
console
2014-06-10 01:12:59 0 [Warning] TIMESTAMP with implicit DEFAULT value is depreca
ted. Please use --explicit_defaults_for_timestamp server option (see documentati
on for more details).
2014-06-10 01:12:59 5004 [Note] Plugin 'FEDERATED' is disabled.
2014-06-10 01:12:59 5004 [Note] InnoDB: Using atomics to ref count buffer pool p
ages
2014-06-10 01:12:59 5004 [Note] InnoDB: The InnoDB memory heap is disabled
2014-06-10 01:12:59 5004 [Note] InnoDB: Mutexes and rw_locks use Windows interlo
cked functions
2014-06-10 01:12:59 5004 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-06-10 01:12:59 5004 [Note] InnoDB: Not using CPU crc32 instructions
2014-06-10 01:12:59 5004 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2014-06-10 01:12:59 5004 [Note] InnoDB: Completed initialization of buffer pool
2014-06-10 01:12:59 5004 [Note] InnoDB: Highest supported file format is Barracu
da.
2014-06-10 01:13:00 5004 [Note] InnoDB: 128 rollback segment(s) are active.
2014-06-10 01:13:00 5004 [Note] InnoDB: Waiting for purge to start
2014-06-10 01:13:00 5004 [Note] InnoDB: 5.6.17 started; log sequence number 1626
017
error: Found option without preceding group in config file: .\auto.cnf at line:
1
Fatal error in defaults handling. Program aborted
2014-06-10 01:13:00 5004 [ERROR] Initialzation of the server's UUID failed becau
se it could not be read from the auto.cnf file. If this is a new server, the ini
tialization failed because it was not possible to generate a new UUID.
2014-06-10 01:13:00 5004 [ERROR] Aborting**

请建议我如何恢复

1 个答案:

答案 0 :(得分:-1)

我们知道auto.cnf存储服务器uuid。

auto.cnf文件在服务器启动时自动生成,这可能有助于解决您的问题。