Сообщения

Сообщения за июль, 2012

Ошибка 413: Request Entity Too Large

Ошибка возникает если вы пытаетесь загрузить на сервер файл php скриптом. Это ограничение в версии Apache 2.2 устанавливается в файле apache2.conf параметром secrequestbodylimit значение устанавливается в байтах. Установите максимальный размер для аплоада.

Копирование элементов из одной базы данных в другую с похожими строками

INSERT INTO `db` . `table_to` SELECT * FROM `db` . `table_from` ; Если необходимо скопировать только некоторые столбцы, то применяем следующую конструкцию: INSERT INTO `db` . `table_to` ( `t1_2` , `t2_2` , `t3_2` , `t4_2` ) SELECT `t1` , `t2` , `t3` , `t4` FROM `db` . `table_from` ; Для копирования данных из одной таблицы MySQL в другую по условию, можно использовать следующий запрос: INSERT INTO `db` . `table_to` ( `t1_2` , `t2_2` , `t3_2` , `t4_2` ) SELECT `t1` , `t2` , `t3` , `t4` FROM `db` . `table_from` WHERE   `t2` < '2010-07-01 11:37:38' ;

Интересное письмо от hetzner.de

During the night of 30.06.2012 to 01.07.2012 our internal monitoring systems registered an increase in the level of IT power usage by approximately one megawatt. The reason for this huge surge is the additional switched leap second which can lead to permanent CPU load on Linux servers. According to heise.de , various Linux distributions are affected by this. Further information can be found at: http://www.h-online.com/open/ news/item/Leap-second-Linux- can-freeze-1629805.html In order to reduce CPU load to a normal level again, a restart of the whole system is necessary in many cases. First, a soft reboot via the command line should be attempted. Failing that, you have the option of performing a hardware reset via the Robot administration interface. For this, select menu item "Server" and the "Reset" tab for the respective server in the administration interface. Please do not hesitate to contact us, should you have any queries. В этом пись