#!/bin/sh # # Script to reproduce Bacula MariaDB deadlock detection problem # it can be run as non-root except for the parts that require # creating the MariaDB database and granting permissions. # # Prior to running this script, ensure that MariaDB is installed # and create the database and user named "regress" and give yourself # permission to access the database. If not a part of the script # will fail and you will need to do the manual steps as indicated # below. # git clone http://git.bacula.org/bacula.git bacula cd bacula/regress pwd cp -f prototype.conf config make setup # # Note at this point, if the MariaDB database was not previously # created, creating it may have failed, which is not serious, but # and you will need to do the steps indicated below. # # sudo bin/create_mysql_database # sudo bin/grant_mysql_privileges # sudo bin//make_mysql_tables # # If you want to run the following test under your userid, you will probably # need to edit bin/grant_mysql_privileges and change the user name regress # but not the database name to your user name, then under root # execute the script again. After that everything can be done under # your userid. # tests/three-pool-virtual-test