2016-08-26 133 views
1

我甚至沒有接近服務器專家 - 使用XAMPP安裝phpmyadmin/mysql,並且一切都運行良好,直到幾周前。當這些錯誤開始發生時,通過加倍一些內存參數(緩衝區大小等),但是現在這些問題再次出現,能夠在這個問題上放置一個bandaid。除了MySQL之外,這臺機器上沒有別的東西在運行,所以不知道我們如何運行內存不足。我願意嘗試任何事情 - 沒有找到關於如何使用'ulimit'的非常明確的說明 - 來自任何有經驗的MySQL服務器管理員的任何建議可能會導致此問題,以及我可以嘗試解決的問題?MySQL - 內存不足

2016-08-24 12:26:48 2456 [ERROR] C:\xampp\mysql\bin\mysqld.exe: Out of memory (Needed 767416 bytes) 
2016-08-24 12:26:48 2456 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use 'ulimit' to allow mysqld to use more memory or you can add more swap space 
2016-08-24 12:26:48 2456 [ERROR] Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use 'ulimit' to allow mysqld to use more memory or you can add more swap space 
2016-08-24 13:41:33 6188 [Note] Plugin 'FEDERATED' is disabled. 
2016-08-24 13:41:33 16d0 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator. 
+0

這裏有一些建議 - 包括減少緩衝區大小而不是增加。 http://dba.stackexchange.com/questions/1927/why-does-mysql-say-im-out-of-memory – PaulF

+0

感謝您的建議!將開始嘗試它們! – sqlnewb

回答

1

http://mysql.rjweb.org/doc.php/memory

我所有的答案都在那裏。再次 - 我不是服務器管理員,但基本上我的設置在my.ini文件中都是錯誤的。我的innodb_buffer_pool_size太低了,我的key_buffer_size太高了。我猜測原始設置足以讓我們購買數據庫,但隨着表/視圖/線程的增加,性能受到影響。