Mysql修改InnoDB为Memory表时出错:The table is full mysql 1114

Mysql修改InnoDB为Memory表时出错:The table is full mysql 1114


在将Mysql的InnoDB引擎修改为Mermory引擎时出错:

The table is full mysql 1114

解决办法1:
vi /etc/rc.d/init.d/mysqld    (大概在327行)
找到
$bindir/mysqld_safe �Cdatadir=$datadir �Cpid-file=$pid_file >/dev/null 2>&1 &
修改为
$bindir/mysqld_safe �Cdatadir=$datadir �Cpid-file=$pid_file -O tmp_table_size=1024M -O max_heap_table_size=1024M >/dev/null 2>&1 &

----

解决办法2:
   修改Mysql的配置文件/etc/my.cnf,在[mysqld]下添加/修改两行:
   tmp_table_size=1G
   max_heap_table_size = 1G

-
重启mysql
service mysqld restart


你可能感兴趣的:(mysql[1114])