Answer the question
In order to leave comments, you need to log in
Bareos how to connect external database?
bareos 17.2 works fine with local database. When trying to change catalog to an external database server, bareos_dir restarts without error, but webui fails with an error Connection refused, director seems to be down or blocking our request.
MySQL is on Windows 2012, bareos on ubuntu 16, the connection to the database is successful from the console.
Catalog {
Name = MyCatalog
dbdriver = "mysql"
dbaddress = "sql"
dbport = "3306"
dbname = "bareos"
dbuser = "bareos"
dbpassword = "bareos"
} Tell me
where to dig.
Answer the question
In order to leave comments, you need to log in
I answer myself, maybe someone will come in handy, since I spent the whole day looking for a solution.
first, write the file /etc/my.cnf
[client]
host=sql (remote server)
user=bareos
password=bareos
After that, run the scripts in turn:
/usr/lib/bareos/scripts/create_bareos_database
/usr/lib/bareos/ scripts/make_bareos_tables
/usr/lib/bareos/scripts/grant_bareos_privileges
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question