]> git.sur5r.net Git - bacula/docs/commitdiff
Add instructions for providing ~/.my.cnf and ~/.pgpass files to provide database...
authorRichard Mortimer <richm@oldelvet.org.uk>
Tue, 14 Sep 2010 21:28:39 +0000 (22:28 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Wed, 15 Sep 2010 16:08:24 +0000 (18:08 +0200)
Signed-off-by: Eric Bollengier <eric@eb.homelinux.org>
docs/manuals/en/developers/regression.tex

index 525651a1fb31dd2e8f9051602dc5bc1c870f7d51..0f3606dec30d5f36ea1c980d4c0ef5eb058d854e 100644 (file)
@@ -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}