Skip to content

Commit

Permalink
docs: remove MySQL/MariaDB create database instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergkemper committed Jul 28, 2020
1 parent 4248297 commit c392fda
Showing 1 changed file with 2 additions and 27 deletions.
29 changes: 2 additions & 27 deletions docs/manuals/source/IntroductionAndTutorial/InstallingBareos.rst
Expand Up @@ -360,9 +360,8 @@ If you are not interested in this additional functionality, the commands describ
Prepare Bareos database
-----------------------

We assume that you have already your database installed and basically running. Using the PostgreSQL database backend is recommended.

The easiest way to set up a database is using an system account that have passwordless local access to the database. Often this is the user **root** for MySQL and the user **postgres** for PostgreSQL.
We assume that you have already your database installed and basically running.
Using the PostgreSQL database backend is recommended.

For details, see chapter :ref:`CatMaintenanceChapter`.

Expand Down Expand Up @@ -405,30 +404,6 @@ If your are using PostgreSQL and your PostgreSQL administration user is **postgr
su postgres -c /usr/lib/bareos/scripts/make_bareos_tables
su postgres -c /usr/lib/bareos/scripts/grant_bareos_privileges
MySQL/MariaDB
^^^^^^^^^^^^^

Make sure, that **root** has direct access to the local MySQL server. Check if the command :command:`mysql` connects to the database without defining the password. This is the default on RedHat and SUSE distributions. On other systems (Debian, Ubuntu), create the file :file:`~/.my.cnf` with your authentication informations:

.. code-block:: cfg
:caption: MySQL credentials file .my.cnf
[client]
host=localhost
user=root
password=<input>YourPasswordForAccessingMysqlAsRoot</input>
It is recommended to secure the Bareos database connection with a password. See :ref:`Catalog Maintenance -- MySQL <catalog-maintenance-mysql>` on how to achieve this. For testing, using a password-less MySQL connection is probably okay. Setup the Bareos database tables using the following commands:

.. code-block:: shell-session
:caption: Setup Bareos catalog with MySQL
/usr/lib/bareos/scripts/create_bareos_database
/usr/lib/bareos/scripts/make_bareos_tables
/usr/lib/bareos/scripts/grant_bareos_privileges
As some Bareos updates require a database schema update, the file :file:`/root/.my.cnf` might also be useful in the future.

.. _section-StartDaemons:

Start the daemons
Expand Down

0 comments on commit c392fda

Please sign in to comment.