summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-08-02 17:56:14 +0200
committerThomas Deutschmann <whissi@gentoo.org>2019-08-02 18:04:04 +0200
commite3ccd5cdcf12217d37448a857929c6ee28b7b0e4 (patch)
tree48f96adb600c558f95cb6dcb9b7a9827fd1c3c97 /dev-db/mysql/files
parentsys-apps/inxi: Drop old (diff)
downloadgentoo-e3ccd5cdcf12217d37448a857929c6ee28b7b0e4.tar.gz
gentoo-e3ccd5cdcf12217d37448a857929c6ee28b7b0e4.tar.bz2
gentoo-e3ccd5cdcf12217d37448a857929c6ee28b7b0e4.zip
dev-db/mysql: update ebuild draft
- Add USE=router to control building of MySQL router program - Add GLEP 81 support - Use USE=ssl logic from dev-db/mysql-connector-c (=use bundled WolfSSL when no system SSL is used) - Don't install perror and zlib_decompress man pages (these are client tools, i.e. should be installed via dev-db/mysql-connector-c package) - Use CMAKE_POSITION_INDEPENDENT_CODE=ON - Provide own config files for MySQL v8.0 (mainly because of new default charset) - Update LibreSSL patch Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'dev-db/mysql/files')
-rw-r--r--dev-db/mysql/files/my.cnf-8.0.distro-client21
-rw-r--r--dev-db/mysql/files/my.cnf-8.0.distro-server28
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-db/mysql/files/my.cnf-8.0.distro-client b/dev-db/mysql/files/my.cnf-8.0.distro-client
new file mode 100644
index 000000000000..5325c1a6d8fd
--- /dev/null
+++ b/dev-db/mysql/files/my.cnf-8.0.distro-client
@@ -0,0 +1,21 @@
+# @GENTOO_PORTAGE_EPREFIX@/etc/mysql/50-distro-client.cnf: The global mysql configuration file.
+
+# The following options will be passed to all MySQL clients
+[client]
+socket = @GENTOO_PORTAGE_EPREFIX@/var/run/mysqld/mysqld.sock
+character-sets-dir = @GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets
+loose-default-character-set = utf8mb4
+
+[mysql]
+# uncomment the next directive if you are not familiar with SQL
+#safe-updates
+
+[mysqldump]
+quick
+max_allowed_packet = 16M
+
+[myisamchk]
+character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets
+
+[myisampack]
+character-sets-dir=@GENTOO_PORTAGE_EPREFIX@/usr/share/mysql/charsets
diff --git a/dev-db/mysql/files/my.cnf-8.0.distro-server b/dev-db/mysql/files/my.cnf-8.0.distro-server
new file mode 100644
index 000000000000..248c68e393ad
--- /dev/null
+++ b/dev-db/mysql/files/my.cnf-8.0.distro-server
@@ -0,0 +1,28 @@
+# @GENTOO_PORTAGE_EPREFIX@/etc/mysql/50-distro-server.cnf: The global mysql configuration file.
+
+# add a section [mysqld-8.0] for specific configurations
+[mysqld]
+character-set-server = utf8mb4
+user = mysql
+port = 3306
+socket = @GENTOO_PORTAGE_EPREFIX@/var/run/mysqld/mysqld.sock
+pid-file = @GENTOO_PORTAGE_EPREFIX@/var/run/mysqld/mysql.pid
+log-error = @GENTOO_PORTAGE_EPREFIX@/var/log/mysql/mysqld.err
+basedir = @GENTOO_PORTAGE_EPREFIX@/usr
+datadir = @DATADIR@
+skip-external-locking
+lc_messages_dir = @GENTOO_PORTAGE_EPREFIX@/usr/share/mysql
+#Set this to your desired error message language
+lc_messages = en_US
+
+# security:
+# using "localhost" in connects uses sockets by default
+# skip-networking
+bind-address = 127.0.0.1
+
+log-bin
+server-id = 1
+
+# point the following paths to different dedicated disks
+tmpdir = @GENTOO_PORTAGE_EPREFIX@/tmp/
+#log-update = @GENTOO_PORTAGE_EPREFIX@/path-to-dedicated-directory/hostname