[icinga-devel] Antwort: Re: [PATCH 1/2] Must specify the database to use when creating Icinga's MySQL tables

Sascha.Runschke at gfkl.com Sascha.Runschke at gfkl.com
Mon Dec 14 10:36:03 CET 2009


Michael Friedrich <michael.friedrich at univie.ac.at> schrieb am 14.12.2009 
10:05:13:

> > + # mysql -D icinga -u root -p icinga < mysql.sql</programlisting>
> >
> > + # mysql -D icinga -u root -p icinga < mysql.sql</programlisting>
> mysql -u <user> -p [password question] <database> also fits and 
> therefore it is written like that. Your patch will use the database 
> icinga with user=root and password=icinga ... I don't think that's the 
> way it meant to be.

It won't use icinga as password. If you use -p, it does not take the next
argument as password.
If you want to pass the password (which you don't want to), you'd have
to write -picinga or -p=icinga, but "-p icinga" connects to the DB
icinga and prompts for a password.

Regards
        Sascha



GFKL Financial Services AG
Vorstand: Dr. Peter Jänsch (Vors.), Jürgen Baltes, Dr. Tom Haverkamp
Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma
Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.icinga.org/pipermail/icinga-devel/attachments/20091214/a3864d3d/attachment.html>


More information about the icinga-devel mailing list