mysql> alter table sbtest1 drop column cityname2;
ERROR 1114 (HY000): The table 'sbtest1' is full
mysql>
Error reported while doing sysbench stress test.
Reason.
It is known that the size of the memory table exceeds the specified range. After reviewing the default value of both is 16M.
Need to set tmp_table_size greater than or equal tomax_heap_table_size。
mysql> show variables like '%table_size%';
+---------------------+----------+
| Variable_name | Value |
+---------------------+----------+
| max_heap_table_size | 16777216 |
| tmp_table_size | 16777216 |
+---------------------+----------+
2 rows in set (0.00 sec)
Neither of them support dynamic modification, and the modification will not take effect.
[mysqld]
max_heap_table_size =32M
tmp_table_size =64M
# /etc/init.d/mysql restart
Shutting down MySQL.. SUCCESS!
Starting MySQL.. SUCCESS!
mysql> show variables like '%table_size%';
+---------------------+----------+
| Variable_name | Value |
+---------------------+----------+
| max_heap_table_size | 33554432 |
| tmp_table_size | 67108864 |
+---------------------+----------+
2 rows in set (0.01 sec)
You can see the modified parameters take effect after the reboot.
Then just perform the operation to delete the field.
Read More:
- (Fixed) workbench MySQL Error Code: 2013. Lost connection to MySQL server during query
- [Solved] ERROR 2002 (HY000): Can’t connect to local MySQL server through socket’/var/lib/mysql/mysql.sock’ (2)
- ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’
- [Solved] CentOS installs MySQL and starts MySQL with error 2002 (HY000)
- MYSQL Enter password:ERROR 2003 (HY000): Can‘t connect to MySQL server on ‘localhost:3306‘
- Mysql8.02/ubuntu 20 ERROR 1449 (HY000) [How to Solve]
- How to Fix MySQL ERROR 1130 (HY000): Host ‘XXXX’ is not allowed to connect to this MySQL server
- Ubuntu ERROR 2003 (HY000): Can’t connect to MySQL server on ‘127.0.0.1’ (111)
- Error 1406 (22001) in MySQL: data too long for column (Fixed)
- mysql ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executin
- MySQL Error: errorCode 1130, state HY000 [How to Solve]
- [Solved] MYSQL Start Project Error: this is incompatible with sql_mode=only_full_group_by
- [Solved] MySQL Error: ERROR 1055 (42000)sql_mode=only_full_group_by
- MySQL Build table error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL ser
- [Solved] MYSQL 5.7 gruop by eRROR: this is incompatible with sql_mode=only_full_group_by
- linux mysql ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
- MYSQL gruop by Error: this is incompatible with sql_mode=only_full_group_by
- ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’
- How to Fix MySQL error 1005: can’t create table (errno: 150)
- MySQL | ERROR : Every derived table must have its own alias [Solved]