OT - Re: jak nejlepe na praci s casem

Indigo indigo at eiecon.net
Wed Apr 22 15:42:42 CEST 2009


On Wed, 22 Apr 2009 15:27:57 +0200, Juraj Lutter  
<freebsd-users-l at wilbury.sk> wrote:

> Jan Friedel wrote:
>> On Wed, Apr 22, 2009 at 02:39:31PM +0200, Daniel Gerzo wrote:
>>> Jan Friedel wrote:
>>>> On Wed, Apr 22, 2009 at 02:00:20PM +0200, Indigo wrote:
>>>>> Ahoj,
>>>>> jednak bych doporucil drobnou optimalizaci:
>>>>>
>>>>> vystup=`mysql -uroot -pheslo < EOF
>>>>> SELECT DATEDIFF('2009-03-09', '2011-03-09');
>>>>> EOF`
>>>> 	Heslo na prikazove radce - nikdy. Cim dele trva dotaz do
>>>> 	databaze, tim vetsi je sance nechteneho odhaleni hesla ostatnimi
>>>> 	uzivateli jen pomoci `ps -wax`.
>>> security.bsd.see_other_uids=0
>>> security.bsd.see_other_gids=0
>>  	Otazka je, jestli toto je vzdy vhodne..  	Ale jinak dobry hint o  
>> kterem jsem nevedel ;)
>
>
> mysql -B --defaults-file=/cesta/k/configu ...
>
> do configu:
>
> [client]
> user=...
> password=...
>
> config nemusi byt citatelny pre ineho usera, ako vykonavajuceho danu sql  
> query. tym padom heslo v procesoch vidiet nie je. navyse, mysql binarka  
> pouziva setproctitle() na skrytie skutocneho argumentu k -p.
>
> otis
>
>
>

Urcite jsem nechtel tazatele podporovat v pouzivani mysql z prikazove  
rady. Spis ho odstrcit od pouzivani temporary souboru.

V.



More information about the Users-l mailing list