File: disable_secure_file_priv_check.diff

package info (click to toggle)
akonadi 4%3A25.08.3-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,552 kB
  • sloc: cpp: 100,927; xml: 2,758; python: 71; sh: 70; javascript: 42; makefile: 41
file content (33 lines) | stat: -rw-r--r-- 1,227 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From: Philip Muskovac <yofel@gmx.net>
Date: Tue, 6 Dec 2016 18:43:17 +0100
Subject: disable the secure_file_priv check

MySQL 5.7 introduced a premission check for export and import operations.
In Debian and Ubuntu, only the full mysql-server package creates the set system
wide directory causing mysqld-akonadi to error out on startup if only
mysql-server-core-5.7 is installed.
To prevent that the key is set to empty, which reverts mysqld to the 5.6
behavior.
See http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_secure_file_priv
Bug-Debian: https://bugs.debian.org/843534
Last-Update: 2016-04-18
Forwarded: not-needed
Origin: vendor
---
 src/server/storage/mysql-global.conf | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/server/storage/mysql-global.conf b/src/server/storage/mysql-global.conf
index 55b667b..a137f72 100644
--- a/src/server/storage/mysql-global.conf
+++ b/src/server/storage/mysql-global.conf
@@ -100,5 +100,9 @@ wait_timeout=31536000
 # We use InnoDB, so don't let MyISAM eat up memory
 key_buffer_size=16K
 
+# Debian/KUBUNTU:
+# Unset the export dir check as only the full mysql-server package creates it
+secure_file_priv=
+
 [client]
 default-character-set=utf8