Commit 7c0d03d2 authored by Aleksandr Kuzminsky's avatar Aleksandr Kuzminsky

Debian configs added for Percona-XtraDB

parent 0fcb3215
mysql-client-5.1: package-has-a-duplicate-relation
mysql-client-5.1: wrong-name-for-upstream-changelog usr/share/doc/mysql-client-5.1/changelog.innotop.gz
mysql-client-5.1: pkg-not-in-package-test innotop
etc/mysql/my.cnf
usr/share/mysql-common/internal-use-only
script-not-executable ./usr/share/mysql-common/internal-use-only/_etc_init.d_mysql
script-not-executable ./usr/share/mysql-common/internal-use-only/_etc_mysql_debian-start
mysql-server-5.1: possible-bashism-in-maintainer-script postinst:81 'p{("a".."z","A".."Z",0..9)[int(rand(62))]}'
mysql-server-5.1: possible-bashism-in-maintainer-script preinst:33 '${cmd/ */}'
mysql-server-5.1: statically-linked-binary ./usr/bin/mysql_tzinfo_to_sql
mysql-server-5.1: statically-linked-binary ./usr/sbin/mysqld
...@@ -15,7 +15,7 @@ usr/bin/mysqlreport ...@@ -15,7 +15,7 @@ usr/bin/mysqlreport
usr/bin/mysqlshow usr/bin/mysqlshow
usr/bin/mysql_waitpid usr/bin/mysql_waitpid
usr/sbin/mysqlmanager usr/sbin/mysqlmanager
usr/share/lintian/overrides/mysql-client-5.1 usr/share/lintian/overrides/percona-xtradb-client-5.1
usr/share/man/man1/innotop.1 usr/share/man/man1/innotop.1
usr/share/man/man1/myisam_ftdump.1 usr/share/man/man1/myisam_ftdump.1
usr/share/man/man1/mysql.1 usr/share/man/man1/mysql.1
......
percona-xtradb-client-5.1: package-has-a-duplicate-relation
percona-xtradb-client-5.1: wrong-name-for-upstream-changelog usr/share/doc/percona-xtradb-client-5.1/changelog.innotop.gz
percona-xtradb-client-5.1: pkg-not-in-package-test innotop
etc/mysql/my.cnf
usr/share/percona-xtradb-common/internal-use-only
script-not-executable ./usr/share/percona-xtradb-common/internal-use-only/_etc_init.d_mysql
script-not-executable ./usr/share/percona-xtradb-common/internal-use-only/_etc_mysql_debian-start
...@@ -9,7 +9,7 @@ CNF=/etc/mysql/my.cnf ...@@ -9,7 +9,7 @@ CNF=/etc/mysql/my.cnf
# Beware that there are two ypwhich one of them needs the 2>/dev/null! # Beware that there are two ypwhich one of them needs the 2>/dev/null!
if test -n "`which ypwhich 2>/dev/null`" && ypwhich >/dev/null 2>&1; then if test -n "`which ypwhich 2>/dev/null`" && ypwhich >/dev/null 2>&1; then
db_input high mysql-server-5.1/nis_warning || true db_input high percona-xtradb-server-5.1/nis_warning || true
db_go db_go
fi fi
...@@ -20,27 +20,27 @@ fi ...@@ -20,27 +20,27 @@ fi
if [ "$1" = "configure" ] && ([ -z "$2" ] && [ ! -e "/var/lib/mysql/debian-5.0.flag" ] ) || [ "$1" = "reconfigure" ]; then if [ "$1" = "configure" ] && ([ -z "$2" ] && [ ! -e "/var/lib/mysql/debian-5.0.flag" ] ) || [ "$1" = "reconfigure" ]; then
while :; do while :; do
RET="" RET=""
db_input high mysql-server/root_password || true db_input high percona-xtradb-server/root_password || true
db_go db_go
db_get mysql-server/root_password db_get percona-xtradb-server/root_password
# if password isn't empty we ask for password verification # if password isn't empty we ask for password verification
if [ -z "$RET" ]; then if [ -z "$RET" ]; then
db_fset mysql-server/root_password seen false db_fset percona-xtradb-server/root_password seen false
db_fset mysql-server/root_password_again seen false db_fset percona-xtradb-server/root_password_again seen false
break break
fi fi
ROOT_PW="$RET" ROOT_PW="$RET"
db_input high mysql-server/root_password_again || true db_input high percona-xtradb-server/root_password_again || true
db_go db_go
db_get mysql-server/root_password_again db_get percona-xtradb-server/root_password_again
if [ "$RET" == "$ROOT_PW" ]; then if [ "$RET" == "$ROOT_PW" ]; then
ROOT_PW='' ROOT_PW=''
break break
fi fi
db_fset mysql-server/password_mismatch seen false db_fset percona-xtradb-server/password_mismatch seen false
db_input critical mysql-server/password_mismatch db_input critical percona-xtradb-server/password_mismatch
db_set mysql-server/root_password "" db_set percona-xtradb-server/root_password ""
db_set mysql-server/root_password_again "" db_set percona-xtradb-server/root_password_again ""
db_go db_go
done done
fi fi
...@@ -24,8 +24,8 @@ usr/bin/replace ...@@ -24,8 +24,8 @@ usr/bin/replace
usr/bin/resolve_stack_dump usr/bin/resolve_stack_dump
usr/bin/resolveip usr/bin/resolveip
usr/sbin/mysqld usr/sbin/mysqld
usr/share/doc/mysql-server-5.1/ usr/share/doc/percona-xtradb-server-5.1/
usr/share/lintian/overrides/mysql-server-5.1 usr/share/lintian/overrides/percona-xtradb-server-5.1
usr/share/man/man1/msql2mysql.1 usr/share/man/man1/msql2mysql.1
usr/share/man/man1/myisamchk.1 usr/share/man/man1/myisamchk.1
usr/share/man/man1/myisamlog.1 usr/share/man/man1/myisamlog.1
......
percona-xtradb-server-5.1: possible-bashism-in-maintainer-script postinst:81 'p{("a".."z","A".."Z",0..9)[int(rand(62))]}'
percona-xtradb-server-5.1: possible-bashism-in-maintainer-script preinst:33 '${cmd/ */}'
percona-xtradb-server-5.1: statically-linked-binary ./usr/bin/mysql_tzinfo_to_sql
percona-xtradb-server-5.1: statically-linked-binary ./usr/sbin/mysqld
...@@ -147,7 +147,7 @@ case "${1:-''}" in ...@@ -147,7 +147,7 @@ case "${1:-''}" in
if ! mysqld_status check_dead warn; then if ! mysqld_status check_dead warn; then
log_end_msg 1 log_end_msg 1
log_failure_msg "Please stop MySQL manually and read /usr/share/doc/mysql-server-5.1/README.Debian.gz!" log_failure_msg "Please stop MySQL manually and read /usr/share/doc/percona-xtradb-server-5.1/README.Debian.gz!"
exit -1 exit -1
else else
log_end_msg 0 log_end_msg 0
......
...@@ -27,7 +27,7 @@ test_mysql_access() { ...@@ -27,7 +27,7 @@ test_mysql_access() {
# call with $1 = "online" to connect to the server, otherwise it bootstraps # call with $1 = "online" to connect to the server, otherwise it bootstraps
set_mysql_rootpw() { set_mysql_rootpw() {
# forget we ever saw the password. don't use reset to keep the seen status # forget we ever saw the password. don't use reset to keep the seen status
db_set mysql-server/root_password "" db_set percona-xtradb-server/root_password ""
tfile=`mktemp` tfile=`mktemp`
if [ ! -f "$tfile" ]; then if [ ! -f "$tfile" ]; then
...@@ -127,9 +127,9 @@ EOF ...@@ -127,9 +127,9 @@ EOF
set -e set -e
# This is important to avoid dataloss when there is a removed # This is important to avoid dataloss when there is a removed
# mysql-server version from Woody lying around which used the same # percona-xtradb-server version from Woody lying around which used the same
# data directory and then somewhen gets purged by the admin. # data directory and then somewhen gets purged by the admin.
db_set mysql-server/postrm_remove_database false || true db_set percona-xtradb-server/postrm_remove_database false || true
# To avoid downgrades. # To avoid downgrades.
touch $mysql_statedir/debian-5.1.flag touch $mysql_statedir/debian-5.1.flag
...@@ -227,7 +227,7 @@ EOF ...@@ -227,7 +227,7 @@ EOF
# Upgrade password column format before the root password gets set. # Upgrade password column format before the root password gets set.
echo "$password_column_fix_query" | $MYSQL_BOOTSTRAP 2>&1 | $ERR_LOGGER echo "$password_column_fix_query" | $MYSQL_BOOTSTRAP 2>&1 | $ERR_LOGGER
db_get mysql-server/root_password && rootpw="$RET" db_get percona-xtradb-server/root_password && rootpw="$RET"
if ! set_mysql_rootpw; then if ! set_mysql_rootpw; then
password_error="yes" password_error="yes"
fi fi
...@@ -254,9 +254,9 @@ esac ...@@ -254,9 +254,9 @@ esac
# fails for any other reason, nothing happens. # fails for any other reason, nothing happens.
if [ "$1" = "configure" ]; then if [ "$1" = "configure" ]; then
if test_mysql_access; then if test_mysql_access; then
db_input medium mysql-server/root_password || true db_input medium percona-xtradb-server/root_password || true
db_go db_go
db_get mysql-server/root_password && rootpw="$RET" db_get percona-xtradb-server/root_password && rootpw="$RET"
if ! set_mysql_rootpw "online"; then if ! set_mysql_rootpw "online"; then
password_error="yes" password_error="yes"
...@@ -264,7 +264,7 @@ if [ "$1" = "configure" ]; then ...@@ -264,7 +264,7 @@ if [ "$1" = "configure" ]; then
fi fi
if [ "$password_error" = "yes" ]; then if [ "$password_error" = "yes" ]; then
db_input high mysql-server/error_setting_password || true db_input high percona-xtradb-server/error_setting_password || true
db_go db_go
fi fi
......
...@@ -44,7 +44,7 @@ case "$1" in ...@@ -44,7 +44,7 @@ case "$1" in
esac esac
# #
# - Do NOT purge logs or data if another mysql-sever* package is installed (#307473) # - Do NOT purge logs or data if another percona-xtradb-server* package is installed (#307473)
# - Remove the mysql user only after all his owned files are purged. # - Remove the mysql user only after all his owned files are purged.
# #
if [ "$1" = "purge" -a ! \( -x /usr/sbin/mysqld -o -L /usr/sbin/mysqld \) ]; then if [ "$1" = "purge" -a ! \( -x /usr/sbin/mysqld -o -L /usr/sbin/mysqld \) ]; then
...@@ -52,9 +52,9 @@ if [ "$1" = "purge" -a ! \( -x /usr/sbin/mysqld -o -L /usr/sbin/mysqld \) ]; the ...@@ -52,9 +52,9 @@ if [ "$1" = "purge" -a ! \( -x /usr/sbin/mysqld -o -L /usr/sbin/mysqld \) ]; the
rm -f /var/log/mysql.{log,err}{,.0,.[1234567].gz} rm -f /var/log/mysql.{log,err}{,.0,.[1234567].gz}
rm -rf /var/log/mysql rm -rf /var/log/mysql
db_input high mysql-server-5.1/postrm_remove_databases || true db_input high percona-xtradb-server-5.1/postrm_remove_databases || true
db_go || true db_go || true
db_get mysql-server-5.1/postrm_remove_databases || true db_get percona-xtradb-server-5.1/postrm_remove_databases || true
if [ "$RET" = "true" ]; then if [ "$RET" = "true" ]; then
# never remove the debian.cnf when the databases are still existing # never remove the debian.cnf when the databases are still existing
# else we ran into big trouble on the next install! # else we ran into big trouble on the next install!
...@@ -78,6 +78,6 @@ if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then ...@@ -78,6 +78,6 @@ if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
fi fi
# (normally) End automatically added section # (normally) End automatically added section
# no DEBHELPER here, "update-rc.d remove" fails if mysql-server-5.1 is installed # no DEBHELPER here, "update-rc.d remove" fails if percona-xtradb-server-5.1 is installed
exit 0 exit 0
...@@ -57,8 +57,8 @@ fi ...@@ -57,8 +57,8 @@ fi
# Abort if an NDB cluster is in use. # Abort if an NDB cluster is in use.
if egrep -q -r '^[^#]*ndb.connectstring' /etc/mysql/; then if egrep -q -r '^[^#]*ndb.connectstring' /etc/mysql/; then
db_fset mysql-server/no_upgrade_when_using_ndb seen false || true db_fset percona-xtradb-server/no_upgrade_when_using_ndb seen false || true
db_input high mysql-server/no_upgrade_when_using_ndb || true db_input high percona-xtradb-server/no_upgrade_when_using_ndb || true
db_go db_go
db_stop db_stop
exit 1 exit 1
...@@ -74,10 +74,10 @@ for i in `ls $DATADIR/debian-*.flag 2>/dev/null`; do ...@@ -74,10 +74,10 @@ for i in `ls $DATADIR/debian-*.flag 2>/dev/null`; do
fi fi
done done
if [ "$show_downgrade_warning" = 1 ]; then if [ "$show_downgrade_warning" = 1 ]; then
db_fset mysql-server-$this_version/really_downgrade seen false || true db_fset percona-xtradb-server-$this_version/really_downgrade seen false || true
db_input medium mysql-server-$this_version/really_downgrade || true db_input medium percona-xtradb-server-$this_version/really_downgrade || true
db_go db_go
db_get mysql-server-$this_version/really_downgrade || true db_get percona-xtradb-server-$this_version/really_downgrade || true
if [ "$RET" = "true" ]; then if [ "$RET" = "true" ]; then
rm -f $DATADIR/debian-*.flag rm -f $DATADIR/debian-*.flag
touch $DATADIR/debian-$this_version.flag touch $DATADIR/debian-$this_version.flag
...@@ -167,15 +167,15 @@ find $DATADIR -follow -not -group mysql -print0 2>/dev/null \ ...@@ -167,15 +167,15 @@ find $DATADIR -follow -not -group mysql -print0 2>/dev/null \
| xargs -0 --no-run-if-empty chgrp mysql | xargs -0 --no-run-if-empty chgrp mysql
set -e set -e
# Some files below /etc/ were possibly in the mysql-server-5.0/etch package # Some files below /etc/ were possibly in the percona-xtradb-server-5.0/etch package
# before. They get overwritten by current ones to avoid unnecessary dpkg questions. # before. They get overwritten by current ones to avoid unnecessary dpkg questions.
while read md5 file; do while read md5 file; do
if [ "`md5sum $file 2>/dev/null`" = "$md5 $file" ]; then if [ "`md5sum $file 2>/dev/null`" = "$md5 $file" ]; then
cp /usr/share/mysql-common/internal-use-only/`echo $file | sed 's/_g'` $file cp /usr/share/percona-xtradb-common/internal-use-only/`echo $file | sed 's/_g'` $file
fi fi
done <<EOT done <<EOT
6691f2fdc5c6d27ff0260eb79813e1bc /etc/init.d/mysql 6691f2fdc5c6d27ff0260eb79813e1bc /etc/init.d/mysql
b53b9552d44661361d39157c3c7c51d3 /etc/logrotate.d/mysql-server b53b9552d44661361d39157c3c7c51d3 /etc/logrotate.d/percona-xtradb-server
57f3e58f72582ca55100dc1ba0f1a8ae /etc/mysql/debian-start 57f3e58f72582ca55100dc1ba0f1a8ae /etc/mysql/debian-start
EOT EOT
......
...@@ -7,26 +7,26 @@ ...@@ -7,26 +7,26 @@
# Even minor modifications require translation updates and such # Even minor modifications require translation updates and such
# changes should be coordinated with translators and reviewers. # changes should be coordinated with translators and reviewers.
Template: mysql-server-5.1/really_downgrade Template: percona-xtradb-server-5.1/really_downgrade
Type: boolean Type: boolean
Default: false Default: false
_Description: Really proceed with downgrade? _Description: Really proceed with downgrade?
A file named /var/lib/mysql/debian-*.flag exists on this system. A file named /var/lib/mysql/debian-*.flag exists on this system.
. .
Such file is an indication that a mysql-server package with a higher Such file is an indication that a percona-xtradb-server package with a higher
version has been installed earlier. version has been installed earlier.
. .
There is no guarantee that the version you're currently installing There is no guarantee that the version you're currently installing
will be able to use the current databases. will be able to use the current databases.
Template: mysql-server-5.1/nis_warning Template: percona-xtradb-server-5.1/nis_warning
Type: note Type: note
#flag:translate!:3,5 #flag:translate!:3,5
_Description: Important note for NIS/YP users _Description: Important note for NIS/YP users
To use MySQL, the following entries for users and groups should be added To use MySQL, the following entries for users and groups should be added
to the system: to the system:
. .
/etc/passwd : mysql:x:100:101:MySQL Server:/var/lib/mysql:/bin/false /etc/passwd : mysql:x:100:101:Percona SQL Server:/var/lib/mysql:/bin/false
/etc/group : mysql:x:101: /etc/group : mysql:x:101:
. .
You should also check the permissions and the owner of the You should also check the permissions and the owner of the
...@@ -34,57 +34,57 @@ _Description: Important note for NIS/YP users ...@@ -34,57 +34,57 @@ _Description: Important note for NIS/YP users
. .
/var/lib/mysql: drwxr-xr-x mysql mysql /var/lib/mysql: drwxr-xr-x mysql mysql
Template: mysql-server-5.1/postrm_remove_databases Template: percona-xtradb-server-5.1/postrm_remove_databases
Type: boolean Type: boolean
Default: false Default: false
_Description: Remove all MySQL databases? _Description: Remove all Percona SQL databases?
The /var/lib/mysql directory which contains the MySQL databases is about The /var/lib/mysql directory which contains the Percona SQL databases is about
to be removed. to be removed.
. .
If you're removing the MySQL package in order to later install a more If you're removing the Percona SQL package in order to later install a more
recent version or if a different mysql-server package is already recent version or if a different percona-xtradb-server package is already
using it, the data should be kept. using it, the data should be kept.
Template: mysql-server-5.1/start_on_boot Template: percona-xtradb-server-5.1/start_on_boot
Type: boolean Type: boolean
Default: true Default: true
_Description: Start the MySQL server on boot? _Description: Start the Percona SQL server on boot?
The MySQL server can be launched automatically at boot time or manually The Percona SQL server can be launched automatically at boot time or manually
with the '/etc/init.d/mysql start' command. with the '/etc/init.d/mysql start' command.
Template: mysql-server/root_password Template: percona-xtradb-server/root_password
Type: password Type: password
_Description: New password for the MySQL "root" user: _Description: New password for the Percona SQL "root" user:
While not mandatory, it is highly recommended that you set a password While not mandatory, it is highly recommended that you set a password
for the MySQL administrative "root" user. for the Percona SQL administrative "root" user.
. .
If that field is left blank, the password will not be changed. If that field is left blank, the password will not be changed.
Template: mysql-server/root_password_again Template: percona-xtradb-server/root_password_again
Type: password Type: password
_Description: Repeat password for the MySQL "root" user: _Description: Repeat password for the Percona SQL "root" user:
Template: mysql-server/error_setting_password Template: percona-xtradb-server/error_setting_password
Type: error Type: error
_Description: Unable to set password for the MySQL "root" user _Description: Unable to set password for the Percona SQL "root" user
An error occurred while setting the password for the MySQL An error occurred while setting the password for the Percona SQL
administrative user. This may have happened because the account administrative user. This may have happened because the account
already has a password, or because of a communication problem with already has a password, or because of a communication problem with
the MySQL server. the Percona SQL server.
. .
You should check the account's password after the package installation. You should check the account's password after the package installation.
. .
Please read the /usr/share/doc/mysql-server-5.1/README.Debian file Please read the /usr/share/doc/percona-xtradb-server-5.1/README.Debian file
for more information. for more information.
Template: mysql-server/password_mismatch Template: percona-xtradb-server/password_mismatch
Type: error Type: error
_Description: Password input error _Description: Password input error
The two passwords you entered were not the same. Please try again. The two passwords you entered were not the same. Please try again.
Template: mysql-server/no_upgrade_when_using_ndb Template: percona-xtradb-server/no_upgrade_when_using_ndb
Type: error Type: error
_Description: NDB Cluster seems to be in use _Description: NDB Cluster seems to be in use
MySQL-5.1 has orphaned NDB Cluster support. Please migrate to the new Percona-SQL-5.1 has orphaned NDB Cluster support. Please migrate to the new
mysql-cluster package and remove all lines starting with "ndb" from mysql-cluster package and remove all lines starting with "ndb" from
all config files below /etc/mysql/. all config files below /etc/mysql/.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment