summary refs log tree commit diff
path: root/nixos/doc/manual
diff options
context:
space:
mode:
authorIzorkin <izorkin@elven.pw>2020-05-05 10:51:17 +0300
committerIzorkin <izorkin@elven.pw>2020-05-14 17:29:40 +0300
commita4c7e0f502be64f326339d9ed609d24e99b594ff (patch)
tree309b0188cabd68e5d095c0376a81c8a07f422acd /nixos/doc/manual
parentb8c8e810aa330798cc458f412fd6282632e80073 (diff)
downloadnixpkgs-a4c7e0f502be64f326339d9ed609d24e99b594ff.tar
nixpkgs-a4c7e0f502be64f326339d9ed609d24e99b594ff.tar.gz
nixpkgs-a4c7e0f502be64f326339d9ed609d24e99b594ff.tar.bz2
nixpkgs-a4c7e0f502be64f326339d9ed609d24e99b594ff.tar.lz
nixpkgs-a4c7e0f502be64f326339d9ed609d24e99b594ff.tar.xz
nixpkgs-a4c7e0f502be64f326339d9ed609d24e99b594ff.tar.zst
nixpkgs-a4c7e0f502be64f326339d9ed609d24e99b594ff.zip
nixos/mysql: add release notes
Diffstat (limited to 'nixos/doc/manual')
-rw-r--r--nixos/doc/manual/release-notes/rl-2009.xml22
1 files changed, 22 insertions, 0 deletions
diff --git a/nixos/doc/manual/release-notes/rl-2009.xml b/nixos/doc/manual/release-notes/rl-2009.xml
index 315a2eaeacb..c52fbdfebe9 100644
--- a/nixos/doc/manual/release-notes/rl-2009.xml
+++ b/nixos/doc/manual/release-notes/rl-2009.xml
@@ -61,6 +61,28 @@
       This is to make it possible to use <literal>podman</literal> instead of <literal>docker</literal>.
     </para>
    </listitem>
+   <listitem>
+    <para>
+      MariaDB has been updated to 10.4, MariaDB Galera to 26.4.
+      Before you upgrade, it would be best to take a backup of your database.
+      For MariaDB Galera Cluster, see <link xlink:href="https://mariadb.com/kb/en/upgrading-from-mariadb-103-to-mariadb-104-with-galera-cluster/">Upgrading
+      from MariaDB 10.3 to MariaDB 10.4 with Galera Cluster</link> instead.
+      Before doing the upgrade read <link xlink:href="https://mariadb.com/kb/en/upgrading-from-mariadb-103-to-mariadb-104/#incompatible-changes-between-103-and-104">Incompatible
+      Changes Between 10.3 and 10.4</link>.
+      After the upgrade you will need to run <literal>mysql_upgrade</literal>.
+      MariaDB 10.4 introduces a number of changes to the authentication process, intended to make things easier and more
+      intuitive. See <link xlink:href="https://mariadb.com/kb/en/authentication-from-mariadb-104/">Authentication from MariaDB 10.4</link>.
+      unix_socket auth plugin does not use a password, and uses the connecting user's UID instead. When a new MariaDB data directory is initialized, two MariaDB users are
+      created and can be used with new unix_socket auth plugin, as well as traditional mysql_native_password plugin: root@localhost and mysql@localhost. To actually use 
+      the traditional mysql_native_password plugin method, one must run the following:
+<programlisting>
+services.mysql.initialScript = pkgs.writeText "mariadb-init.sql" ''
+  ALTER USER root@localhost IDENTIFIED VIA mysql_native_password USING PASSWORD("verysecret");
+'';
+</programlisting>
+      When MariaDB data directory is just upgraded (not initialized), the users are not created or modified.
+    </para>
+   </listitem>
   </itemizedlist>
  </section>