ERROR 1114(HY000)第4734行:表格已满

时间:2015-07-06 18:48:26

标签: mysql

我正在尝试导入旧的Vbulletin数据库但总是收到此错误

ERROR 1114 (HY000) at line 4734: The table 'session' is full

此数据库备份大小为2GB,我的服务器有8GB内存。我尝试将innodb_data_file_path=ibdata1:10M:autoextendinnodb_file_per_table添加到my.cnf但未解决我的问题。

我的完整my.cnf

#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
# 
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html

# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port        = 3306
socket      = /var/run/mysqld/mysqld.sock

[mysqld_safe]
socket      = /var/run/mysqld/mysqld.sock
nice        = 0

[mysqld]

user        = mysql
pid-file    = /var/run/mysqld/mysqld.pid
socket      = /var/run/mysqld/mysqld.sock
port        = 3306
basedir     = /usr
datadir     = /var/lib/mysql
tmpdir      = /tmp
lc-messages-dir = /usr/share/mysql
skip-external-locking
bind-address        = 127.0.0.1
key_buffer      = 16M
max_allowed_packet  = 16M
thread_stack        = 192K
thread_cache_size       = 8
myisam-recover         = BACKUP
#max_connections        = 100
#table_cache            = 64
#thread_concurrency     = 10

query_cache_limit   = 1M
query_cache_size        = 16M
expire_logs_days    = 10
max_binlog_size         = 100M
innodb_data_file_path=ibdata1:10M:autoextend
innodb_file_per_table


[mysqldump]
quick
quote-names
max_allowed_packet  = 16M

[mysql]

[isamchk]
key_buffer      = 16M

!includedir /etc/mysql/conf.d/

1 个答案:

答案 0 :(得分:2)

我非常熟悉Vbulletin数据库架构和表。我已经将几十个VB站点转换为Innodb storage engine

您收到该错误的原因是session表是Memory表。当您尝试恢复此备份时,session表必须已满。在导入过程中加上您的开销IO,就会填满你的RAM。但是,为了使VB正常工作,您实际上并不需要将此表作为Memory表。

为了解决此问题,您可以将session表转换为InnoDB

我会在文本编辑器中打开.sql文件(如果可能),并将ENGINE = MEMORY表的session更改为InnoDB,或使用字符串替换:< / p>

sed -i 's/MEMORY/INNODB/g' yourfilename.sql