Re: storing root password rpm spec file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Manuel Arostegui wrote:
Hi all.
I´m packing an application which has got some .sql to configure database.
When you download the tar.gz you have to run the sql by hand, of course, and all tables, and
databases are created.
Well, I would like to make that process automatically when the rpm is being installed.

A (very) dirty trick is to let the installation script
stop the mysqld daemon, start it again with --skip-grant-tables,
load your databases (no password is then required), and
restart the daemon normally.

Mogens

--
Mogens Kjaer, Carlsberg A/S, Computer Department
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Fax: +45 33 27 47 08
Email: mk@xxxxxx Homepage: http://www.crc.dk


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux