蝸牛的JAVA外殼

          ┎Running Snail┒ ┖ -------------- ┚

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            13 Posts :: 0 Stories :: 10 Comments :: 0 Trackbacks

          今天發現執行mysql的 REPLACE INTO 的時候mysql返回 #1114 - The table ‘xxxx’ is full
          這個錯誤。。。
          以前沒有遇到過,于是查找資料解決這個問題。。。

          得知是由于內存表的大小超過了規定的范圍,于是搜索解決方法,
          網上提到的有兩種解決方法,
          一種是修改tmp_table_size參數,另外一種是修改max_heap_table_size參數。。。

          [root@localhost etc]# vi /etc/rc.d/init.d/mysql
          找到
          $bindir/mysqld_safe --datadir=$datadir --pid-file=$pid_file >/dev/null 2>&1 &
          修改為
          $bindir/mysqld_safe --datadir=$datadir --pid-file=$pid_file -O tmp_table_size=64M -O max_heap_table_size=32M >/dev/null 2>&1 &

          重啟mysql
          [root@localhost etc]# /usr/bin/mysqladmin -u root -p shutdown
          Enter password:
          [root@localhost etc]# /etc/init.d/mysql start
          [root@localhost etc]# mysql

          查看是否己修改

          mysql> show variables like '%max_heap_table_size%';
          +---------------------+----------+
          | Variable_name       | Value    |
          +---------------------+----------+
          | max_heap_table_size | 33553408 |
          +---------------------+----------+
          1 row in set (0.00 sec)

          mysql> show variables like '%tmp_table_size%';
          +----------------+----------+
          | Variable_name  | Value    |
          +----------------+----------+
          | tmp_table_size | 67108864 |
          +----------------+----------+
          1 row in set (0.00 sec)

          己經修改成功!
          注意:修改參數值是按照M單位來計算的。。。
          posted on 2007-12-05 12:00 會跑的蝸牛 閱讀(1392) 評論(0)  編輯  收藏 所屬分類: Linux

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 额敏县| 西峡县| 涟水县| 英山县| 库尔勒市| 沅陵县| 榆林市| 乾安县| 江山市| 大兴区| 兴隆县| 嫩江县| 北安市| 滨海县| 天门市| 北京市| 邻水| 青岛市| 鲜城| 罗平县| 寻乌县| 澳门| 壶关县| 南通市| 通辽市| 得荣县| 静乐县| 霍山县| 拉萨市| 九江市| 会理县| 库尔勒市| 惠州市| 临桂县| 科技| 武川县| 厦门市| 金乡县| 新蔡县| 孟州市| 漳浦县|