MySQL error “Row XXX was cut by GROUP_CONCAT()”
使用 MySQL GROUP_CONCAT時, 會出現錯誤訊息如標題.
這時就要設定MySQL的
SET group_concat_max_len=15000;
15000隨個人需求設定.
參考
http://stackoverflow.com/questions/7208773/mysql-row-30153-was-cut-by-group-concat-error
phpMyAdmin 隱藏資料庫 information_schema
單一隱藏
$cfg['Servers'][$i]['hide_db'] = 'information_schema';
多個隱藏則使用正規表達式
$cfg['Servers'][$i]['hide_db'] = '(information_schema|phpmyadmin|mysql)';
http://wiki.phpmyadmin.net/pma/Talk:Config
Apache & MySQL Connection Setting
Apache
- 檢查Apache 版本及運行腳本
httpd -v, httpd -l - 設定Apache22/extra/httpd-mpm.conf
- 找到腳本設定
StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 1000 (150改1000) MaxRequestsPerChild 2000 (0改2000) 重啟Apache
MySQL
- 找到my.cnf
- 在[mysqld]下加入 max_connections = 1000
- 重啟MySQL
參考
合理設置apache-httpd的最大連接數
PHP cURL POST IIS
使用PHP curl POST 給IIS時要把字陣列改成字串
原本
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, array('foo' => 'bar'));
改成
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, 'foo=bar');
訂閱:
文章 (Atom)