From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 18 Feb 2003 11:48:21 +0300 From: "Dmitry V. Levin" To: ALT Linux Sisyphus mailing list Subject: Re: [sisyphus] MySQL =?koi8-r?Q?=C9_logrot?= =?koi8-r?Q?ate?= Message-ID: <20030218084821.GC29794@basalt.office.altlinux.org> Mail-Followup-To: ALT Linux Sisyphus mailing list References: <765443767.20030218104707@amfitel.ru> <3E51EA29.8050808@strat.chtts.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="O3RTKUHj+75w1tg5" Content-Disposition: inline In-Reply-To: <3E51EA29.8050808@strat.chtts.ru> X-fingerprint: 9658 398D 181B 1200 8FC5 26B8 F6F8 846B C1E2 3429 Sender: sisyphus-admin@altlinux.ru Errors-To: sisyphus-admin@altlinux.ru X-BeenThere: sisyphus@altlinux.ru X-Mailman-Version: 2.0.9 Precedence: bulk Reply-To: sisyphus@altlinux.ru List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Archived-At: List-Archive: --O3RTKUHj+75w1tg5 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit On Tue, Feb 18, 2003 at 11:09:13AM +0300, Egorov Alexey wrote: > >В файле /etc/logrotate.d/mysql > >написано, что если root в mysql имеет пароль, то нужно прописать его > >в файле /root/.my.cnf > >Прописываю. Эффекта не возымело. > >Похоже, файл .my.cnf ищется не в каталоге root при выполнении > >logrotate, а в корневом каталоге. Так это или нет ? > >Если так, то, может, есть смысл поправить примечание в файле > >/etc/logrotate.d/mysql или поправить все-таки скрипты, чтобы они > >искали файл там где нужно. В коренб что-то не очень хочется его > >класть. > > > http://www.atmsk.ru/viewtopic.php?t=133 $ mysqladmin --help [...] Default options are read from the following files in the given order: /etc/my.cnf /var/lib/mysql/my.cnf ~/.my.cnf The following groups are read: mysqladmin client The following options may be given as the first argument: --print-defaults Print the program argument list and exit --no-defaults Don't read default options from any options file --defaults-file=# Only read default options from the given file # --defaults-extra-file=# Read this file after the global files are read В /etc/logrotate.d/mysql опечатка, и "/root/.my.cnf" следует читать как "/etc/my.cnf". -- ldv --O3RTKUHj+75w1tg5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+UfNV9viEa8HiNCkRAi5dAJ9KsT27tGOY264HQA4gTvB1YRVlqgCfRkiO XI7SsZU8loXiKlfPyPdoUMk= =oIel -----END PGP SIGNATURE----- --O3RTKUHj+75w1tg5--