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
Copy file name to clipboardExpand all lines: admin_manual/configuration_database/mysql_4byte_support.rst
+16-12
Original file line number
Diff line number
Diff line change
@@ -10,23 +10,23 @@ In order to use Emojis (textbased smilies) on your Nextcloud server with a MySQL
10
10
installation needs to be tweaked a bit.
11
11
12
12
1. Make sure your database is set to use the Barracuda InnoDB file format:
13
-
13
+
14
14
Login to your mysql database and run::
15
-
15
+
16
16
mysql> show variables like 'innodb_file_format';
17
17
+--------------------+-----------+
18
18
| Variable_name | Value |
19
19
+--------------------+-----------+
20
20
| innodb_file_format | Barracuda |
21
21
+--------------------+-----------+
22
22
1 row in set (0.00 sec)
23
-
23
+
24
24
If your `innodb_file_format` is set as 'Antelope' you must upgrade your file format using::
25
-
25
+
26
26
mysql> SET GLOBAL innodb_file_format=Barracuda;
27
-
27
+
28
28
.. note::
29
-
29
+
30
30
On some shared hosts, you may not have the permissions to upgrade the InnoDB file format, meaning you are unable to use utf8mb4
31
31
32
32
2. Make sure the following InnoDB settings are set on your MySQL server:
@@ -35,9 +35,9 @@ installation needs to be tweaked a bit.
35
35
36
36
[mysqld]
37
37
innodb_file_per_table=1
38
-
38
+
39
39
Note::
40
-
40
+
41
41
mysql> show variables like 'innodb_file_per_table';
42
42
+-----------------------+-------+
43
43
| Variable_name | Value |
@@ -54,15 +54,15 @@ installation needs to be tweaked a bit.
54
54
innodb_file_per_table=1
55
55
56
56
3. Open a shell, change dir (adjust ``/var/www/nextcloud`` to your nextcloud location if needed), and put your nextcloud instance in maintenance mode, if it isn't already::
57
-
57
+
58
58
$ cd /var/www/nextcloud
59
59
$ sudo -u www-data php occ maintenance:mode --on
60
-
60
+
61
61
4. Restart the MySQL server in case you changed the configuration in step 1.
62
62
5. Change your databases character set and collation::
63
-
63
+
64
64
ALTER DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
65
-
65
+
66
66
6. Set the ``mysql.utf8mb4`` config to true in your config.php::
0 commit comments