From: Richard Mortimer Date: Tue, 14 Sep 2010 21:28:39 +0000 (+0100) Subject: Add instructions for providing ~/.my.cnf and ~/.pgpass files to provide database... X-Git-Tag: Release-5.2.1~79 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=172333ea43b8e20f003952686e48f19a2dda3cfc;p=bacula%2Fdocs Add instructions for providing ~/.my.cnf and ~/.pgpass files to provide database authentication to the regression scripts. Signed-off-by: Eric Bollengier --- diff --git a/docs/manuals/en/developers/regression.tex b/docs/manuals/en/developers/regression.tex index 525651a1..0f3606de 100644 --- a/docs/manuals/en/developers/regression.tex +++ b/docs/manuals/en/developers/regression.tex @@ -261,6 +261,25 @@ Generally, to do the above, you will need to run under root to be able to create databases and modify permissions within MySQL and PostgreSQL. +It is possible to configure MySQL access for database accounts that +require a password to be supplied. This can be done by creating a ~/.my.cnf +file which supplies the credentials by default to the MySQL commandline +utilities. + +\begin{verbatim} +[client] +host = localhost +user = regress +password = asecret +\end{verbatim} + +A similar technique can be used PostgreSQL regression testing where the +database is configured to require a password. The ~/.pgpass file should +contain a line with the database connection properties. + +\begin{verbatim} +hostname:port:database:username:password +\end{verbatim} \subsection{Running the Disk Only Regression} \index{Regression!Running the Disk Only}