Hello community,
here is the log from the commit of package mysql-community-server.4004 for
openSUSE:13.1:Update checked in at 2015-09-25 10:19:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:13.1:Update/mysql-community-server.4004 (Old)
and /work/SRC/openSUSE:13.1:Update/.mysql-community-server.4004.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mysql-community-server.4004"
Changes:
--------
New Changes file:
--- /dev/null 2015-09-24 09:51:01.260026505 +0200
+++
/work/SRC/openSUSE:13.1:Update/.mysql-community-server.4004.new/mysql-community-server.changes
2015-09-25 10:18:51.000000000 +0200
@@ -0,0 +1,2044 @@
+-------------------------------------------------------------------
+Mon Aug 31 13:07:13 UTC 2015 - [email protected]
+
+- update to MySQL 5.6.26
+ * changes:
+ * http://dev.mysql.com/doc/relnotes/mysql/5.6/en/news-5-6-26.html
+ * fixed CVEs:
+ CVE-2015-2617, CVE-2015-2648, CVE-2015-2611, CVE-2015-2582
+ CVE-2015-4752, CVE-2015-4756, CVE-2015-2643, CVE-2015-4772
+ CVE-2015-4761, CVE-2015-4757, CVE-2015-4737, CVE-2015-4771
+ CVE-2015-4769, CVE-2015-2639, CVE-2015-2620, CVE-2015-2641
+ CVE-2015-2661, CVE-2015-4767
+ * fix [bnc#938412]
+ * remove the following patches (changes were merged upstream):
+ * mysql-community-server-5.6.24-regex_heap_overflow.patch
+ * mysql-5.6.25-logjam.patch
+- disable Performance Schema by default. Since MySQL 5.6.6 upstream
+ enabled Performance Schema by default which results in increased
+ memory usage. The added option disable Performance Schema again in
+ order to decrease MySQL memory usage [bnc#852477].
+- fix spurious macro expansion in comment in specfile
+- install INFO_BIN and INFO_SRC, noticed in MDEV-6912
+- use spec-cleaner
+- tweak some cmake switches to enable more things
+ * WITH_ASAN=ON adress sanitization
+ WITH_LIBWRAP=ON tcp wrappers
+ ENABLED_PROFILING=OFF profiling disable
+ ENABLE_DEBUG_SYNC=OFF debug testing sync disable
+ WITH_PIC=ON by default we want pic generated binaries
+- remove superfluous '--group' parameter from mysql-systemd-helper
+- make -devel package installable in the presence of LibreSSL
+- cleanup after the update-message if it was displayed
+- add 'exec' to mysql-systemd-helper to shutdown mysql/mariadb cleanly
+ [bnc#943096]
+- remove redundant entry from %{_tmpfilesdir}/mysql.conf. Using both
+ 'x' and 'X' options is redundant and causes a warning message.
+ Leaving only the 'x' line fixes this problem. [bnc#942908]
+- mariadb: replace readline-devel for readline5-devel (MDEV-6912)
+ [bnc#902396]
+- mariadb-101: set cmake options for MariaDB Galera Cluster
+
+-------------------------------------------------------------------
+Mon Jul 13 13:30:19 UTC 2015 - [email protected]
+
+- Update syntax of systemd helper (boo#937767)
+- Create correct symlinks for libmysqlclient_r18 (boo#937754)
+
+-------------------------------------------------------------------
+Tue Jun 30 11:34:34 UTC 2015 - [email protected]
+
+- Version bump to 5.6.25:
+ http://dev.mysql.com/doc/relnotes/mysql/5.6/en/news-5-6-25.html
+ * Fixes bnc#934789 VUL-0: mariadb/mysql: Logjam Attack: mysql uses 512 bit dh
+ groups in SSL
+- Sync with git state of mysql-packaging
+
+-------------------------------------------------------------------
+Tue Sep 17 14:13:15 UTC 2013 - [email protected]
+
+- mysql-community-server-5.6.12-va_list.patch: Fix invalid use of va_list
+
+-------------------------------------------------------------------
+Mon Sep 9 10:35:47 CEST 2013 - [email protected]
+
+- better version detection
+- drop /etc/mysql dir, use upstream /etc/my.cfn.d only
+
+-------------------------------------------------------------------
+Fri Aug 30 11:22:24 CEST 2013 - [email protected]
+
+- include info file
+- better README
+- Build with -DOPENSSL_LOAD_CONF so mariadb respects
+ and load the system's openSSL configuration.
+
+-------------------------------------------------------------------
+Thu Aug 15 15:55:26 CEST 2013 - [email protected]
+
+- fix build for Factory
+ * mysql-community-server-5.6.12-srv_buf_size.patch
+
+-------------------------------------------------------------------
+Mon Aug 12 15:34:19 CEST 2013 - [email protected]
+
+- chown --no-dereference instead of chown to improve security
+ * similar issue as CVE-2013-1976
+- fix build for ppc64 using -mminimal-toc
+- merge latest packaging fixes
+ * more cautious upgrades
+
+-------------------------------------------------------------------
+Wed Jul 31 15:31:40 CEST 2013 - [email protected]
+
+- get rid of info which is not info (bnc#747811)
+- minor polishing of spec/installation
+
+-------------------------------------------------------------------
+Fri Jul 26 10:06:18 CEST 2013 - [email protected]
+
+- fix ownership of logdir (bnc#763150)
+
+-------------------------------------------------------------------
+Tue Jun 18 16:44:22 UTC 2013 - [email protected]
+
+- dehardcode libdir, use %{_libdir} macro instead.
+ mysql-community-server-5.6.12-deharcode-libdir.patch
+
+-------------------------------------------------------------------
+Thu Jun 6 13:20:49 UTC 2013 - [email protected]
+
+- enable support for libaio (bnc#796164)
+
+-------------------------------------------------------------------
+Wed Jun 5 13:08:03 UTC 2013 - [email protected]
+
+- better rights for logdir (bnc#789263)
+
+-------------------------------------------------------------------
+Wed Jun 5 08:50:54 UTC 2013 - [email protected]
+
+- Moving directory with configuration to upstream default
+ (/etc/mysql -> /etc/my.cnf.d)
+
+-------------------------------------------------------------------
+Tue Jun 4 12:59:01 CEST 2013 - [email protected]
+
+- new default config file
+- switched to 5.6 branch
+ http://dev.mysql.com/doc/refman/5.6/en/upgrading-from-previous-series.html
+ http://dev.mysql.com/doc/relnotes/mysql/5.6/en/index.html
+
+-------------------------------------------------------------------
+Mon Apr 22 11:36:33 UTC 2013 - [email protected]
+
+- few fixes to init script backported form SLE
+ (mainly one race condition during update)
+
+-------------------------------------------------------------------
+Mon Apr 22 10:49:16 UTC 2013 - [email protected]
+
+- updated to 5.5.31, see
+ http://dev.mysql.com/doc/relnotes/mysql/5.5/en/news-5-5-31.html
+
+-------------------------------------------------------------------
+Tue Mar 12 16:01:26 UTC 2013 - [email protected]
+
+- systemd awareness for openSUSE >= 12.1
+
+-------------------------------------------------------------------
+Sun Mar 3 18:11:21 UTC 2013 - [email protected]
+
+- Add aarch64 to the list of lib64 platforms
+
+-------------------------------------------------------------------
+Thu Feb 7 11:46:07 CET 2013 - [email protected]
+
+- updated to 5.5.30, see
+ http://dev.mysql.com/doc/relnotes/mysql/5.5/en/news-5-5-30.html
+
+-------------------------------------------------------------------
+Thu Jan 17 09:09:07 CET 2013 - [email protected]
+
+- MySQL is not default anymore
+
+-------------------------------------------------------------------
+Mon Jan 7 17:23:29 CET 2013 - [email protected]
+
+- fixed some tests depending on latin1 as a default
+
+-------------------------------------------------------------------
+Wed Jan 2 11:44:38 CET 2013 - [email protected]
+
+- updated to 5.5.29, see
+ http://dev.mysql.com/doc/refman/5.5/en/news-5-5-29.html
+
+-------------------------------------------------------------------
+Mon Nov 19 17:27:50 CET 2012 - [email protected]
+
+- updated to 5.5.28, see
+ http://dev.mysql.com/doc/refman/5.5/en/news-5-5-28.html
+ http://dev.mysql.com/doc/refman/5.5/en/news-5-5-27.html
+ http://dev.mysql.com/doc/refman/5.5/en/news-5-5-26.html
+
+-------------------------------------------------------------------
+Mon Aug 27 09:21:59 UTC 2012 - [email protected]
+
+- correct libmysqld18 requires %{name}-errormessages
+
+-------------------------------------------------------------------
+Mon Jul 9 15:07:58 CEST 2012 - [email protected]
+
+- updated to 5.5.25a
+ * fixes regression bug in the optimizer could cause excessive disk
+ usage for UPDATE statements. (upstream#65745, bnc#770403)
+
+-------------------------------------------------------------------
+Mon Jul 2 15:01:10 CEST 2012 - [email protected]
++++ 1847 more lines (skipped)
++++ between /dev/null
++++ and
/work/SRC/openSUSE:13.1:Update/.mysql-community-server.4004.new/mysql-community-server.changes
New:
----
README.SUSE
README.debug
README.install
_constraints
baselibs.conf
configuration-tweaks.tar.bz2
my.ini
mysql-5.6.26.tar.gz
mysql-community-server.changes
mysql-community-server.spec
mysql-patches.tar.bz2
mysql-systemd-helper
mysql.SuSEfirewall2
mysql.service
mysql.target
[email protected]
series
suse-test-run
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ mysql-community-server.spec ++++++
++++ 827 lines (skipped)
++++++ README.SUSE ++++++
Notes about MySQL 5.1 package:
==============================
With MySQL 5.1 package we introduced some changes you may like to know. Most of
them will affect you only if you are upgrading from previous version and you
did some changes to your configuration.
1) Plugins:
===========
One of the new features in MySQL 5.1 is support for plugins. So some of the
storage engines are now shipped like that. You can use following plugins:
- archive
- blackhole
- federated
- example
InnoDB is still compiled as internal part of MySQL. If you are upgrading from
version 5.0 or if this is your first installation of MySQL 5.1, all plugins
will be enabled by default and you can disable them manually later (see
http://dev.mysql.com/doc/refman/5.1/en/uninstall-plugin.html).
With this change you need to remove skip-federated option from your my.cnf file
if you have changed it manually. This option was there by default in previous
versions of MySQL.
2) File locations:
==================
There were some changes in files locations. Most of them were made in the
default configuration file so if you are experiencing problems and you have
made some manual adjustments to your /etc/my.cnf, try to merge this file with
/etc/my.cnf.rpmnew.
File locations changes:
- MySQL socket file and pid file were moved from /var/lib/mysql to more
reasonable location ( /var/run/mysql ) by default.
- MySQL log files are in /var/log/mysql.
3) BerkeleyDB:
==============
MySQL no longer contains BerkeleyDB as storage engine. There is no fix for that
and if you used it before, you have to migrate your data to different storage
engine BEFORE updating. This can be done for example using following command:
ALTER TABLE foo ENGINE = INNODB;
4) MySQL Upgrade Log
====================
If you missed messages displayed during automatic MySQL database upgrade, you
can find them from now on in
/var/log/mysql/mysqld-upgrade.log
5) Migration from previous versions
===================================
If you are migrating from previous versions, you should take a look at official
documentation regarding migration:
* 5.0 -> 5.1 series
https://dev.mysql.com/doc/refman/5.1/en/upgrading-from-previous-series.html
* 5.1 -> 5.5 series
https://dev.mysql.com/doc/refman/5.5/en/upgrading-from-previous-series.html
* 5.5 -> 5.6 series
https://dev.mysql.com/doc/refman/5.6/en/upgrading-from-previous-series.html
++++++ README.debug ++++++
Debugging mysqld crashes
========================
Author: Michal Marek <[email protected]>
Last modified: 2014-11-21
Contents
--------
1) Query log
2) Coredumps and Backtraces
3) Trace files
In case your MySQL server crashes, here are some hints on what to
include in a bugreport at https://bugzilla.novell.com/ . Please report
there only bugs in the MySQL packages packaged by Novell/SUSE, bugs in
binaries / source provided by MySQL AB should be reported at
http://bugs.mysql.com/ .
1) Query log
------------
Note: Skip this chapter if you already have an exact query that
crashes the server
To find out which query possibly crashed the server, add the following
line to your /etc/my.cnf into section [mysqld]:
log=/var/lib/mysql/mysqld-query.log
Mysqld then will, at some performance cost, log all queries into this
file. After a server crash, you can examine the queries from the time it
crashed and try to reproduce the crash with single queries (this might
not allways work, eg. if the crash is caused by some race condition).
Note that this log file may become extremly large, so if you decide to
attach it whole to the bugzilla, don't forget to
bzip2 -k /var/lib/mysql/mysqld-query.log
and attach the bzipped file instead.
2) Coredumps and Backtraces
---------------------------
Another valuable information for the developers is the backtrace. The
easies way to get one is to let mysqld produce a coredump. Add the
following line to your /etc/my.cnf into section [mysqld]:
core-file
The core file will be written to the /var/lib/mysql/ directory. I
suggest setting the kernel variable kernel.core_uses_pid to 1
sysctl -w kernel.core_uses_pid=1
so that the coredumps don't overwrite each other if you experience
multiple crashes.
After you got the core file, install the gdb and mysql-debuginfo
packages and run
gdb /usr/sbin/mysqld /var/lib/mysql/<core>
(gdb) bt
Replace the <core> with the actual name of the coredump.
3) Trace files
--------------
The trace file will contain various debug information and function
calls/returns and will become _extremly_ huge after a while, so don't
attach it to bugzilla unless requested.
Add the following line to your /etc/my.cnf into section [mysqld]:
stack-trace
The trace file will be then written to /var/lib/mysql directory.++++++
README.install ++++++
You just installed MySQL server for the first time.
You can start it using:
rcmysql start
During first start empty database will be created for your automatically.
PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:
'/usr/bin/mysqladmin' -u root password 'new-password'
'/usr/bin/mysqladmin' -u root -h <hostname> password 'new-password'
Alternatively you can run:
'/usr/bin/mysql_secure_installation'
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
++++++ _constraints ++++++
<constraints>
<hardware>
<physicalmemory>
<size unit="M">5000</size>
</physicalmemory>
<disk>
<size unit="G">13</size>
</disk>
</hardware>
</constraints>
++++++ baselibs.conf ++++++
libmysql56client18
libmysql56client_r18
++++++ my.ini ++++++
# This is default example of MySQL/MariaDB configuration provided with openSUSE
package
# It is based on upstream defaults with some additional examples.
# The following options will be passed to all MariaDB clients
[client]
# password = your_password
# port = 3306
# socket = /var/run/mysql/mysql.sock
[mysqld]
# Remove leading # if you don't want to listen on network (only socket - safer)
# skip-networking
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M
# Using newer file format that supports dynamic and compressed row formats.
# If you are using replication you have to make sure, that these options are
# set everywhere the same way (probably comment them out is the easiest way)
innodb_file_format=Barracuda
innodb_file_per_table=ON
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin=mysql-bin
# binlog_format=mixed
# Remove leading # if you want to store your database elsewhere
# datadir = /var/lib/mysql
# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id = 1
# These are commonly set, remove the # and set as required.
# port = 3306
# socket = /var/run/mysql/mysql.sock
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
#
# skip-networking
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M
# The following option disables Performance Schema in order to decrease
# MySQL memory usage.
performance_schema=OFF
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
[mysqld_multi]
mysqld = /usr/bin/mysqld_safe
mysqladmin = /usr/bin/mysqladmin
log = /var/log/mysqld_multi.log
# If you want to use mysqld_multi uncomment 1 or more mysqld sections
# below or add your own ones.
# WARNING
# --------
# If you uncomment mysqld1 than make absolutely sure, that database mysql,
# configured above, is not started. This may result in corrupted data!
#
# [mysqld1]
# port = 3306
# datadir = /var/lib/mysql
# pid-file = /var/lib/mysql/mysqld.pid
# socket = /var/lib/mysql/mysql.sock
# user = mysql
# [mysqld2]
# port = 3307
# datadir = /var/lib/mysql-databases/mysqld2
# pid-file = /var/lib/mysql-databases/mysqld2/mysql.pid
# socket = /var/lib/mysql-databases/mysqld2/mysql.sock
# user = mysql
# [mysqld3]
# port = 3308
# datadir = /var/lib/mysql-databases/mysqld3
# pid-file = /var/lib/mysql-databases/mysqld3/mysql.pid
# socket = /var/lib/mysql-databases/mysqld3/mysql.sock
# user = mysql
# [mysqld6]
# port = 3309
# datadir = /var/lib/mysql-databases/mysqld6
# pid-file = /var/lib/mysql-databases/mysqld6/mysql.pid
# socket = /var/lib/mysql-databases/mysqld6/mysql.sock
# user = mysql
!includedir /etc/my.cnf.d
++++++ mysql-systemd-helper ++++++
#!/bin/bash
die() {
echo "$1"
exit 1
}
# Read options from config file
read_config() {
# Initial settings
MYSQLVER="$(echo @MYSQLVER@ | sed 's|\.[0-9]\+$||')"
mysql_daemon_user=mysql
mysql_daemon_group=mysql
if [[ -z "$INSTANCE" || "x$INSTANCE" = "xdefault" ]]; then
datadir=/var/lib/mysql
socket="/var/run/mysql/mysql.sock"
else
datadir="/var/lib/mysql-$INSTANCE"
socket="/var/run/mysql/mysql.${INSTANCE}.sock"
fi
# Read options - important for multi setup
if [[ -n "$INSTANCE" && "x$INSTANCE" != "xdefault" ]]; then
opts="$(/usr/bin/my_print_defaults mysqld mysqld_multi
"$INSTANCE")"
tmp_opts="$opts"
else
opts="$(/usr/bin/my_print_defaults mysqld)"
tmp_opts="$opts"
fi
# Update local variables according to the settings from config
for arg in $tmp_opts; do
case "$arg" in
--basedir=*) basedir="$(echo "$arg" | sed
-e 's/^[^=]*=//')" ;;
--socket=*) socket="$(echo "$arg" | sed
-e 's/^[^=]*=//')" ;;
--datadir=*) datadir="$(echo "$arg" | sed
-e 's/^[^=]*=//')" ;;
--user=*) mysql_daemon_user="$(echo "$arg" | sed
-e 's/^[^=]*=//')" ;;
esac
done
}
# Create new empty database if needed
mysql_install() {
if [[ ! -d "$datadir/mysql" ]]; then
echo "Creating MySQL privilege database... "
mysql_install_db --user="$mysql_daemon_user"
--datadir="$datadir" || \
die "Creation of MySQL databse in $datadir failed"
echo -n "$MYSQLVER" > "$datadir"/mysql_upgrade_info
fi
}
# Upgrade database if needed
mysql_upgrade() {
# Run mysql_upgrade on every package install/upgrade. Not always
# necessary, but doesn't do any harm.
if [[ -f "$datadir/.run-mysql_upgrade" ]]; then
echo "Checking MySQL configuration for obsolete options..."
sed -i -e
's|^\([[:blank:]]*\)skip-locking|\1skip-external-locking|' \
-e 's|^\([[:blank:]]*skip-federated\)|#\1|' /etc/my.cnf
# instead of running mysqld --bootstrap, which wouldn't allow
# us to run mysql_upgrade, we start a full-featured server with
# --skip-grant-tables and restict access to it by unix
# permissions of the named socket
echo "Trying to run upgrade of MySQL databases..."
# Check whether upgrade process is not already running
protected="$(cat "/var/run/mysql/protecteddir.$INSTANCE" 2>
/dev/null)"
if [[ -n "$protected" && -d "$protected" ]]; then
pid="$(cat "$protected/mysqld.pid" 2> /dev/null)"
if [[ "$pid" && -d "/proc/$pid" ]] &&
[[ $(readlink "/proc/$pid/exe" | grep -q "mysql")
]]; then
die "Another upgrade in already in progress!"
else
echo "Stale files from previous upgrade
detected, cleaned them up"
rm -rf "$protected"
rm -f "/var/run/mysql/protecteddir.$INSTANCE"
fi
fi
protected="$(mktemp -d -p /var/tmp mysql-protected.XXXXXX | tee
"/var/run/mysql/protecteddir.$INSTANCE")"
[ -n "$protected" ] || die "Can't create a tmp dir '$protected'"
# Create a secure tmp dir
chown --no-dereference "$mysql_daemon_user:$mysql_daemon_group"
"$protected" || die "Failed to set group/user to '$protected'"
chmod 0700 "$protected" || die "Failed to set permissions to
'$protected'"
# Run protected MySQL accessible only though socket in our
directory
echo "Running protected MySQL... "
/usr/sbin/mysqld \
--user="$mysql_daemon_user" \
$opts \
--skip-networking \
--skip-grant-tables \
--log-error="$protected/log_upgrade_run" \
--socket="$protected/mysql.sock" \
--pid-file="$protected/mysqld.pid" &
mysql_wait "$protected/mysql.sock" || die "MySQL didn't start,
can't continue"
# Run upgrade itself
echo "Running upgrade itself..."
echo "It will do some chek first and report all errors and
tries to correct them"
echo
if /usr/bin/mysql_upgrade --no-defaults --force
--socket="$protected/mysql.sock"; then
echo "Everything upgraded successfully"
up_ok=""
rm -f "$datadir/.run-mysql_upgrade"
[[ $(grep -q "^$MYSQLVER" "$datadir/mysql_upgrade_info"
2> /dev/null) ]] || \
echo -n "$MYSQLVER" >
"$datadir/mysql_upgrade_info"
else
echo "Upgrade failed"
up_ok="false"
fi
# Shut down MySQL
echo "Shuting down protected MySQL"
kill "$(cat "$protected/mysqld.pid")"
for i in {1..30}; do
/usr/bin/mysqladmin --socket="$protected/mysql.sock"
ping > /dev/null 2>&1 || break
done
/usr/bin/mysqladmin --socket="$protected/mysql.sock" ping >
/dev/null 2>&1 && kill -9 "$(cat "$protected/mysqld.pid")"
# Cleanup
echo "Final cleanup"
rm -rf "$protected" "/var/run/mysql/protecteddir.$INSTANCE"
[[ -z "$up_ok" ]] || die "Something failed during upgrade,
please check logs"
fi
}
mysql_wait() {
[[ -z "$1" ]] || socket="$1"
echo "Waiting for MySQL to start"
for i in {1..60}; do
/usr/bin/mysqladmin --socket="$socket" ping > /dev/null 2>&1 &&
break
sleep 1
done
if /usr/bin/mysqladmin --socket="$socket" ping > /dev/null 2>&1; then
echo "MySQL is alive"
return 0
else
echo "MySQL is still dead"
return 1
fi
}
mysql_start() {
exec /usr/sbin/mysqld --user="$mysql_daemon_user" $opts
}
# We rely on output in english at some points
LC_ALL=C
INSTANCE="$2"
read_config
mkdir -p /var/run/mysql
chown --no-dereference "$mysql_daemon_user:$mysql_daemon_group" /var/run/mysql
case "$1" in
install)
mysql_install ;;
upgrade)
mysql_upgrade ;;
start)
mysql_start ;;
wait)
mysql_wait ;;
*)
echo "Supported commands are:"
echo " install - creates empty database if needed"
echo " upgrade - tries to migrate data to newer version if
needed"
echo " start - tries to start instance"
echo " wait - waits till instance is pingable"
echo "All commands can take extra argument which is group from
'mysqld_multi' you want to work with"
;;
esac
++++++ mysql.SuSEfirewall2 ++++++
## Name: MySQL server
## Description: opens ports for MySQL in order to allow other hosts connect to
it
# space separated list of allowed TCP ports
TCP="3306"
++++++ mysql.service ++++++
[Unit]
Description=MySQL server
Wants=basic.target
Conflicts=mysql.target [email protected]
After=basic.target network.target syslog.target
[Service]
Restart=on-failure
Type=simple
ExecStartPre=/usr/lib/mysql/mysql-systemd-helper install default
ExecStartPre=/usr/lib/mysql/mysql-systemd-helper upgrade default
ExecStart=/usr/lib/mysql/mysql-systemd-helper start default
ExecStartPost=/usr/lib/mysql/mysql-systemd-helper wait default
[Install]
WantedBy=multi-user.target
++++++ mysql.target ++++++
[Unit]
Description=MySQL target allowing to control multi setup
++++++ [email protected] ++++++
[Unit]
Description=MySQL server - %I instance
Wants=basic.target
PartOf=mysql.target
After=basic.target network.target syslog.target
[Service]
Restart=on-failure
Type=simple
ExecStartPre=/usr/lib/mysql/mysql-systemd-helper install %i
ExecStartPre=/usr/lib/mysql/mysql-systemd-helper upgrade %i
ExecStart=/usr/lib/mysql/mysql-systemd-helper start %i
ExecStartPost=/usr/lib/mysql/mysql-systemd-helper wait %i
[Install]
WantedBy=multi-user.target
++++++ series ++++++
mysql-community-server-5.6.10-hotcopy.patch
mysql-community-server-5.6.10-group.patch
mysql-community-server-5.5.6-safe-process-in-bin.patch
mysql-community-server-5.6.3-logrotate.patch
mysql-community-server-5.5.6-strncat-overflow.patch
mysql-community-server-5.1.51-install_db-quiet.patch
mysql-community-server-5.1.51-mysql_config.patch
mysql-community-server-5.6.12-upgrade-exit-status.patch
mysql-community-server-5.6.12-deharcode-libdir.patch
mysql-community-server-5.6.12-upgrade-datadir.patch
mysql-community-server-5.6.12-srv_buf_size.patch
mysql-community-server-5.6.12-logrotate-su.patch
mysql-community-server-5.6.24-static_library.patch
++++++ suse-test-run ++++++
#!/usr/bin/perl
#
# Test the SUSE mysql package using the MySQL testsuite
my $id = getpwnam("mysql") or die "can't find user \"mysql\": $!";
my $dir = "/usr/share/mysql-test/";
if ($< == 0) {
($<, $>) = ($id, $id);
if ($< != $id || $> != $id) {
die "can't switch to user mysql(id $id): $!";
}
}
chdir($dir) or die "can't cd to $dir: $!";
exec("./mysql-test-run.pl", "--big-test", @ARGV);
die "can't execute mysql-test-run.pl: $!";