MFH: r408349

Revert recent change on performance_schema; introduce OPTION for it

The recent port version 5.7.10_2 introduced a change in the default
behaviour of performance_schema. Due to an ongoing debate in the
community whether the default setting should lean towards performance
(previous default before 5.7.10_2) or memory consumption, maintainer
had changed the default to memory consumption in 5.7.10_2.
This introduces an OPTION knob PERFSCHM to control the default behaviour
of performance_schema. It defaults to ON, hence restoring the previous
default.
Bump PORTREVISION.

PR:		206912
Submitted by:	smh
Reviewed by:	mokhi64@gmail.com (maintainer), riggs
Approved by:	ports-secteam (feld), mokhi64@gmail.com (maintainer)
This commit is contained in:
Thomas Zander 2016-02-08 18:41:55 +00:00
parent 1c5b104779
commit c84fc30e05
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2016Q1/; revision=408495
3 changed files with 12 additions and 6 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= mysql
PORTVERSION= 5.7.10
PORTREVISION?= 2
PORTREVISION?= 3
CATEGORIES= databases ipv6
MASTER_SITES= MYSQL/MySQL-5.7:MySQL SF/boost/boost/1.59.0:boost
PKGNAMESUFFIX?= 57-server
@ -102,6 +102,15 @@ INNOBASE_CMAKE_ON= -DWITH_INNOBASE_STORAGE_ENGINE=1
PARTITION_CMAKE_ON= -DWITH_PARTITION_STORAGE_ENGINE=1
PERFSCHEMA_CMAKE_ON= -DWITH_PERFSCHEMA_STORAGE_ENGINE=1
OPTIONS_GROUP+= FEATURES
OPTIONS_GROUP_FEATURES= PERFSCHM
FEATURES_DESC= Default features knobs
PERFSCHM_DESC= Enable "Performance Schema" by default (High RAM usage)
OPTIONS_DEFAULT+= PERFSCHM
PERFSCHM_SUB_LIST+= PERFSCHEMRC=""
PERFSCHM_SUB_LIST_OFF+= PERFSCHEMRC="--skip-performance-schema"
.else
USES+= readline
.endif

View File

@ -41,7 +41,7 @@ mysql_limits_args="-e -U ${mysql_user}"
: ${hostname:=`/bin/hostname`}
pidfile=${mysql_pidfile:-"${mysql_dbdir}/${hostname}.pid"}
command="/usr/sbin/daemon"
command_args="-c -f %%PREFIX%%/bin/mysqld_safe --defaults-extra-file=${mysql_optfile} --user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} ${mysql_args} --skip-performance-schema"
command_args="-c -f %%PREFIX%%/bin/mysqld_safe --defaults-extra-file=${mysql_optfile} --user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} ${mysql_args} %%PERFSCHEMRC%%"
procname="%%PREFIX%%/libexec/mysqld"
start_precmd="${name}_prestart"
start_postcmd="${name}_poststart"

View File

@ -3,11 +3,8 @@
Remember to run mysql_upgrade the first time you start the MySQL server
after an upgrade from an earlier version.
Init. password for first time use of MySQL is saved in $HOME/.mysql_secret
Initial password for first time use of MySQL is saved in $HOME/.mysql_secret
ie. when you want to use "mysql -u root -p" first you should see password
in /root/.mysql_secret
performance_schema feature is set off by default, because of using high RAM.
if you need it enable it yourself :)
*****************************************************************************