From 172333ea43b8e20f003952686e48f19a2dda3cfc Mon Sep 17 00:00:00 2001 From: Richard Mortimer Date: Tue, 14 Sep 2010 22:28:39 +0100 Subject: [PATCH 1/1] Add instructions for providing ~/.my.cnf and ~/.pgpass files to provide database authentication to the regression scripts. Signed-off-by: Eric Bollengier --- docs/manuals/en/developers/regression.tex | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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} -- 2.39.2