You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(docs): MariaDB is recommended, move before MySQL
MariaDB is the recommended database engine for Nextcloud, not MySQL.
Reorder sections so MariaDB comes first and update the introductory
sentence accordingly.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
If you have enabled MySQL 4-byte support (:doc:`../configuration_database/mysql_4byte_support`, needed for emoji), add ``--default-character-set=utf8mb4``::
To backup MariaDB using `mariadb-dump <https://mariadb.com/docs/server/clients-and-utilities/backup-restore-and-import-clients/mariadb-dump>`_::
46
+
MariaDB is the recommended database engine. To backup MariaDB using `mariadb-dump <https://mariadb.com/docs/server/clients-and-utilities/backup-restore-and-import-clients/mariadb-dump>`_::
If you have enabled MariaDB 4-byte support (:doc:`../configuration_database/mysql_4byte_support`, needed for emoji), add ``--default-character-set=utf8mb4``::
If you have enabled MySQL 4-byte support (:doc:`../configuration_database/mysql_4byte_support`, needed for emoji), add ``--default-character-set=utf8mb4``::
Copy file name to clipboardExpand all lines: admin_manual/maintenance/restore.rst
+22-22Lines changed: 22 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,23 +32,10 @@ Restore database
32
32
The easiest way to do this is to drop and recreate the database.
33
33
SQLite does this automatically.
34
34
35
-
MySQL
36
-
^^^^^
37
-
38
-
MySQL is the recommended database engine. To restore MySQL::
39
-
40
-
mysql -h [server] -u [username] -p[password] -e "DROP DATABASE nextcloud"
41
-
mysql -h [server] -u [username] -p[password] -e "CREATE DATABASE nextcloud"
42
-
43
-
If you use UTF8 with multibyte support (e.g. for emojis in filenames), use::
44
-
45
-
mysql -h [server] -u [username] -p[password] -e "DROP DATABASE nextcloud"
46
-
mysql -h [server] -u [username] -p[password] -e "CREATE DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci"
47
-
48
35
MariaDB
49
36
^^^^^^^
50
37
51
-
To restore MariaDB using the `mariadb <https://mariadb.com/docs/server/clients-and-utilities/mariadb-client/mariadb-command-line-client>`_ client::
38
+
MariaDB is the recommended database engine. To restore MariaDB using the `mariadb <https://mariadb.com/docs/server/clients-and-utilities/mariadb-client/mariadb-command-line-client>`_ client::
mariadb -h [server] -u [username] -p[password] -e "CREATE DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci"
60
47
48
+
MySQL
49
+
^^^^^
50
+
51
+
To restore MySQL::
52
+
53
+
mysql -h [server] -u [username] -p[password] -e "DROP DATABASE nextcloud"
54
+
mysql -h [server] -u [username] -p[password] -e "CREATE DATABASE nextcloud"
55
+
56
+
If you use UTF8 with multibyte support (e.g. for emojis in filenames), use::
57
+
58
+
mysql -h [server] -u [username] -p[password] -e "DROP DATABASE nextcloud"
59
+
mysql -h [server] -u [username] -p[password] -e "CREATE DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci"
60
+
61
61
62
62
PostgreSQL
63
63
^^^^^^^^^^
@@ -72,20 +72,20 @@ Restoring
72
72
.. note:: This guide assumes that your previous backup is called
73
73
"nextcloud-sqlbkp.bak"
74
74
75
-
MySQL
76
-
^^^^^
77
-
78
-
MySQL is the recommended database engine. To restore MySQL::
79
-
80
-
mysql -h [server] -u [username] -p[password] [db_name] < nextcloud-sqlbkp.bak
81
-
82
75
MariaDB
83
76
^^^^^^^
84
77
85
-
To restore MariaDB using the `mariadb <https://mariadb.com/docs/server/clients-and-utilities/mariadb-client/mariadb-command-line-client>`_ client::
78
+
MariaDB is the recommended database engine. To restore MariaDB using the `mariadb <https://mariadb.com/docs/server/clients-and-utilities/mariadb-client/mariadb-command-line-client>`_ client::
0 commit comments