最近我在我的 mysql 配置中更改了一些设置。我做了以下操作: - 停止 mysql - 保存更改的设置 - 删除所有 ibdata 和 ib_logfiles - 启动 mysql
通常这工作正常,但最近,每次我这样做时,我所有的 InnoDB 表都会被破坏。我究竟做错了什么?
我的设置:
# The MySQL server
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
key_buffer = 16K
max_allowed_packet = 1M
table_cache = 4
thread_cache = 16
sort_buffer_size = 64K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 64K
#skip-networking
server-id = 1
# Uncomment the following if you want to log updates
#log-bin=mysql-bin
# Uncomment the following if you are …
Run Code Online (Sandbox Code Playgroud)