Skip to content

Commit 85905b6

Browse files
authored
Don't recommend specific tuning
As values vary a lot between setups, just include mandatory settings for databases?
1 parent b2f7dad commit 85905b6

File tree

1 file changed

+2
-73
lines changed

1 file changed

+2
-73
lines changed

admin_manual/configuration_database/linux_database_configuration.rst

Lines changed: 2 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -49,46 +49,11 @@ If you decide to use a MySQL or MariaDB database, ensure the following:
4949

5050
[mysqld]
5151
...
52-
transaction_isolation = READ-COMMITTED
53-
binlog_format = ROW
54-
...
55-
56-
Your :file:`/etc/mysql/my.cnf` could look like this:
57-
58-
::
59-
60-
[server]
61-
skip_name_resolve = 1
62-
innodb_buffer_pool_size = 128M
63-
innodb_buffer_pool_instances = 1
64-
innodb_flush_log_at_trx_commit = 2
65-
innodb_log_buffer_size = 32M
66-
innodb_max_dirty_pages_pct = 90
67-
query_cache_type = 1
68-
query_cache_limit = 2M
69-
query_cache_min_res_unit = 2k
70-
query_cache_size = 64M
71-
tmp_table_size= 64M
72-
max_heap_table_size= 64M
73-
slow_query_log = 1
74-
slow_query_log_file = /var/log/mysql/slow.log
75-
long_query_time = 1
76-
77-
[client-server]
78-
!includedir /etc/mysql/conf.d/
79-
!includedir /etc/mysql/mariadb.conf.d/
80-
81-
[client]
82-
default-character-set = utf8mb4
83-
84-
[mysqld]
8552
character_set_server = utf8mb4
8653
collation_server = utf8mb4_general_ci
8754
transaction_isolation = READ-COMMITTED
8855
binlog_format = ROW
89-
innodb_large_prefix=on
90-
innodb_file_format=barracuda
91-
innodb_file_per_table=1
56+
...
9257

9358
Please refer to the `page in the MySQL manual <https://mariadb.com/kb/en/library/set-transaction/#read-committed>`_.
9459

@@ -98,27 +63,6 @@ Please refer to the `page in the MySQL manual <https://mariadb.com/kb/en/library
9863

9964
.. note:: MariaDB is backwards compatible with MySQL. All instructions work for both. You will not need to replace mysql with anything.
10065

101-
The PHP configuration in :file:`/etc/php7/conf.d/mysql.ini` could look like this:
102-
103-
::
104-
105-
# configuration for PHP MySQL module
106-
extension=pdo_mysql.so
107-
108-
[mysql]
109-
mysql.allow_local_infile=On
110-
mysql.allow_persistent=On
111-
mysql.cache_size=2000
112-
mysql.max_persistent=-1
113-
mysql.max_links=-1
114-
mysql.default_port=
115-
mysql.default_socket=/var/lib/mysql/mysql.sock # Debian squeeze: /var/run/mysqld/mysqld.sock
116-
mysql.default_host=
117-
mysql.default_user=
118-
mysql.default_password=
119-
mysql.connect_timeout=60
120-
mysql.trace_mode=Off
121-
12266
Now you need to create a database user and the database itself by using the
12367
MySQL command line interface. The database tables will be created by Nextcloud
12468
when you login for the first time.
@@ -183,22 +127,7 @@ PostgreSQL database
183127
^^^^^^^^^^^^^^^^^^^
184128

185129
If you decide to use a PostgreSQL database make sure that you have installed
186-
and enabled the PostgreSQL extension in PHP. The PHP configuration in :file:`/etc/php7/conf.d/pgsql.ini` could look
187-
like this:
188-
189-
::
190-
191-
# configuration for PHP PostgreSQL module
192-
extension=pdo_pgsql.so
193-
extension=pgsql.so
194-
195-
[PostgresSQL]
196-
pgsql.allow_persistent = On
197-
pgsql.auto_reset_persistent = Off
198-
pgsql.max_persistent = -1
199-
pgsql.max_links = -1
200-
pgsql.ignore_notice = 0
201-
pgsql.log_notice = 0
130+
and enabled the PostgreSQL extension **pdo_pgsql** in PHP.
202131

203132
The default configuration for PostgreSQL (at least in Ubuntu 14.04) is to use the peer authentication method. Check :file:`/etc/postgresql/9.3/main/pg_hba.conf` to find out which authentication method is used in your setup.
204133
To start the postgres command line mode use::

0 commit comments

Comments
 (0)