* [Comm] autostart MySQL @ 2005-01-17 9:54 Aleksander N. Gorohovski 2005-01-17 10:56 ` [Comm] " Michael Shigorin 0 siblings, 1 reply; 28+ messages in thread From: Aleksander N. Gorohovski @ 2005-01-17 9:54 UTC (permalink / raw) To: community Доброго времени суток сообщество! Как по-граммотному настроить автозагрузку mysql (без ручного запуска safe_mysqld) при старте системы? Манипуляции # chkconfig --level 345 mysqld on или # ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc3.d/S14mysqld не помогают :-( Система Master2.4. Спасибо. ^ permalink raw reply [flat|nested] 28+ messages in thread
* [Comm] Re: autostart MySQL 2005-01-17 9:54 [Comm] autostart MySQL Aleksander N. Gorohovski @ 2005-01-17 10:56 ` Michael Shigorin 2005-01-17 10:55 ` Aleksander N. Gorohovski 2005-01-17 11:09 ` Andrew Pleskach 0 siblings, 2 replies; 28+ messages in thread From: Michael Shigorin @ 2005-01-17 10:56 UTC (permalink / raw) To: community On Mon, Jan 17, 2005 at 12:54:35PM +0300, Aleksander N. Gorohovski wrote: > Как по-граммотному настроить автозагрузку mysql (без ручного > запуска safe_mysqld) при старте системы? Вот так: > Манипуляции > # chkconfig --level 345 mysqld on А это уже мелкая кувалдометрия, к тому же зачем так рано?: > или > # ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc3.d/S14mysqld > не помогают :-( > Система Master2.4. Вот про "не помогают" -- давайте подробнее. У меня-то работает. -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] Re: autostart MySQL 2005-01-17 10:56 ` [Comm] " Michael Shigorin @ 2005-01-17 10:55 ` Aleksander N. Gorohovski 2005-01-17 11:50 ` Michael Shigorin ` (2 more replies) 2005-01-17 11:09 ` Andrew Pleskach 1 sibling, 3 replies; 28+ messages in thread From: Aleksander N. Gorohovski @ 2005-01-17 10:55 UTC (permalink / raw) To: community On Mon, 17 Jan 2005 12:56:12 +0200, Michael Shigorin <mike@osdn.org.ua> wrote: > On Mon, Jan 17, 2005 at 12:54:35PM +0300, Aleksander N. Gorohovski wrote: >> Как по-граммотному настроить автозагрузку mysql (без ручного >> запуска safe_mysqld) при старте системы? > > Вот так: > >> Манипуляции >> # chkconfig --level 345 mysqld on > > А это уже мелкая кувалдометрия, к тому же зачем так рано?: > >> или >> # ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc3.d/S14mysqld >> не помогают :-( >> Система Master2.4. > > Вот про "не помогают" -- давайте подробнее. У меня-то работает. > Хорошо, Миша. Подробнее дело обстоит так: Сделал # chkconfig --level 345 mysqld on Затем: # service mysqld start | reload mysqld что-то выдал FAILED попробовал перезагрузил систему. Далее # mysql -u root -p Ругается: ERROR 2002: Can't connect to local MySQL server throught socket 'var/lib/mysql/mysql.sock (2) Спускаю "демона" вручную с поводка: # safe_mysqld После чего нормально могу рабоать: # mysql -u root -p После перезагрузки все опять повторяется. ^ permalink raw reply [flat|nested] 28+ messages in thread
* [Comm] Re: autostart MySQL 2005-01-17 10:55 ` Aleksander N. Gorohovski @ 2005-01-17 11:50 ` Michael Shigorin 2005-01-17 15:49 ` Re[2]: " Alexey S. Kuznetsov 2005-01-17 22:13 ` Eugene Ostapets 2 siblings, 0 replies; 28+ messages in thread From: Michael Shigorin @ 2005-01-17 11:50 UTC (permalink / raw) To: community On Mon, Jan 17, 2005 at 01:55:38PM +0300, Aleksander N. Gorohovski wrote: > Хорошо, Миша. > Подробнее дело обстоит так: > Сделал > # chkconfig --level 345 mysqld on > > Затем: > # service mysqld start | reload > mysqld что-то выдал FAILED Вот здесь и надо выяснить, где грабли. Глядя в инитскрипт, логи (впрочем, когда сталкивался -- в messages ничего толком не было, разве в /var/log/mysql/info). > попробовал перезагрузил систему. Далее > # mysql -u root -p > Ругается: > ERROR 2002: Can't connect to local MySQL server throught socket > 'var/lib/mysql/mysql.sock (2) > > Спускаю "демона" вручную с поводка: > # safe_mysqld > > После чего нормально могу рабоать: > # mysql -u root -p В конце концов -- strace -ff service mysqld start (есть подозрение, что грабли -- с правами в /var/lib/mysql или конфигом) > После перезагрузки все опять повторяется. Ну это как раз понятно. -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re[2]: [Comm] Re: autostart MySQL 2005-01-17 10:55 ` Aleksander N. Gorohovski 2005-01-17 11:50 ` Michael Shigorin @ 2005-01-17 15:49 ` Alexey S. Kuznetsov 2005-01-17 22:13 ` Eugene Ostapets 2 siblings, 0 replies; 28+ messages in thread From: Alexey S. Kuznetsov @ 2005-01-17 15:49 UTC (permalink / raw) To: Aleksander N. Gorohovski Hello Aleksander, Monday, January 17, 2005, 12:55:38 PM, you wrote: > On Mon, 17 Jan 2005 12:56:12 +0200, Michael Shigorin <mike@osdn.org.ua> > wrote: >> On Mon, Jan 17, 2005 at 12:54:35PM +0300, Aleksander N. Gorohovski wrote: >>> Как по-граммотному настроить автозагрузку mysql (без ручного >>> запуска safe_mysqld) при старте системы? >> >> Вот так: >> >>> Манипуляции >>> # chkconfig --level 345 mysqld on >> >> А это уже мелкая кувалдометрия, к тому же зачем так рано?: >> >>> или >>> # ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc3.d/S14mysqld >>> не помогают :-( >>> Система Master2.4. >> >> Вот про "не помогают" -- давайте подробнее. У меня-то работает. >> > Хорошо, Миша. > Подробнее дело обстоит так: > Сделал > # chkconfig --level 345 mysqld on > Затем: > # service mysqld start | reload > mysqld что-то выдал FAILED Он не может зачрутиться -- Best regards, Alexey S. Kuznetsov mailto:buster@vostok.net.ua ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] Re: autostart MySQL 2005-01-17 10:55 ` Aleksander N. Gorohovski 2005-01-17 11:50 ` Michael Shigorin 2005-01-17 15:49 ` Re[2]: " Alexey S. Kuznetsov @ 2005-01-17 22:13 ` Eugene Ostapets 2005-01-17 22:55 ` Konstantin A. Lepikhov 2 siblings, 1 reply; 28+ messages in thread From: Eugene Ostapets @ 2005-01-17 22:13 UTC (permalink / raw) To: community -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Aleksander N. Gorohovski wrote: | On Mon, 17 Jan 2005 12:56:12 +0200, Michael Shigorin <mike@osdn.org.ua> | wrote: | | # service mysqld start | reload | mysqld что-то выдал FAILED Я рискую нарваться на град камней, но скажу: я четыре раза нарывался на дистрибутивах Альта на один глюк связаный с MySQL - проблема каждый раз была связана с невозможностью инициализациии innodb. Лечилось это удалением "битых" баз innodb в /usr/lib/mysql и перезапуском service mysqld... Пользователи так и не смогли толком объяснить как они добились такого эфекта... Как обычно времени на подробное разбирательство не было... От греха подальше я на сервера ставлю пересобранный пакет MySQL с - --without-innodb... - -- С уважением, Евгений Остапец -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFB7Dhtby6E0604xfQRAmG/AJ0T1fvYuUKgl+vCIEZF1tY2g/8tSACfXflK 6MK3ojnYOC/HfN+KXC4Hb40= =8Esg -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 28+ messages in thread
* [Comm] Re: autostart MySQL 2005-01-17 22:13 ` Eugene Ostapets @ 2005-01-17 22:55 ` Konstantin A. Lepikhov 2005-01-18 7:13 ` Aleksander N. Gorohovski 2005-01-18 11:26 ` Michael Shigorin 0 siblings, 2 replies; 28+ messages in thread From: Konstantin A. Lepikhov @ 2005-01-17 22:55 UTC (permalink / raw) To: community [-- Attachment #1: Type: text/plain, Size: 922 bytes --] Hi Eugene! Tuesday 18, at 12:13:03 AM you wrote: > Aleksander N. Gorohovski wrote: > | On Mon, 17 Jan 2005 12:56:12 +0200, Michael Shigorin <mike@osdn.org.ua> > | wrote: > | > > | # service mysqld start | reload > | mysqld что-то выдал FAILED > > Я рискую нарваться на град камней, но скажу: я четыре раза нарывался на > дистрибутивах Альта на один глюк связаный с MySQL - проблема каждый раз > была связана с невозможностью инициализациии innodb. Лечилось это > удалением "битых" баз innodb в /usr/lib/mysql и перезапуском service > mysqld... Да не, сейчас все работает. Вот то, что reload не отрабатывает, плохо (в TSL вообще есть только start/stop :) -- WBR, Konstantin chat with ==>ICQ: 109916175 Lepikhov, speak to ==>JID: lakostis@jabber.org aka L.A. Kostis write to ==>mailto:lakostis@pisem.net.nospam ...The information is like the bank... (c) EC8OR [-- Attachment #2: smime.p7s --] [-- Type: application/x-pkcs7-signature, Size: 1377 bytes --] ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] Re: autostart MySQL 2005-01-17 22:55 ` Konstantin A. Lepikhov @ 2005-01-18 7:13 ` Aleksander N. Gorohovski 2005-01-18 8:31 ` Eugene Ostapets 2005-01-18 11:26 ` Michael Shigorin 1 sibling, 1 reply; 28+ messages in thread From: Aleksander N. Gorohovski @ 2005-01-18 7:13 UTC (permalink / raw) To: community On Tue, 18 Jan 2005 01:55:38 +0300, Konstantin A. Lepikhov <lakostis@anti-leasure.ru> wrote: > Hi Eugene! > > Tuesday 18, at 12:13:03 AM you wrote: > >> Aleksander N. Gorohovski wrote: >> | On Mon, 17 Jan 2005 12:56:12 +0200, Michael Shigorin >> <mike@osdn.org.ua> >> | wrote: >> | >> >> | # service mysqld start | reload >> | mysqld что-то выдал FAILED >> >> Я рискую нарваться на град камней, но скажу: я четыре раза нарывался на >> дистрибутивах Альта на один глюк связаный с MySQL - проблема каждый раз >> была связана с невозможностью инициализациии innodb. Лечилось это >> удалением "битых" баз innodb в /usr/lib/mysql и перезапуском service А что именно надо удалить? Странно еще то, что, например в пакете MySQL-server есть файлик /etc/my.cnf а при установке пакета, в системе его не обнаруживаю. Не знаю может так и надо? Правда опробовал его воссоздать - все равно ни какого эффекта. >> mysqld... > Да не, сейчас все работает. Вот то, что reload не отрабатывает, > плохо (в TSL вообще есть только start/stop :) Неважно, на start все равно пишет: Adjusting environment for mysqld [FAILED] т.е. "Не может настроить окружение" :-( Есть подозрение (и в рассылке подсказывали) что это связано с особеностью ALT chroot. Пробовал уже делать из /etc/chroot.d # mysqld.conf и # update_chrooted mysqld Нулевой эффект. :-( Что еще можно предпринять. ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] Re: autostart MySQL 2005-01-18 7:13 ` Aleksander N. Gorohovski @ 2005-01-18 8:31 ` Eugene Ostapets 2005-01-18 7:51 ` Aleksander N. Gorohovski 0 siblings, 1 reply; 28+ messages in thread From: Eugene Ostapets @ 2005-01-18 8:31 UTC (permalink / raw) To: community -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Aleksander N. Gorohovski wrote: | On Tue, 18 Jan 2005 01:55:38 +0300, Konstantin A. Lepikhov | <lakostis@anti-leasure.ru> wrote: | |> Hi Eugene! |> |> Tuesday 18, at 12:13:03 AM you wrote: |> | | А что именно надо удалить? Точно не помню, но где-то в /var/lib/mysql или подкаталогах появляются файлы, которы по названию однозначно идентифицируються как базы innodb. | Странно еще то, что, например в пакете MySQL-server есть файлик | /etc/my.cnf А что это за пакет такой??? Со времен М2.2 конфиг живет в /var/lib/mysql/my.cnf | а при установке пакета, в системе его не обнаруживаю. find / -name my.cnf с Вами согласен? | Не знаю может так и надо? | Правда опробовал его воссоздать - все равно ни какого эффекта. | |>> mysqld... |> |> Да не, сейчас все работает. Вот то, что reload не отрабатывает, |> плохо (в TSL вообще есть только start/stop :) | | | Неважно, на start все равно пишет: | Adjusting environment for mysqld [FAILED] | т.е. "Не может настроить окружение" | :-( | | Есть подозрение (и в рассылке подсказывали) что это связано | с особеностью ALT chroot. | | Пробовал уже делать из /etc/chroot.d | # mysqld.conf | и | # update_chrooted mysqld | | Нулевой эффект. | :-( | Что еще можно предпринять. Нужно попробовать в?полнить по шагам все действия из /etc/init.d/mysqld раздела start, после каждого действия выполнять echo $?, если вернеться не 0 - то на этом шаге и происходит ошибка. - -- С уважением, Евгений Остапец -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFB7Mlnby6E0604xfQRAp5QAKCw4PzK4zxqlLTKnRyl3/3W4BlNLwCeK4Ty UVK9264LdBMchjc6cFU0+pU= =8xLa -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] Re: autostart MySQL 2005-01-18 8:31 ` Eugene Ostapets @ 2005-01-18 7:51 ` Aleksander N. Gorohovski 0 siblings, 0 replies; 28+ messages in thread From: Aleksander N. Gorohovski @ 2005-01-18 7:51 UTC (permalink / raw) To: community On Tue, 18 Jan 2005 10:31:36 +0200, Eugene Ostapets <eugene@unisoft.com.ua> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Aleksander N. Gorohovski wrote: > | On Tue, 18 Jan 2005 01:55:38 +0300, Konstantin A. Lepikhov > | <lakostis@anti-leasure.ru> wrote: > | > |> Hi Eugene! > |> > |> Tuesday 18, at 12:13:03 AM you wrote: > |> > | > | А что именно надо удалить? > Точно не помню, но где-то в /var/lib/mysql или подкаталогах появляются > файлы, которы по названию однозначно идентифицируються как базы innodb. > | Странно еще то, что, например в пакете MySQL-server есть файлик > | /etc/my.cnf > А что это за пакет такой??? Со времен М2.2 конфиг живет в > /var/lib/mysql/my.cnf > | а при установке пакета, в системе его не обнаруживаю. > find / -name my.cnf с Вами согласен? > | Не знаю может так и надо? > | Правда опробовал его воссоздать - все равно ни какого эффекта. > | > |>> mysqld... > |> > |> Да не, сейчас все работает. Вот то, что reload не отрабатывает, > |> плохо (в TSL вообще есть только start/stop :) > | > | > | Неважно, на start все равно пишет: > | Adjusting environment for mysqld [FAILED] > | т.е. "Не может настроить окружение" > | :-( > | > | Есть подозрение (и в рассылке подсказывали) что это связано > | с особеностью ALT chroot. > | > | Пробовал уже делать из /etc/chroot.d > | # mysqld.conf > | и > | # update_chrooted mysqld > | > | Нулевой эффект. > | :-( > | Что еще можно предпринять. > Нужно попробовать в?полнить по шагам все действия из /etc/init.d/mysqld > раздела start, после каждого действия выполнять echo $?, если вернеться > не 0 - то на этом шаге и происходит ошибка. Премного благодарен. Буду рыть дальше. :-) ^ permalink raw reply [flat|nested] 28+ messages in thread
* [Comm] Re: autostart MySQL 2005-01-17 22:55 ` Konstantin A. Lepikhov 2005-01-18 7:13 ` Aleksander N. Gorohovski @ 2005-01-18 11:26 ` Michael Shigorin 2005-01-18 19:52 ` Eugene Ostapets 1 sibling, 1 reply; 28+ messages in thread From: Michael Shigorin @ 2005-01-18 11:26 UTC (permalink / raw) To: community On Tue, Jan 18, 2005 at 01:55:38AM +0300, Konstantin A. Lepikhov wrote: > > Я рискую нарваться на град камней, но скажу: я четыре раза А хоть один баг висит? Егорушка подумывал заняться 4.1. > > нарывался на дистрибутивах Альта на один глюк связаный с > > MySQL - проблема каждый раз была связана с невозможностью > > инициализациии innodb. Лечилось это удалением "битых" баз > > innodb в /usr/lib/mysql и перезапуском service mysqld... /var/lib/mysql/db, конечно. > Да не, сейчас все работает. Вот то, что reload не отрабатывает, > плохо (в TSL вообще есть только start/stop :) Навесь. -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] Re: autostart MySQL 2005-01-18 11:26 ` Michael Shigorin @ 2005-01-18 19:52 ` Eugene Ostapets 2005-01-19 7:43 ` Michael Shigorin 0 siblings, 1 reply; 28+ messages in thread From: Eugene Ostapets @ 2005-01-18 19:52 UTC (permalink / raw) To: community -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Michael Shigorin wrote: | On Tue, Jan 18, 2005 at 01:55:38AM +0300, Konstantin A. Lepikhov wrote: | |>>Я рискую нарваться на град камней, но скажу: я четыре раза | | | А хоть один баг висит? Егорушка подумывал заняться 4.1. | | А на что вешать? На подземный стук? Если бы я знал способ добиться повторяемости - повесил бы... |>>нарывался на дистрибутивах Альта на один глюк связаный с |>>MySQL - проблема каждый раз была связана с невозможностью |>>инициализациии innodb. Лечилось это удалением "битых" баз |>>innodb в /usr/lib/mysql и перезапуском service mysqld... | | | /var/lib/mysql/db, конечно. Нет, в том то и дело /var/lib/mysql, а не в db... - -- С уважением, Евгений Остапец -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFB7Wj2by6E0604xfQRAryJAJ9uJH5htlJPEllS3/WuuUBOAl1laQCeKb30 MqmqicGZ+UkPhmQEuTigEBQ= =PQgX -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 28+ messages in thread
* [Comm] Re: autostart MySQL 2005-01-18 19:52 ` Eugene Ostapets @ 2005-01-19 7:43 ` Michael Shigorin 2005-01-19 7:39 ` Aleksander N. Gorohovski 0 siblings, 1 reply; 28+ messages in thread From: Michael Shigorin @ 2005-01-19 7:43 UTC (permalink / raw) To: community On Tue, Jan 18, 2005 at 09:52:23PM +0200, Eugene Ostapets wrote: > |>>Я рискую нарваться на град камней, но скажу: я четыре раза > | А хоть один баг висит? Егорушка подумывал заняться 4.1. > А на что вешать? На подземный стук? Если бы я знал способ > добиться повторяемости - повесил бы... На MySQL-server. > |>>нарывался на дистрибутивах Альта на один глюк связаный с > |>>MySQL - проблема каждый раз была связана с невозможностью > |>>инициализациии innodb. Лечилось это удалением "битых" баз > |>>innodb в /usr/lib/mysql и перезапуском service mysqld... > | /var/lib/mysql/db, конечно. > Нет, в том то и дело /var/lib/mysql, а не в db... Ну всяко не /usr. :) Хотя странно -- что они там-то забыли. -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] Re: autostart MySQL 2005-01-19 7:43 ` Michael Shigorin @ 2005-01-19 7:39 ` Aleksander N. Gorohovski 2005-01-19 8:30 ` Michael Shigorin 0 siblings, 1 reply; 28+ messages in thread From: Aleksander N. Gorohovski @ 2005-01-19 7:39 UTC (permalink / raw) To: community On Wed, 19 Jan 2005 09:43:36 +0200, Michael Shigorin <mike@osdn.org.ua> wrote: > On Tue, Jan 18, 2005 at 09:52:23PM +0200, Eugene Ostapets wrote: >> |>>Я рискую нарваться на град камней, но скажу: я четыре раза >> | А хоть один баг висит? Егорушка подумывал заняться 4.1. >> А на что вешать? На подземный стук? Если бы я знал способ >> добиться повторяемости - повесил бы... > > На MySQL-server. > >> |>>нарывался на дистрибутивах Альта на один глюк связаный с >> |>>MySQL - проблема каждый раз была связана с невозможностью >> |>>инициализациии innodb. Лечилось это удалением "битых" баз >> |>>innodb в /usr/lib/mysql и перезапуском service mysqld... >> | /var/lib/mysql/db, конечно. >> Нет, в том то и дело /var/lib/mysql, а не в db... > > Ну всяко не /usr. :) Хотя странно -- что они там-то забыли. Докладываю результаты своих исследований по MySQL: C помощью вставки в сценарии (спасибо Eugene Ostapets <eugene@unisoft.com.ua> надоумел) echo $? удалось выявить источник появления сообщения ( при # service mysqld start): "Adjusting environment for mysqld [FAILED]" Как и предполагал это связано с использованием ALT chroot. В самом сценарии /etc/rc.d/init.d/mysqld есть вызов другого сценария /etc/chroot.d/mysql.all, в котором вызывается еще два сценария. Появление вышеприведенного сообщения и как следствие невозможность автозагрузки mysqld происходит во втором сценарии /etc/chroot.d/mysql.conf , в котором в цикле вызывается функция копирования Copy (сама функция находится в /etc/chroot.d/functions). Вот фрагмент из этого сценария (/etc/chroot.d/mysql.conf ): -------------------------------------------- ... for f in localtime hosts services {host, nsswitch,resolv}.conf; do Copy -m644 $force "/etc/$f" "etc/$f" done По всей видимости эта конструкция используется в системе не только исключительно для mysqld, потому что при старте системы обновление chroot проходит успешно (правда не могу сказать для какого еще сервиса-ов/демона) Но, что касается mysqld, то ошибка возникает с "localtime" в этом цикле. Если его убрать, т.е. оставить -------------------------------------------- ..... for f in hosts services {host, nsswitch,resolv}.conf; do Copy -m644 $force "/etc/$f" "etc/$f" done -------------------------------------------- то ее не возникает и mysqld cтартует. Но убрирать "localtime" не хотелось бы. :-( Может быть специалисты дадут какой комментарий по этому поводу (хотелось бы выслушать мнение Dmitry V.Levin)? :-) Cпасибо. ^ permalink raw reply [flat|nested] 28+ messages in thread
* [Comm] Re: autostart MySQL 2005-01-19 7:39 ` Aleksander N. Gorohovski @ 2005-01-19 8:30 ` Michael Shigorin 2005-01-19 7:54 ` Aleksander N. Gorohovski 2005-01-24 23:21 ` Vitaly Lipatov 0 siblings, 2 replies; 28+ messages in thread From: Michael Shigorin @ 2005-01-19 8:30 UTC (permalink / raw) To: community [-- Attachment #1: Type: text/plain, Size: 724 bytes --] On Wed, Jan 19, 2005 at 10:39:30AM +0300, Aleksander N. Gorohovski wrote: > for f in localtime hosts services {host, nsswitch,resolv}.conf; do > Copy -m644 $force "/etc/$f" "etc/$f" > done > > Но, что касается mysqld, то ошибка возникает с "localtime" в > этом цикле. Если его убрать, т.е. оставить > -------------------------------------------- > for f in hosts services {host, nsswitch,resolv}.conf; do > Copy -m644 $force "/etc/$f" "etc/$f" > done > -------------------------------------------- > то ее не возникает и mysqld cтартует. Вешайте багу на MySQL-server с Cc: ldv@ ... .org (и mike@ тоже) -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] Re: autostart MySQL 2005-01-19 8:30 ` Michael Shigorin @ 2005-01-19 7:54 ` Aleksander N. Gorohovski 2005-01-19 8:49 ` Michael Shigorin 2005-01-24 23:21 ` Vitaly Lipatov 1 sibling, 1 reply; 28+ messages in thread From: Aleksander N. Gorohovski @ 2005-01-19 7:54 UTC (permalink / raw) To: community On Wed, 19 Jan 2005 10:30:40 +0200, Michael Shigorin <mike@osdn.org.ua> wrote: > On Wed, Jan 19, 2005 at 10:39:30AM +0300, Aleksander N. Gorohovski wrote: >> for f in localtime hosts services {host, nsswitch,resolv}.conf; do >> Copy -m644 $force "/etc/$f" "etc/$f" >> done >> >> Но, что касается mysqld, то ошибка возникает с "localtime" в >> этом цикле. Если его убрать, т.е. оставить >> -------------------------------------------- >> for f in hosts services {host, nsswitch,resolv}.conf; do >> Copy -m644 $force "/etc/$f" "etc/$f" >> done >> -------------------------------------------- >> то ее не возникает и mysqld cтартует. > > Вешайте багу на MySQL-server с Cc: ldv@ ... .org (и mike@ тоже) > Повесить всегда успею, :-) но хотелось бы еще выслушать мнения. p.s. Повторю, что систему Master2.4 (DVD) c MySQL-server специально поставил вчера с нуля на чистый винт. Поэтому нет никаких заплаток и обновлений из сизифа. ^ permalink raw reply [flat|nested] 28+ messages in thread
* [Comm] Re: autostart MySQL 2005-01-19 7:54 ` Aleksander N. Gorohovski @ 2005-01-19 8:49 ` Michael Shigorin 0 siblings, 0 replies; 28+ messages in thread From: Michael Shigorin @ 2005-01-19 8:49 UTC (permalink / raw) To: community On Wed, Jan 19, 2005 at 10:54:34AM +0300, Aleksander N. Gorohovski wrote: > >Вешайте багу на MySQL-server с Cc: ldv@ ... .org (и mike@ тоже) > Повесить всегда успею, :-) > но хотелось бы еще выслушать мнения. Мнение -- вешать. > p.s. Повторю, что систему Master2.4 (DVD) c MySQL-server > специально поставил вчера с нуля на чистый винт. Поэтому нет > никаких заплаток и обновлений из сизифа. Вот последнего и не надо. -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] Re: autostart MySQL 2005-01-19 8:30 ` Michael Shigorin 2005-01-19 7:54 ` Aleksander N. Gorohovski @ 2005-01-24 23:21 ` Vitaly Lipatov 2005-01-25 6:01 ` Aleksander N. Gorohovski 2005-01-25 7:45 ` Michael Shigorin 1 sibling, 2 replies; 28+ messages in thread From: Vitaly Lipatov @ 2005-01-24 23:21 UTC (permalink / raw) To: community On Wednesday 19 January 2005 11:30, Michael Shigorin wrote: > Вешайте багу на MySQL-server с Cc: ldv@ ... .org (и mike@ > тоже) Да ладно - вешайте багу на KDE, который убивает /etc/localtime при настройке часового пояса. Ну и на MySQL-server, который неясно информирует на каком именно файле -- Lav Виталий Липатов Санкт-Петербург GNU! ALT Linux Team! LaTeX! LyX! ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] Re: autostart MySQL 2005-01-24 23:21 ` Vitaly Lipatov @ 2005-01-25 6:01 ` Aleksander N. Gorohovski 2005-01-25 7:46 ` Michael Shigorin 2005-01-25 7:45 ` Michael Shigorin 1 sibling, 1 reply; 28+ messages in thread From: Aleksander N. Gorohovski @ 2005-01-25 6:01 UTC (permalink / raw) To: community On Tue, 25 Jan 2005 02:21:42 +0300, Vitaly Lipatov <lav@altlinux.ru> wrote: > On Wednesday 19 January 2005 11:30, Michael Shigorin wrote: >> Вешайте багу на MySQL-server с Cc: ldv@ ... .org (и mike@ >> тоже) > Да ладно - вешайте багу на KDE, который убивает /etc/localtime > при настройке часового пояса. > Ну и на MySQL-server, который неясно информирует на каком именно > файле Господа! Повесить багу - это пол дела, а как сейчас исправить ситуацию? Не использовать chroot для MySQL? (так не хотелось бы). А вообще реально кто-нибудь пользует MySQL в ALT Master2.4? :-) Или все еще работают в M2.2. Cпасибо. ^ permalink raw reply [flat|nested] 28+ messages in thread
* [Comm] Re: autostart MySQL 2005-01-25 6:01 ` Aleksander N. Gorohovski @ 2005-01-25 7:46 ` Michael Shigorin 2005-01-25 11:39 ` Aleksander N. Gorohovski 0 siblings, 1 reply; 28+ messages in thread From: Michael Shigorin @ 2005-01-25 7:46 UTC (permalink / raw) To: community On Tue, Jan 25, 2005 at 09:01:24AM +0300, Aleksander N. Gorohovski wrote: > А вообще реально кто-нибудь пользует MySQL в ALT Master2.4? Ну я, например. С таким не сталкивался. KDE с MySQL на одном хосте встречаются в двух местах, но там никто из него время не пытается править и вообще есть ntpd. -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] Re: autostart MySQL 2005-01-25 7:46 ` Michael Shigorin @ 2005-01-25 11:39 ` Aleksander N. Gorohovski 2005-01-25 13:23 ` Michael Shigorin 0 siblings, 1 reply; 28+ messages in thread From: Aleksander N. Gorohovski @ 2005-01-25 11:39 UTC (permalink / raw) To: community On Tue, 25 Jan 2005 09:46:47 +0200, Michael Shigorin <mike@osdn.org.ua> wrote: > On Tue, Jan 25, 2005 at 09:01:24AM +0300, Aleksander N. Gorohovski wrote: >> А вообще реально кто-нибудь пользует MySQL в ALT Master2.4? > > Ну я, например. С таким не сталкивался. KDE с MySQL на одном > хосте встречаются в двух местах, но там никто из него время не > пытается править и вообще есть ntpd. Миша, Вы как всегда один из самых счастливых среди здесь присутствующих. :-) Попробовать, что-ли Gnome? Или Вы вообще не пользуете X? :-) Жаль, что Dmitry V.Levin молчит как партизан. :-( ^ permalink raw reply [flat|nested] 28+ messages in thread
* [Comm] Re: autostart MySQL 2005-01-25 11:39 ` Aleksander N. Gorohovski @ 2005-01-25 13:23 ` Michael Shigorin 0 siblings, 0 replies; 28+ messages in thread From: Michael Shigorin @ 2005-01-25 13:23 UTC (permalink / raw) To: community On Tue, Jan 25, 2005 at 02:39:31PM +0300, Aleksander N. Gorohovski wrote: > >>А вообще реально кто-нибудь пользует MySQL в ALT Master2.4? > >Ну я, например. С таким не сталкивался. KDE с MySQL на одном > >хосте встречаются в двух местах, но там никто из него время не > >пытается править и вообще есть ntpd. > Миша, Вы как всегда один из самых счастливых среди здесь > присутствующих. :-) А то. :-) > Попробовать, что-ли Gnome? Или Вы вообще не пользуете X? :-) Не, облом; почему же, пользую, консоль ещё как-то рулила на 15" и пока карточки с SVGATextMode дружили... > Жаль, что Dmitry V. Levin молчит как партизан. :-( Как слушающий на 127.0.0.1 партизан в пустом read-only chroot? :) -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ ^ permalink raw reply [flat|nested] 28+ messages in thread
* [Comm] Re: autostart MySQL 2005-01-24 23:21 ` Vitaly Lipatov 2005-01-25 6:01 ` Aleksander N. Gorohovski @ 2005-01-25 7:45 ` Michael Shigorin 2005-01-25 12:37 ` Dmitry V. Levin 1 sibling, 1 reply; 28+ messages in thread From: Michael Shigorin @ 2005-01-25 7:45 UTC (permalink / raw) To: community; +Cc: mouse, Dmitry V. Levin [-- Attachment #1: Type: text/plain, Size: 793 bytes --] On Tue, Jan 25, 2005 at 02:21:42AM +0300, Vitaly Lipatov wrote: > > Вешайте багу на MySQL-server с Cc: ldv@ ... .org (и mike@ > > тоже) > Да ладно - вешайте багу на KDE, который убивает /etc/localtime > при настройке часового пояса. О как. Не знал >:-/ Повесишь? > Ну и на MySQL-server, который неясно информирует на каком > именно файле Ммм... рассмотрение /etc/chroot.d/mysql.conf и /etc/chroot.d/functions наводит на мысль, что хорошо бы уметь пробрасывать в подобных скриптах нечто с тем, чтобы Copy() передавали параметр -v. Ну или как вариант -- чтобы эта функция (как средоточие ловли грабель) сама воспринимала какую переменную среды DEBUG. 2 ldv: ы? :) -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] Re: autostart MySQL 2005-01-25 7:45 ` Michael Shigorin @ 2005-01-25 12:37 ` Dmitry V. Levin 2005-01-26 8:51 ` Vitaly Lipatov 0 siblings, 1 reply; 28+ messages in thread From: Dmitry V. Levin @ 2005-01-25 12:37 UTC (permalink / raw) To: ALT Linux general discussion list [-- Attachment #1: Type: text/plain, Size: 698 bytes --] On Tue, Jan 25, 2005 at 09:45:46AM +0200, Michael Shigorin wrote: > On Tue, Jan 25, 2005 at 02:21:42AM +0300, Vitaly Lipatov wrote: [...] > > Ну и на MySQL-server, который неясно информирует на каком > > именно файле > > Ммм... рассмотрение /etc/chroot.d/mysql.conf и > /etc/chroot.d/functions наводит на мысль, что хорошо бы уметь > пробрасывать в подобных скриптах нечто с тем, чтобы Copy() > передавали параметр -v. Ну или как вариант -- чтобы эта функция > (как средоточие ловли грабель) сама воспринимала какую переменную > среды DEBUG. > > 2 ldv: ы? :) Благие пожелания к `rpmquery -f /etc/chroot.d/functions` приветствуются в случае занесения оных в BTS. -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] Re: autostart MySQL 2005-01-25 12:37 ` Dmitry V. Levin @ 2005-01-26 8:51 ` Vitaly Lipatov 0 siblings, 0 replies; 28+ messages in thread From: Vitaly Lipatov @ 2005-01-26 8:51 UTC (permalink / raw) To: community On Tuesday 25 January 2005 15:37, Dmitry V. Levin wrote: > On Tue, Jan 25, 2005 at 09:45:46AM +0200, Michael Shigorin > > /etc/chroot.d/functions наводит на мысль, что хорошо бы ... > Благие пожелания к `rpmquery -f /etc/chroot.d/functions` > приветствуются в случае занесения оных в BTS. Bug 5961 has been added -- Lav Виталий Липатов Санкт-Петербург GNU! ALT Linux Team! LaTeX! LyX! ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] Re: autostart MySQL 2005-01-17 10:56 ` [Comm] " Michael Shigorin 2005-01-17 10:55 ` Aleksander N. Gorohovski @ 2005-01-17 11:09 ` Andrew Pleskach 2005-01-17 11:01 ` Aleksander N. Gorohovski 1 sibling, 1 reply; 28+ messages in thread From: Andrew Pleskach @ 2005-01-17 11:09 UTC (permalink / raw) To: community Я так понял такая монипулятция chkconfig --level 345 mysqld on была проведена уже после chkconfig --add который ругнулся что файл не верен ... К стате такая же беда наблюдается для MaxDb скриптов даже после правки выше указанных в ручную в соответсвии с требованиями chkconfig скрипт добавляется но сервис не стартует ... для сравнения FC2 проглатывает скрипт без правки и сервис весело подымается Michael Shigorin wrote: >On Mon, Jan 17, 2005 at 12:54:35PM +0300, Aleksander N. Gorohovski wrote: > > >>Как по-граммотному настроить автозагрузку mysql (без ручного >>запуска safe_mysqld) при старте системы? >> >> > >Вот так: > > > >>Манипуляции >># chkconfig --level 345 mysqld on >> >> > >А это уже мелкая кувалдометрия, к тому же зачем так рано?: > > > >>или >># ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc3.d/S14mysqld >>не помогают :-( >>Система Master2.4. >> >> > >Вот про "не помогают" -- давайте подробнее. У меня-то работает. > > > ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] Re: autostart MySQL 2005-01-17 11:09 ` Andrew Pleskach @ 2005-01-17 11:01 ` Aleksander N. Gorohovski 2005-01-17 11:54 ` Andrew Pleskach 0 siblings, 1 reply; 28+ messages in thread From: Aleksander N. Gorohovski @ 2005-01-17 11:01 UTC (permalink / raw) To: community On Mon, 17 Jan 2005 14:09:23 +0300, Andrew Pleskach <ples@mobilae.ru> wrote: > Я так понял такая монипулятция > > chkconfig --level 345 mysqld on > была проведена уже после > > chkconfig --add который ругнулся что файл не верен ... "Казань - брал, Крым - брал", а этого не делал :-) > > К стате такая же беда наблюдается для MaxDb скриптов даже после > правки выше указанных > в ручную в соответсвии с требованиями chkconfig скрипт добавляется но > сервис не стартует ... > для сравнения FC2 проглатывает скрипт без правки и сервис весело > подымается > ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [Comm] Re: autostart MySQL 2005-01-17 11:01 ` Aleksander N. Gorohovski @ 2005-01-17 11:54 ` Andrew Pleskach 0 siblings, 0 replies; 28+ messages in thread From: Andrew Pleskach @ 2005-01-17 11:54 UTC (permalink / raw) To: community Ну это было только предположение .... :-) в общем то тоже поддерживаю вопрос ... не совсем понятно почему сервис не подымается Aleksander N. Gorohovski wrote: > On Mon, 17 Jan 2005 14:09:23 +0300, Andrew Pleskach <ples@mobilae.ru> > wrote: > >> Я так понял такая монипулятция >> >> chkconfig --level 345 mysqld on > > >> была проведена уже после >> >> chkconfig --add который ругнулся что файл не верен ... > > > "Казань - брал, Крым - брал", а этого не делал > :-) > >> >> К стате такая же беда наблюдается для MaxDb скриптов даже после >> правки выше указанных >> в ручную в соответсвии с требованиями chkconfig скрипт добавляется >> но сервис не стартует ... >> для сравнения FC2 проглатывает скрипт без правки и сервис весело >> подымается >> > _______________________________________________ > Community mailing list > Community@altlinux.ru > https://lists.altlinux.ru/mailman/listinfo/community > ^ permalink raw reply [flat|nested] 28+ messages in thread
end of thread, other threads:[~2005-01-26 8:51 UTC | newest] Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-01-17 9:54 [Comm] autostart MySQL Aleksander N. Gorohovski 2005-01-17 10:56 ` [Comm] " Michael Shigorin 2005-01-17 10:55 ` Aleksander N. Gorohovski 2005-01-17 11:50 ` Michael Shigorin 2005-01-17 15:49 ` Re[2]: " Alexey S. Kuznetsov 2005-01-17 22:13 ` Eugene Ostapets 2005-01-17 22:55 ` Konstantin A. Lepikhov 2005-01-18 7:13 ` Aleksander N. Gorohovski 2005-01-18 8:31 ` Eugene Ostapets 2005-01-18 7:51 ` Aleksander N. Gorohovski 2005-01-18 11:26 ` Michael Shigorin 2005-01-18 19:52 ` Eugene Ostapets 2005-01-19 7:43 ` Michael Shigorin 2005-01-19 7:39 ` Aleksander N. Gorohovski 2005-01-19 8:30 ` Michael Shigorin 2005-01-19 7:54 ` Aleksander N. Gorohovski 2005-01-19 8:49 ` Michael Shigorin 2005-01-24 23:21 ` Vitaly Lipatov 2005-01-25 6:01 ` Aleksander N. Gorohovski 2005-01-25 7:46 ` Michael Shigorin 2005-01-25 11:39 ` Aleksander N. Gorohovski 2005-01-25 13:23 ` Michael Shigorin 2005-01-25 7:45 ` Michael Shigorin 2005-01-25 12:37 ` Dmitry V. Levin 2005-01-26 8:51 ` Vitaly Lipatov 2005-01-17 11:09 ` Andrew Pleskach 2005-01-17 11:01 ` Aleksander N. Gorohovski 2005-01-17 11:54 ` Andrew Pleskach
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git