[mysqld]
max_allowed_packet = 1G
-innodb_file_per_table = 1
-innodb_large_prefix = 1
+innodb_file_per_table = ON
+innodb_large_prefix = ON
innodb_file_format = Barracuda
+ft_min_word_len = 2
[mysql]
max_allowed_packet = 1G
If you did install MariaDB manually rather than from a package, make sure the
server is started when the machine boots.
-Create the Database
-===================
-
-You need to create a database for Bugzilla to use. Run the :file:`mariadb`
-command-line client and enter:
-
-::
- CREATE DATABASE IF NOT EXISTS bugs CHARACTER SET = 'utf8';
-
-The above command makes sure a database like that doesn't exist already.
-
.. _mysql-add-user:
Add a User
::
+ CREATE USER 'bugs'@'localhost' IDENTIFIED BY '$DB_PASS';
+
GRANT SELECT, INSERT,
UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES,
CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.*
- TO bugs@localhost IDENTIFIED BY '$DB_PASS';
+ TO 'bugs'@'localhost';
You need to replace ``$DB_PASS`` with a strong password you have chosen.
Write that password down somewhere.
Configure MariaDB
=================
-The following instructions use the simple :file:`nano` editor, but feel
-free to use any text editor you are comfortable with.
+Put in the server settings that Bugzilla needs:
-:command:`nano /etc/mysql/mariadb.conf.d/50-server.cnf`
-
-Set the following values, which increase the maximum attachment size and
-make it possible to search for short words and terms:
-
-* Uncomment and alter on Line 34 to have a value of at least: ``max_allowed_packet=100M``
-* Add a new line 42, in the ``[mysqld]`` section: ``ft_min_word_len=2``
-
-Save and exit.
+:command:`cp docker/mysql/bugzilla.cnf /etc/mysql/conf.d/bugzilla.cnf`
Then, add a user to MariaDB for Bugzilla to use:
mysql_innodb_settings => <<'END',
Bugzilla requires the following MySQL InnoDB settings:
innodb_file_format = Barracuda
-innodb_file_per_table = 1
-innodb_large_prefix = 1
+innodb_file_per_table = ON
+innodb_large_prefix = ON
END
mysql_index_renaming => <<'END',
We are about to rename old indexes. The estimated time to complete