Setting Up Your SQL Engine
If you are using SQLite or SQLite3, there is nothing more to do; you can simply run the tests as described in the next section.
If you are using MySQL or PostgreSQL, you will need to establish an
account with your database engine for the user name regress
and you
will need to manually create a database named regress that can be
used by user name regress
, which means you will have to give the
user regress sufficient permissions to use the database named
regress
. There is no password on the regress
account.
You have probably already done this procedure for the user name and
database named bacula
. If not, the manual describes roughly how to
do it, and the scripts in bacula/regress/build/src/cats
named
create_mysql_database
, create_postgresql_database
,
grant_mysql_privileges
, and grant_postgresql_privileges
may be
of a help to you.
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.
[client]
host = localhost
user = regress
password = asecret
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.
hostname:port:database:username:password
See also
Possible Next Steps
Go to Bacula MD5 Algorithm.
Go back to Bacula Regression Testing.
Go back to Developer Guide.