[packages/percona-server/v5.0.x: 1/202] This commit was manufactured by cvs2git to create branch 'MYSQL_5_0'.

glen glen at pld-linux.org
Wed Oct 21 16:09:07 CEST 2015


commit a2adeca39d630e8e7dd14cdeddea051cc96cfdd2
Author: cvs2git <feedback at pld-linux.org>
Date:   Sun Aug 6 23:09:05 2006 +0000

    This commit was manufactured by cvs2git to create branch 'MYSQL_5_0'.
    
    Sprout from master 2006-08-06 23:09:05 UTC Elan Ruusamäe <glen at pld-linux.org> '- updated to 5.0.24'
    Delete:
        mysql-align.patch
        mysql-alpha.patch
        mysql-bug-20153.patch
        mysql-build.patch
        mysql-c++.patch
        mysql-client-config.patch
        mysql-client.conf
        mysql-clusters.conf
        mysql-fix_privilege_tables.patch
        mysql-info.patch
        mysql-libwrap.patch
        mysql-ndb-cpc.init
        mysql-ndb-cpc.sysconfig
        mysql-ndb-ldflags.patch
        mysql-ndb-mgm.init
        mysql-ndb-mgm.sysconfig
        mysql-ndb.init
        mysql-ndb.sysconfig
        mysql-noproc.patch
        mysql-sql-cxx-pic.patch
        mysql.init
        mysql.logrotate
        mysql.monitrc
        mysql.spec
        mysql.sysconfig
        mysqld.conf

 mysql-align.patch                |  71 ---
 mysql-alpha.patch                |  11 -
 mysql-bug-20153.patch            |  18 -
 mysql-build.patch                |  12 -
 mysql-c++.patch                  |  12 -
 mysql-client-config.patch        |  30 --
 mysql-client.conf                |   3 -
 mysql-clusters.conf              |  10 -
 mysql-fix_privilege_tables.patch |  22 -
 mysql-info.patch                 |  15 -
 mysql-libwrap.patch              |  19 -
 mysql-ndb-cpc.init               |  73 ----
 mysql-ndb-cpc.sysconfig          |   2 -
 mysql-ndb-ldflags.patch          |  12 -
 mysql-ndb-mgm.init               |  73 ----
 mysql-ndb-mgm.sysconfig          |   2 -
 mysql-ndb.init                   |  73 ----
 mysql-ndb.sysconfig              |   2 -
 mysql-noproc.patch               |  33 --
 mysql-sql-cxx-pic.patch          |  10 -
 mysql.init                       | 900 --------------------------------------
 mysql.logrotate                  |  22 -
 mysql.monitrc                    |  23 -
 mysql.spec                       | 903 ---------------------------------------
 mysql.sysconfig                  |  23 -
 mysqld.conf                      | 190 --------
 26 files changed, 2564 deletions(-)
---
diff --git a/mysql.spec b/mysql.spec
deleted file mode 100644
index 6e482f8..0000000
--- a/mysql.spec
+++ /dev/null
@@ -1,903 +0,0 @@
-# TODO:
-# - trigger that prepares system from pre-cluster into cluster
-# - trigger /etc/mysqld.conf into /etc/mysql/mysqld.conf. Solve possible
-#   conflict with /var/lib/mysql/mysqld.conf
-# - C(XX)FLAGS for innodb subdirs are overriden by ./configure!
-# - http://bugs.mysql.com/bug.php?id=16470
-# - security: http://securitytracker.com/alerts/2006/Aug/1016617.html
-#	where is 5.0.24 available?
-#
-# Conditional build:
-%bcond_with	bdb		# Berkeley DB support
-%bcond_without	innodb		# Without InnoDB support
-%bcond_without	raid		# Without raid
-%bcond_without	ssl		# Without OpenSSL
-%bcond_without	tcpd		# Without libwrap (tcp_wrappers) support
-%bcond_without	big_tables	# Support tables with more than 4G rows even on 32 bit platforms
-#
-%include	/usr/lib/rpm/macros.perl
-#define	_snap	20060111
-Summary:	MySQL: a very fast and reliable SQL database engine
-Summary(de):	MySQL: ist eine SQL-Datenbank
-Summary(fr):	MySQL: un serveur SQL rapide et fiable
-Summary(pl):	MySQL: bardzo szybka i niezawodna baza danych (SQL)
-Summary(pt_BR):	MySQL: Um servidor SQL r�pido e confi�vel
-Summary(ru):	MySQL - ������� SQL-������
-Summary(uk):	MySQL - ������� SQL-������
-Summary(zh_CN):	MySQL���ݿ������
-Name:		mysql
-Version:	5.0.22
-Release:	2
-License:	GPL + MySQL FLOSS Exception
-Group:		Applications/Databases
-Source0:	http://ftp.gwdg.de/pub/misc/mysql/Downloads/MySQL-5.0/%{name}-%{version}.tar.gz
-# Source0-md5:	b0533dce52a3147234e588f51affbcab
-#Source0:	http://downloads.mysql.com/snapshots/mysql-5.0/%{name}-%{version}-nightly-%{_snap}.tar.gz
-Source1:	%{name}.init
-Source2:	%{name}.sysconfig
-Source3:	%{name}.logrotate
-Source4:	%{name}d.conf
-Source5:	%{name}-clusters.conf
-Source6:	%{name}.monitrc
-Source7:	%{name}-ndb.init
-Source8:	%{name}-ndb.sysconfig
-Source9:	%{name}-ndb-mgm.init
-Source10:	%{name}-ndb-mgm.sysconfig
-Source11:	%{name}-ndb-cpc.init
-Source12:	%{name}-ndb-cpc.sysconfig
-Source13:	%{name}-client.conf
-Patch0:		%{name}-libs.patch
-Patch1:		%{name}-libwrap.patch
-Patch2:		%{name}-c++.patch
-Patch3:		%{name}-info.patch
-Patch4:		%{name}-sql-cxx-pic.patch
-Patch5:		%{name}-noproc.patch
-Patch6:		%{name}-fix_privilege_tables.patch
-Patch7:		%{name}-align.patch
-Patch8:		%{name}-client-config.patch
-Patch9:		%{name}-build.patch
-Patch10:	%{name}-alpha.patch
-Patch11:	%{name}-ndb-ldflags.patch
-Patch12:	%{name}-bug-20153.patch
-URL:		http://www.mysql.com/
-BuildRequires:	autoconf
-BuildRequires:	automake
-%{?with_bdb:BuildRequires:	db3-devel}
-BuildRequires:	libstdc++-devel >= 5:3.0
-BuildRequires:	libtool
-%{?with_tcpd:BuildRequires:	libwrap-devel}
-BuildRequires:	ncurses-devel >= 4.2
-%{?with_ssl:BuildRequires:	openssl-devel >= 0.9.7d}
-BuildRequires:	perl-DBI
-BuildRequires:	perl-devel >= 1:5.6.1
-BuildRequires:	readline-devel >= 4.2
-BuildRequires:	rpm-perlprov >= 4.1-13
-BuildRequires:	rpmbuild(macros) >= 1.268
-BuildRequires:	sed >= 4.0
-BuildRequires:	texinfo
-BuildRequires:	zlib-devel
-Requires(post,preun):	/sbin/chkconfig
-Requires(postun):	/usr/sbin/groupdel
-Requires(postun):	/usr/sbin/userdel
-Requires(pre):	/bin/id
-Requires(pre):	/usr/bin/getgid
-Requires(pre):	/usr/sbin/groupadd
-Requires(pre):	/usr/sbin/useradd
-Requires(triggerpostun):	sed >= 4.0
-Requires:	%{name}-charsets = %{version}-%{release}
-Requires:	/usr/bin/setsid
-Requires:	rc-scripts >= 0.2.0
-Provides:	MySQL-server
-Provides:	group(mysql)
-Provides:	msqlormysql
-Provides:	user(mysql)
-Obsoletes:	MySQL
-Obsoletes:	mysql-server
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%define		_libexecdir	%{_sbindir}
-%define		_localstatedir	/var/lib/mysql
-%define		_mysqlhome	/home/services/mysql
-
-%define		_noautoreqdep	'perl(DBD::mysql)'
-# CFLAGS for innodb are altered
-%undefine	configure_cache
-
-%description
-MySQL is a true multi-user, multi-threaded SQL (Structured Query
-Language) database server. SQL is the most popular database language
-in the world. MySQL is a client/server implementation that consists of
-a server daemon mysqld and many different client programs/libraries.
-
-The main goals of MySQL are speed, robustness and easy to use. MySQL
-was originally developed because we at Tcx needed a SQL server that
-could handle very big databases with magnitude higher speed than what
-any database vendor could offer to us. We have now been using MySQL
-since 1996 in a environment with more than 40 databases, 10,000
-tables, of which more than 500 have more than 7 million rows. This is
-about 50G of mission critical data.
-
-The base upon which MySQL is built is a set of routines that have been
-used in a highly demanding production environment for many years.
-While MySQL is still in development, it already offers a rich and
-highly useful function set.
-
-%description -l fr
-MySQL est un serveur de bases de donnees SQL vraiment multi-usagers et
-multi-taches. Le langage SQL est le langage de bases de donnees le
-plus populaire au monde. MySQL est une implementation client/serveur
-qui consiste en un serveur (mysqld) et differents
-programmes/bibliotheques clientes.
-
-Les objectifs principaux de MySQL sont: vitesse, robustesse et
-facilite d'utilisation. MySQL fut originalement developpe parce que
-nous, chez Tcx, avions besoin d'un serveur SQL qui pouvait gerer de
-tres grandes bases de donnees avec une vitesse d'un ordre de magnitude
-superieur a ce que n'importe quel vendeur pouvait nous offrir. Nous
-utilisons MySQL depuis 1996 dans un environnement avec plus de 40
-bases de donnees, 10000 tables, desquelles plus de 500 ont plus de 7
-millions de lignes. Ceci represente environ 50G de donnees critiques.
-
-A la base de la conception de MySQL, on retrouve une serie de routines
-qui ont ete utilisees dans un environnement de production pendant
-plusieurs annees. Meme si MySQL est encore en developpement, il offre
-deja une riche et utile serie de fonctions.
-
-%description -l pl
-MySQL to prawdziwie wielou�ytkownikowy, wielow�tkowy serwer baz danych
-SQL. SQL jest najpopularniejszym na �wiecie j�zykiem u�ywanym do baz
-danych. MySQL to implementacja klient/serwer sk�adaj�ca si� z demona
-mysqld i wielu r�nych program�w i bibliotek klienckich.
-
-G��wnymi celami MySQL-a s� szybko��, pot�ga i �atwo�� u�ytkowania.
-MySQL oryginalnie by� tworzony, poniewa� autorzy w Tcx potrzebowali
-serwera SQL do obs�ugi bardzo du�ych baz danych z szybko�ci� o wiele
-wi�ksz�, ni� mogli zaoferowa� inni producenci baz danych. U�ywaj� go
-od 1996 roku w �rodowisku z ponad 40 bazami danych, 10 000 tabel, z
-kt�rych ponad 500 zawiera ponad 7 milion�w rekord�w - w sumie oko�o
-50GB krytycznych danych.
-
-Baza, na kt�rej oparty jest MySQL, sk�ada si� ze zbioru procedur,
-kt�re by�y u�ywane w bardzo wymagaj�cym �rodowisku produkcyjnym przez
-wiele lat. Pomimo, �e MySQL jest ci�gle rozwijany, ju� oferuje bogaty
-i u�yteczny zbi�r funkcji.
-
-%description -l de
-MySQL ist eine SQL-Datenbank. Allerdings ist sie im Gegensatz zu
-Oracle, DB2 oder PostgreSQL keine relationale Datenbank. Die Daten
-werden zwar in zweidimensionalen Tabellen gespeichert und k�nnen mit
-einem Prim�rschl�ssel versehen werden. Es ist aber keine Definition
-eines Fremdschl�ssels m�glich. Der Benutzer ist somit bei einer
-MySQL-Datenbank v�llig allein f�r die (referenzielle) Integrit�t der
-Daten verantwortlich. Allein durch die Nutzung externer
-Tabellenformate, wie InnoDB bzw Berkeley DB wird eine Relationalit�t
-erm�glicht. Diese Projekte sind aber getrennt von MySQL zu betrachten.
-
-%description -l pt_BR
-O MySQL � um servidor de banco de dados SQL realmente multiusu�rio e
-multi-tarefa. A linguagem SQL � a mais popular linguagem para banco de
-dados no mundo. O MySQL � uma implementa��o cliente/servidor que
-consiste de um servidor chamado mysqld e diversos
-programas/bibliotecas clientes. Os principais objetivos do MySQL s�o:
-velocidade, robustez e facilidade de uso. O MySQL foi originalmente
-desenvolvido porque n�s na Tcx precis�vamos de um servidor SQL que
-pudesse lidar com grandes bases de dados e com uma velocidade muito
-maior do que a que qualquer vendedor podia nos oferecer. Estamos
-usando o MySQL desde 1996 em um ambiente com mais de 40 bases de dados
-com 10.000 tabelas, das quais mais de 500 t�m mais de 7 milh�es de
-linhas. Isto � o equivalente a aproximadamente 50G de dados cr�ticos.
-A base da constru��o do MySQL � uma s�rie de rotinas que foram usadas
-em um ambiente de produ��o com alta demanda por muitos anos. Mesmo o
-MySQL estando ainda em desenvolvimento, ele j� oferece um conjunto de
-fun��es muito ricas e �teis. Veja a documenta��o para maiores
-informa��es.
-
-%description -l ru
-MySQL - ��� SQL (Structured Query Language) ������ ���� ������. MySQL
-���� �������� Michael'�� (monty) Widenius'��. ��. ���� CREDITS �
-������������ �� ������� ������ ���������� ������� � ������ ����������
-� MySQL.
-
-%description -l uk
-MySQL - �� SQL (Structured Query Language) ������ ���� �����. MySQL
-���� �������� Michael'�� (monty) Widenius'��. ���. ���� CREDITS �
-����������צ ��� �������æ� ��� ����� ������˦� ������� �� ���ϧ
-�������æ�.
-
-%package charsets
-Summary:	MySQL - character sets definitions
-Summary(pl):	MySQL - definicje kodowa� znak�w
-Group:		Applications/Databases
-
-%description charsets
-This package contains character sets definitions needed by both client
-and server.
-
-%description charsets -l pl
-Ten pakiet zawiera definicje kodowa� znak�w potrzebne dla serwera i
-klienta.
-
-%package extras
-Summary:	MySQL additional utilities
-Summary(pl):	Dodatkowe narz�dzia do MySQL
-Group:		Applications/Databases
-Requires:	%{name}-libs = %{version}-%{release}
-
-%description extras
-MySQL additional utilities except Perl scripts (they may be found in
-%{name}-extras-perl package).
-
-%description extras -l pl
-Dodatkowe narz�dzia do MySQL - z wyj�tkiem skrypt�w Perla (kt�re s� w
-pakiecie %{name}-extras-perl).
-
-%package extras-perl
-Summary:	MySQL additional utilities written in Perl
-Summary(pl):	Dodatkowe narz�dzia do MySQL napisane w Perlu
-Group:		Applications/Databases
-Requires:	%{name}-extras = %{version}-%{release}
-Requires:	perl(DBD::mysql)
-
-%description extras-perl
-MySQL additional utilities written in Perl.
-
-%description extras-perl -l pl
-Dodatkowe narz�dzia do MySQL napisane w Perlu.
-
-%package client
-Summary:	MySQL - Client
-Summary(pl):	MySQL - Klient
-Summary(pt):	MySQL - Cliente
-Summary(ru):	MySQL ������
-Summary(uk):	MySQL �̦���
-Group:		Applications/Databases
-Requires:	%{name}-charsets = %{version}-%{release}
-Requires:	%{name}-libs = %{version}-%{release}
-Obsoletes:	MySQL-client
-
-%description client
-This package contains the standard MySQL clients.
-
-%description client -l fr
-Ce package contient les clients MySQL standards.
-
-%description client -l pl
-Standardowe programy klienckie MySQL.
-
-%description client -l pt_BR
-Este pacote cont�m os clientes padr�o para o MySQL.
-
-%description client -l ru
-���� ����� �������� ������ ������ MySQL.
-
-%description client -l uk
-��� ����� ͦ����� Ԧ���� �̦���� MySQL.
-
-%package libs
-Summary:	Shared libraries for MySQL
-Summary(pl):	Biblioteki dzielone MySQL
-Group:		Libraries
-Obsoletes:	libmysql10
-Obsoletes:	mysql-doc < 4.1.12
-
-%description libs
-Shared libraries for MySQL.
-
-%description libs -l pl
-Biblioteki dzielone MySQL.
-
-%package devel
-Summary:	MySQL - Development header files and libraries
-Summary(pl):	MySQL - Pliki nag��wkowe i biblioteki dla programist�w
-Summary(pt):	MySQL - Medi��es de desempenho
-Summary(ru):	MySQL - ������ � ���������� ������������
-Summary(uk):	MySQL - ������ �� ¦�̦����� ������ͦ���
-Group:		Development/Libraries
-Requires:	%{name}-libs = %{version}-%{release}
-%{?with_ssl:Requires:	openssl-devel}
-Requires:	zlib-devel
-Obsoletes:	MySQL-devel
-Obsoletes:	libmysql10-devel
-
-%description devel
-This package contains the development header files and libraries
-necessary to develop MySQL client applications.
-
-%description devel -l fr
-Ce package contient les fichiers entetes et les librairies de
-developpement necessaires pour developper des applications clientes
-MySQL.
-
-%description devel -l pl
-Pliki nag��wkowe i biblioteki konieczne do kompilacji aplikacji
-klienckich MySQL.
-
-%description devel -l pt_BR
-Este pacote cont�m os arquivos de cabe�alho (header files) e
-bibliotecas necess�rias para desenvolver aplica��es clientes do MySQL.
-
-%description devel -l ru
-���� ����� �������� ������ � ���������� ������������, ����������� ���
-���������� ���������� ����������.
-
-%description devel -l uk
-��� ����� ͦ����� ������ �� ¦�̦����� ������ͦ���, ����Ȧ�Φ ���
-�������� �������-�̦��Ԧ�.
-
-%package static
-Summary:	MySQL static libraries
-Summary(pl):	Biblioteki statyczne MySQL
-Summary(ru):	MySQL - ����������� ����������
-Summary(uk):	MySQL - ������Φ ¦�̦�����
-Group:		Development/Libraries
-Requires:	%{name}-devel = %{version}-%{release}
-Obsoletes:	MySQL-static
-
-%description static
-MySQL static libraries.
-
-%description static -l pl
-Biblioteki statyczne MySQL.
-
-%description static -l ru
-���� ����� �������� ����������� ���������� ������������, �����������
-��� ���������� ���������� ����������.
-
-%description static -l uk
-��� ����� ͦ����� ������Φ ¦�̦����� ������ͦ���, ����Ȧ�Φ ���
-�������� �������-�̦��Ԧ�.
-
-%package bench
-Summary:	MySQL - Benchmarks
-Summary(pl):	MySQL - Programy testuj�ce szybko�� dzia�ania bazy
-Summary(pt):	MySQL - Medi��es de desempenho
-Summary(ru):	MySQL - ���������
-Summary(uk):	MySQL - ���������
-Group:		Applications/Databases
-Requires:	%{name} = %{version}-%{release}
-Requires:	%{name}-client
-Requires:	perl(DBD::mysql)
-Obsoletes:	MySQL-bench
-
-%description bench
-This package contains MySQL benchmark scripts and data.
-
-%description bench -l pl
-Programy testuj�ce szybko�� serwera MySQL.
-
-%description bench -l pt_BR
-Este pacote cont�m medi��es de desempenho de scripts e dados do MySQL.
-
-%description bench -l ru
-���� ����� �������� ������� � ������ ��� ������ ������������������
-MySQL.
-
-%description bench -l uk
-��� ����� ͦ����� ������� �� ��Φ ��� �æ��� ������������Ԧ MySQL.
-
-%package doc
-Summary:	MySQL manual
-Summary(pl):	Podr�cznik u�ytkownika MySQL
-Group:		Applications/Databases
-
-%description doc
-This package contains manual in HTML format.
-
-%description doc -l pl
-Podr�cznik MySQL-a w formacie HTML.
-
-%package ndb
-Summary:	MySQL - NDB Storage Engine Daemon
-Summary(pl):	MySQL - demon silnika przechowywania danych NDB
-Group:		Applications/Databases
-Requires:	%{name}-libs = %{version}-%{release}
-
-%description ndb
-This package contains the standard MySQL NDB Storage Engine Daemon.
-
-%description ndb -l pl
-Ten pakiet zawiera standardowego demona silnika przechowywania danych
-NDB.
-
-%package ndb-client
-Summary:	MySQL - NDB Clients
-Summary(pl):	MySQL - programy klienckie NDB
-Group:		Applications/Databases
-Requires:	%{name}-libs = %{version}-%{release}
-
-%description ndb-client
-This package contains the standard MySQL NDB Clients.
-
-%description ndb-client -l pl
-Ten pakiet zawiera standardowe programy klienckie MySQL NDB.
-
-%package ndb-mgm
-Summary:	MySQL - NDB Management Daemon
-Summary(pl):	MySQL - demon zarz�dzaj�cy NDB
-Group:		Applications/Databases
-Requires:	%{name}-libs = %{version}-%{release}
-
-%description ndb-mgm
-This package contains the standard MySQL NDB Management Daemon.
-
-%description ndb-mgm -l pl
-Ten pakiet zawiera standardowego demona zarz�dzaj�cego MySQL NDB.
-
-%package ndb-cpc
-Summary:	MySQL - NDB CPC Daemon
-Summary(pl):	MySQL - demon NDB CPC
-Group:		Applications/Databases
-Requires:	%{name}-libs = %{version}-%{release}
-
-%description ndb-cpc
-This package contains the standard MySQL NDB CPC Daemon.
-
-%description ndb-cpc -l pl
-Ten pakiet zawiera standardowego demona MySQL NDB CPC.
-
-%prep
-%setup -q %{?_snap:-n %{name}-%{version}-nightly-%{_snap}}
-%patch0 -p1
-%{?with_tcpd:%patch1 -p1}
-%patch2 -p1
-%patch3 -p1
-%ifarch alpha
-# this is strange: mysqld functions for UDF modules are not explicitly defined,
-# so -rdynamic is used; in such case gcc3+ld on alpha doesn't like C++ vtables
-# in objects compiled without -fPIC
-%patch4 -p1
-# gcc 3.3.x ICE
-%patch10 -p1
-%endif
-%patch5 -p1
-%patch6 -p1
-%patch7 -p1
-%patch8 -p1
-%patch9 -p1
-%patch11 -p1
-%patch12 -p1
-
-%build
-%{__libtoolize}
-%{__aclocal}
-%{__automake}
-%{__autoconf}
-
-# The compiler flags are as per their "official" spec ;)
-CXXFLAGS="%{rpmcflags} -felide-constructors -fno-rtti -fno-exceptions %{!?debug:-fomit-frame-pointer}"
-CFLAGS="%{rpmcflags} %{!?debug:-fomit-frame-pointer}"
-
-# NOTE: the PS, FIND_PROC, KILL, CHECK_PID are not used by PLD Linux
-# and therefore do not add BR on these. These are here just to satisfy
-# configure.
-
-%configure \
-	PS='/bin/ps' \
-	FIND_PROC='/bin/ps p $$PID' \
-	KILL='/bin/kill' \
-	CHECK_PID='/bin/kill -0 $$PID' \
-	--enable-assembler \
-	--enable-largefile=yes \
-	--enable-shared \
-	--enable-static \
-	--enable-thread-safe-client \
-	--with%{!?with_bdb:out}-berkeley-db \
-	--with%{!?with_innodb:out}-innodb \
-	--with%{!?with_raid:out}-raid \
-	--with%{!?with_ssl:out}-openssl \
-	--with%{!?with_tcpd:out}-libwrap \
-	%{?with_big_tables:--with-big-tables} \
-	--with-comment="PLD Linux Distribution MySQL RPM" \
-	--with%{!?debug:out}-debug \
-	--with%{!?debug:out}-ndb-debug \
-	--with-embedded-server \
-	--with-extra-charsets=all \
-	--with-low-memory \
-	--with-mysqld-user=mysql \
-	--with-named-curses-libs="-lncurses" \
-	--with-named-thread-libs="-lpthread" \
-	--with-unix-socket-path=/var/lib/mysql/mysql.sock \
-	--with-archive-storage-engine \
-	--with-vio \
-	--with-ndbcluster \
-	--without-readline \
-	--without-libedit \
-	--without-docs
-#	--with-mysqlfs
-#	--with-ndb-test --with-ndb-docs
-
-# NOTE that /var/lib/mysql/mysql.sock is symlink to real sock file
-# (it defaults to first cluster but user may change it to whatever
-# cluster it wants)
-
-echo -e "all:\ninstall:\nclean:\nlink_sources:\n" > libmysqld/examples/Makefile
-
-%{__make} \
-	benchdir=$RPM_BUILD_ROOT%{_datadir}/sql-bench
-
-%{__make} -C Docs mysql.info
-
-%install
-rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,mysql,monit} \
-	   $RPM_BUILD_ROOT/var/{log/{archiv,}/mysql,lib/mysql} \
-	   $RPM_BUILD_ROOT{%{_infodir},%{_mysqlhome}}
-
-%if %{with bdb}
-install -d $RPM_BUILD_ROOT/var/lib/mysql/bdb/{log,tmp}
-%endif
-
-# Make install
-%{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT \
-	benchdir=%{_datadir}/sql-bench \
-	libsdir=/tmp
-# libsdir is to avoid installing innodb static libs in $RPM_BUILD_ROOT../libs
-
-install Docs/mysql.info $RPM_BUILD_ROOT%{_infodir}
-
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql
-install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mysql
-install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/mysql
-# This is template for configuration file which is created after 'service mysql init'
-install %{SOURCE4} mysqld.conf
-install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/mysql/clusters.conf
-install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/monit
-touch $RPM_BUILD_ROOT/var/log/mysql/{err,log,update}
-
-# remove innodb directives from mysqld.conf if mysqld is configured without
-%if %{without innodb}
-	cp mysqld.conf mysqld.tmp
-	awk 'BEGIN { RS="\n\n" } !/innodb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
-%endif
-
-# remove berkeley-db directives from mysqld.conf if mysqld is configured without
-%if %{without bdb}
-	cp mysqld.conf mysqld.tmp
-	awk 'BEGIN { RS="\n\n" } !/bdb/ { printf("%s\n\n", $0) }' < mysqld.tmp > mysqld.conf
-%endif
-
-install mysqld.conf $RPM_BUILD_ROOT%{_datadir}/mysql/mysqld.conf
-install %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/mysql/mysql-client.conf
-
-# NDB
-install %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb
-install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb
-install %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-mgm
-install %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-mgm
-install %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysql-ndb-cpc
-install %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/mysql-ndb-cpc
-# remove .txt variants for .sys messages
-rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/*/*.txt
-
-mv -f $RPM_BUILD_ROOT%{_libdir}/mysql/lib* $RPM_BUILD_ROOT%{_libdir}
-sed -i -e 's,%{_libdir}/mysql,%{_libdir},' $RPM_BUILD_ROOT%{_libdir}/libmysqlclient{,_r}.la
-
-# remove known unpackaged files
-rm -rf $RPM_BUILD_ROOT%{_prefix}/mysql-test
-
-# rename not to be so generic name
-mv $RPM_BUILD_ROOT%{_bindir}/{,mysql_}comp_err
-mv $RPM_BUILD_ROOT%{_bindir}/{,mysql_}resolve_stack_dump
-
-# not useful without -debug build
-%{!?debug:rm -f $RPM_BUILD_ROOT%{_bindir}/mysql_resolve_stack_dump}
-# generate symbols file, so one can generate backtrace using it
-# mysql_resolve_stack_dump -s /usr/share/mysql/mysqld.sym -n mysqld.stack.
-# http://dev.mysql.com/doc/refman/5.0/en/using-stack-trace.html
-%{?debug:nm -n $RPM_BUILD_ROOT%{_sbindir}/mysqld > $RPM_BUILD_ROOT%{_datadir}/mysql/mysqld.sym}
-
-# functionality in initscript / rpm
-rm $RPM_BUILD_ROOT%{_bindir}/mysql_create_system_tables
-rm $RPM_BUILD_ROOT%{_bindir}/mysql_install_db
-rm $RPM_BUILD_ROOT%{_bindir}/mysqld_safe
-rm $RPM_BUILD_ROOT%{_bindir}/mysqld_multi
-rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqld_{multi,safe}*
-rm $RPM_BUILD_ROOT%{_datadir}/%{name}/fill_help_tables.sql
-rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql-log-rotate
-rm $RPM_BUILD_ROOT%{_datadir}/%{name}/mysql.server
-rm $RPM_BUILD_ROOT%{_datadir}/%{name}/binary-configure
-rm $RPM_BUILD_ROOT%{_datadir}/%{name}/errmsg.txt
-rm $RPM_BUILD_ROOT%{_bindir}/mysql_waitpid
-rm $RPM_BUILD_ROOT%{_mandir}/man1/mysql.server*
-rm $RPM_BUILD_ROOT%{_mandir}/man1/safe_mysqld*
-rm $RPM_BUILD_ROOT%{_mandir}/man1/mysqlman.1*
-
-# in %doc
-rm $RPM_BUILD_ROOT%{_datadir}/%{name}/*.{ini,cnf}
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%pre
-%groupadd -g 89 mysql
-%useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql
-
-%post
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
-/sbin/chkconfig --add mysql
-
-if [ "$1" = 1 ]; then
-	%banner -e %{name}-4.1.x <<-EOF
-	If you want to use new help tables in mysql 4.1.x then you'll need to import the help data:
-	zcat %{_docdir}/%{name}-%{version}/fill_help_tables.sql.gz | mysql mysql
-EOF
-#'
-fi
-
-%service mysql restart
-
-%preun
-if [ "$1" = "0" ]; then
-	%service -q mysql stop
-	/sbin/chkconfig --del mysql
-fi
-
-%postun
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
-if [ "$1" = "0" ]; then
-	%userremove mysql
-	%groupremove mysql
-fi
-
-%post ndb
-/sbin/chkconfig --add mysql-ndb
-%service mysql-ndb restart "mysql NDB engine"
-
-%preun ndb
-if [ "$1" = "0" ]; then
-	%service mysql-ndb stop
-	/sbin/chkconfig --del mysql-ndb
-fi
-
-%post ndb-mgm
-/sbin/chkconfig --add mysql-ndb-mgm
-%service mysql-ndb-mgm restart "mysql NDB management node"
-
-%preun ndb-mgm
-if [ "$1" = "0" ]; then
-	%service mysql-ndb-mgm stop
-	/sbin/chkconfig --del mysql-ndb-mgm
-fi
-
-%post ndb-cpc
-/sbin/chkconfig --add mysql-ndb-cpc
-%service mysql-ndb-cpc restart "mysql NDB CPC"
-
-%preun ndb-cpc
-if [ "$1" = "0" ]; then
-	%service mysql-ndb-cpc stop
-	/sbin/chkconfig --del mysql-ndb-cpc
-fi
-
-%post   libs -p /sbin/ldconfig
-%postun libs -p /sbin/ldconfig
-
-%triggerpostun -- mysql <= 4.0.20-2
-# For clusters in /etc/mysql/clusters.conf
-if [ -f "/etc/sysconfig/mysql" ]; then
-	. /etc/sysconfig/mysql
-	if [ -n "$MYSQL_DB_CLUSTERS" ]; then
-		for i in "$MYSQL_DB_CLUSTERS"; do
-			echo "$i/mysqld.conf=$i" >> /etc/mysql/clusters.conf
-		done
-		echo "# Do not use **obsolete** option MYSQL_DB_CLUSTERS" >> /etc/sysconfig/mysql
-		echo "# USE /etc/mysql/clusters.conf instead" >> /etc/sysconfig/mysql
-		echo "Converted clusters from MYSQL_DB_CLUSTERS to /etc/mysql/clusters.conf."
-		echo "You NEED to fix your /etc/sysconfig/mysql and verify /etc/mysql/clusters.conf."
-	fi
-fi
-
-%triggerpostun -- mysql <= 4.1.1
-# For better compatibility with prevoius versions:
-for config in $(awk -F= '!/^#/ && /=/{print $1}' /etc/mysql/clusters.conf); do
-	if echo "$config" | grep -q '^/'; then
-		config_file="$config"
-	elif [ -f "/etc/mysql/$config" ]; then
-		config_file=/etc/mysql/$config
-	else
-		clusterdir=$(awk -F= "/^$config/{print \$2}" /etc/mysql/clusters.conf)
-		if [ -z "$clusterdir" ]; then
-			echo >&2 "Can't find cluster dir for $config!"
-			echo >&2 "Please remove extra (leading) spaces from /etc/mysql/clusters.conf"
-			exit 1
-		fi
-		config_file="$clusterdir/mysqld.conf"
-	fi
-
-	if [ ! -f "$config_file" ]; then
-			echo >&2 "Lost myself! Please report this (with above errors, if any) to http://bugs.pld-linux.org/"
-			exit 1
-	fi
-	echo "Adding option old-passwords to config: $config_file"
-	echo "If you want to use new, better passwords - remove it"
-
-	# sed magic to add 'old-passwords' to [mysqld] section
-	sed -i -e '/./{H;$!d;};x;/\[mysqld\]/{
-		a
-		a; Compatibility options:
-		aold-passwords
-	}
-	' $config_file
-done
-
-%banner -e %{name}-4.1.x <<-EOF
-	If you want to use new help tables in mysql 4.1.x then you'll need to import the help data:
-	zcat %{_docdir}/%{name}-%{version}/fill_help_tables.sql.gz | mysql mysql
-EOF
-#'
-
-%files
-%defattr(644,root,root,755)
-%doc support-files/*.cnf support-files/*.ini scripts/fill_help_tables.sql
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/mysql
-%attr(754,root,root) /etc/rc.d/init.d/mysql
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql
-%attr(640,root,mysql) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mysql/clusters.conf
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/monit/*.monitrc
-%attr(755,root,root) %{_bindir}/innochecksum
-%attr(755,root,root) %{_bindir}/myisamchk
-%attr(755,root,root) %{_bindir}/myisamlog
-%attr(755,root,root) %{_bindir}/myisampack
-%attr(755,root,root) %{_bindir}/mysql_fix_privilege_tables
-%attr(755,root,root) %{_bindir}/my_print_defaults
-%attr(755,root,root) %{_bindir}/mysql_upgrade
-%attr(755,root,root) %{_sbindir}/mysqld
-%{_mandir}/man1/mysql_fix_privilege_tables.1*
-%{_mandir}/man1/mysqld.1*
-%{_mandir}/man1/myisamchk.1*
-%{_mandir}/man1/myisamlog.1*
-%{_mandir}/man1/myisampack.1*
-%{_mandir}/man1/mysql_upgrade.1*
-
-%attr(700,mysql,mysql) %{_mysqlhome}
-# root:root is proper here for AC mysql.rpm while mysql:mysql is potential security hole
-%attr(751,root,root) /var/lib/mysql
-%attr(750,mysql,mysql) %dir /var/log/mysql
-%attr(750,mysql,mysql) %dir /var/log/archiv/mysql
-%attr(640,mysql,mysql) %ghost /var/log/mysql/*
-
-%{_infodir}/mysql.info*
-# This is template for configuration file which is created after 'service mysql init'
-%{_datadir}/mysql/mysqld.conf
-%{_datadir}/mysql/english
-%{_datadir}/mysql/mysql_fix_privilege_tables.sql
-%lang(cs) %{_datadir}/mysql/czech
-%lang(da) %{_datadir}/mysql/danish
-%lang(de) %{_datadir}/mysql/german
-%lang(el) %{_datadir}/mysql/greek
-%lang(es) %{_datadir}/mysql/spanish
-%lang(et) %{_datadir}/mysql/estonian
-%lang(fr) %{_datadir}/mysql/french
-%lang(hu) %{_datadir}/mysql/hungarian
-%lang(it) %{_datadir}/mysql/italian
-%lang(ja) %{_datadir}/mysql/japanese
-%lang(ko) %{_datadir}/mysql/korean
-%lang(nl) %{_datadir}/mysql/dutch
-%lang(nb) %{_datadir}/mysql/norwegian
-%lang(nn) %{_datadir}/mysql/norwegian-ny
-%lang(pl) %{_datadir}/mysql/polish
-%lang(pt) %{_datadir}/mysql/portuguese
-%lang(ro) %{_datadir}/mysql/romanian
-%lang(ru) %{_datadir}/mysql/russian
-%lang(sr) %{_datadir}/mysql/serbian
-%lang(sk) %{_datadir}/mysql/slovak
-%lang(sv) %{_datadir}/mysql/swedish
-%lang(uk) %{_datadir}/mysql/ukrainian
-
-%files charsets
-%defattr(644,root,root,755)
-%dir %{_datadir}/mysql
-%{_datadir}/mysql/charsets
-
-%files extras
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/msql2mysql
-%attr(755,root,root) %{_bindir}/myisam_ftdump
-%attr(755,root,root) %{_bindir}/mysql_secure_installation
-%attr(755,root,root) %{_bindir}/mysql_tzinfo_to_sql
-%attr(755,root,root) %{_bindir}/mysqlcheck
-%attr(755,root,root) %{_bindir}/perror
-%attr(755,root,root) %{_bindir}/replace
-%attr(755,root,root) %{_bindir}/resolveip
-%{_mandir}/man1/msql2mysql.1*
-%{_mandir}/man1/myisam_ftdump.1*
-%{_mandir}/man1/mysqlcheck.1*
-%{_mandir}/man1/perror.1*
-%{_mandir}/man1/replace.1*
-
-%files extras-perl
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/mysql_convert_table_format
-%attr(755,root,root) %{_bindir}/mysqldumpslow
-%attr(755,root,root) %{_bindir}/mysqlhotcopy
-%attr(755,root,root) %{_bindir}/mysql_setpermission
-%attr(755,root,root) %{_bindir}/mysql_zap
-%attr(755,root,root) %{_bindir}/mysql_find_rows
-%attr(755,root,root) %{_bindir}/mysqlaccess
-%attr(755,root,root) %{_bindir}/mysql_fix_extensions
-%attr(755,root,root) %{_bindir}/mysql_explain_log
-%attr(755,root,root) %{_bindir}/mysql_tableinfo
-%{_mandir}/man1/mysql_zap.1*
-%{_mandir}/man1/mysqlaccess.1*
-%{_mandir}/man1/mysqlhotcopy.1*
-
-%files client
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/mysql
-%attr(755,root,root) %{_bindir}/mysqlbug
-%attr(755,root,root) %{_bindir}/mysqldump
-%attr(755,root,root) %{_bindir}/mysqlimport
-%attr(755,root,root) %{_sbindir}/mysqlmanager*
-%attr(755,root,root) %{_bindir}/mysqlshow
-%attr(755,root,root) %{_bindir}/mysqlbinlog
-%attr(755,root,root) %{_bindir}/mysqladmin
-%attr(755,root,root) %{_bindir}/mysqltest*
-%{_mandir}/man1/mysql.1*
-%{_mandir}/man1/mysqladmin.1*
-%{_mandir}/man1/mysqldump.1*
-%{_mandir}/man1/mysqlshow.1*
-%{_mandir}/man1/mysqlmanager.1*
-%{_mandir}/man1/mysqlbinlog.1*
-%{_mandir}/man1/mysqlimport.1*
-
-%files libs
-%defattr(644,root,root,755)
-%doc EXCEPTIONS-CLIENT
-%attr(755,root,root) %{_libdir}/lib*.so.*.*
-%attr(751,root,root) %dir %{_sysconfdir}/mysql
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mysql/mysql-client.conf
-
-%files devel
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/mysql_config
-%attr(755,root,root) %{_libdir}/lib*.so
-%attr(755,root,root) %{_bindir}/*comp_err
-%{?debug:%attr(755,root,root) %{_bindir}/*resolve_stack_dump}
-%{?debug:%{_datadir}/mysql/mysqld.sym}
-%{_libdir}/lib*.la
-%{_libdir}/lib*[!tr].a
-%{_includedir}/mysql
-%{_mandir}/man1/mysql_config.1*
-
-%files static
-%defattr(644,root,root,755)
-%{_libdir}/lib*[tr].a
-
-%files bench
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/mysqltest
-%attr(755,root,root) %{_bindir}/mysql_client_test
-%dir %{_datadir}/sql-bench
-%{_datadir}/sql-bench/[CDRl]*
-%attr(755,root,root) %{_datadir}/sql-bench/[bcgirst]*
-# wrong dir?
-%{_datadir}/mysql/mi_test_all.res
-%attr(755,root,root) %{_datadir}/mysql/mi_test_all
-
-#%files doc
-#%defattr(644,root,root,755)
-#%doc Docs/manual.html Docs/manual_toc.html
-
-%files ndb
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_sbindir}/ndbd
-%attr(754,root,root) /etc/rc.d/init.d/mysql-ndb
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb
-
-%files ndb-client
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/ndb_*
-%attr(755,root,root) %{_datadir}/mysql/ndb_size.tmpl
-
-%files ndb-mgm
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_sbindir}/ndb_mgmd
-%attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-mgm
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-mgm
-
-%files ndb-cpc
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_sbindir}/ndb_cpcd
-%attr(754,root,root) /etc/rc.d/init.d/mysql-ndb-cpc
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/mysql-ndb-cpc
diff --git a/mysql-align.patch b/mysql-align.patch
deleted file mode 100644
index 5feab48..0000000
--- a/mysql-align.patch
+++ /dev/null
@@ -1,71 +0,0 @@
---- mysql-4.1.10/mysys/my_getopt.c.orig	2005-02-12 21:37:32.000000000 +0100
-+++ mysql-4.1.10/mysys/my_getopt.c	2005-03-04 10:52:33.000000000 +0100
-@@ -34,7 +34,7 @@
- static ulonglong getopt_ull(char *arg, const struct my_option *optp,
- 			    int *err);
- static void init_variables(const struct my_option *options);
--static int setval(const struct my_option *opts, gptr *value, char *argument,
-+static int setval(const struct my_option *opts, gptr value, char *argument,
- 		  my_bool set_maximum_value);
- static char *check_struct_option(char *cur_arg, char *key_name);
- 
-@@ -96,7 +96,7 @@
-   char **pos, **pos_end, *optend, *prev_found,
-        *opt_str, key_name[FN_REFLEN];
-   const struct my_option *optp;
--  gptr *value;
-+  gptr value;
-   int error;
- 
-   LINT_INIT(opt_found);
-@@ -537,14 +537,14 @@
-   Will set the option value to given value
- */
- 
--static int setval(const struct my_option *opts, gptr *value, char *argument,
-+static int setval(const struct my_option *opts, gptr value, char *argument,
- 		  my_bool set_maximum_value)
- {
-   int err= 0;
- 
-   if (value && argument)
-   {
--    gptr *result_pos= ((set_maximum_value) ?
-+    gptr result_pos= ((set_maximum_value) ?
- 		       opts->u_max_value : value);
- 
-     if (!result_pos)
-@@ -738,7 +738,7 @@
-     value		Pointer to variable
- */
- 
--static void init_one_value(const struct my_option *option, gptr *variable,
-+static void init_one_value(const struct my_option *option, gptr variable,
- 			   longlong value)
- {
-   switch ((option->var_type & GET_TYPE_MASK)) {
-@@ -793,12 +793,12 @@
-       set the value to default value.
-     */
-     if (options->u_max_value)
--      init_one_value(options, options->u_max_value, options->max_value);
-+      init_one_value(options, (gptr)(options->u_max_value), options->max_value);
-     if (options->value)
--      init_one_value(options, options->value, options->def_value);
-+      init_one_value(options, (gptr)(options->value), options->def_value);
-     if (options->var_type & GET_ASK_ADDR &&
- 	(variable= (*getopt_get_addr)("", 0, options)))
--      init_one_value(options, variable, options->def_value);
-+      init_one_value(options, (gptr)variable, options->def_value);
-   }
- }
- 
-@@ -898,7 +898,7 @@
-   printf("--------------------------------- -----------------------------\n");
-   for (optp= options; optp->id; optp++)
-   {
--    gptr *value= (optp->var_type & GET_ASK_ADDR ?
-+    gptr value= (optp->var_type & GET_ASK_ADDR ?
- 		  (*getopt_get_addr)("", 0, optp) : optp->value);
-     if (value)
-     {
diff --git a/mysql-alpha.patch b/mysql-alpha.patch
deleted file mode 100644
index 7494497..0000000
--- a/mysql-alpha.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -urbB mysql-5.0.15.org/ndb/src/kernel/blocks/dbtc/Makefile.am mysql-5.0.15/ndb/src/kernel/blocks/dbtc/Makefile.am
---- mysql-5.0.15.org/ndb/src/kernel/blocks/dbtc/Makefile.am	2005-10-17 03:27:27.000000000 +0200
-+++ mysql-5.0.15/ndb/src/kernel/blocks/dbtc/Makefile.am	2005-10-25 15:15:29.000000000 +0200
-@@ -1,5 +1,7 @@
- noinst_LIBRARIES = libdbtc.a
- 
-+CXXFLAGS += -O0
-+
- libdbtc_a_SOURCES = DbtcInit.cpp DbtcMain.cpp
- 
- include $(top_srcdir)/ndb/config/common.mk.am
diff --git a/mysql-bug-20153.patch b/mysql-bug-20153.patch
deleted file mode 100644
index 5efe456..0000000
--- a/mysql-bug-20153.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- mysql-5.0.22/scripts/mysqlhotcopy.sh	2006-05-25 11:56:49.000000000 +0300
-+++ /home/glen/mysqlhotcopy.fixed	2006-06-09 18:41:01.447594016 +0300
-@@ -212,6 +212,7 @@
- while ( my ($var,$value) = $sth_vars->fetchrow_array ) {
-     $mysqld_vars{ $var } = $value;
- }
-+$sth_vars->finish();
- my $datadir = $mysqld_vars{'datadir'}
-     || die "datadir not in mysqld variables";
-     $datadir= $opt{chroot}.$datadir if ($opt{chroot});
-@@ -255,6 +256,7 @@
- 	next if $db_name =~ m/^information_schema$/i;
- 	push @db_desc, { 'src' => $db_name, 't_regex' => $t_regex } if ( $db_name =~ m/$opt{regexp}/o );
-     }
-+    $sth_dbs->finish();
- }
- 
- # --- get list of tables to hotcopy ---
diff --git a/mysql-build.patch b/mysql-build.patch
deleted file mode 100644
index 11ef6ee..0000000
--- a/mysql-build.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -urNbB mysql-5.0.13-rc.org/sql/mysqld.cc mysql-5.0.13-rc/sql/mysqld.cc
---- mysql-5.0.13-rc.org/sql/mysqld.cc	2005-09-22 21:39:56.000000000 +0200
-+++ mysql-5.0.13-rc/sql/mysqld.cc	2005-09-29 19:29:59.991454000 +0200
-@@ -3183,7 +3183,7 @@
-   init_ssl();
- 
- #ifdef HAVE_LIBWRAP
--  libwrapName= my_progname+dirname_length(my_progname);
-+  libwrapName= (char *)my_progname+dirname_length(my_progname);
-   openlog(libwrapName, LOG_PID, LOG_AUTH);
- #endif
- 
diff --git a/mysql-c++.patch b/mysql-c++.patch
deleted file mode 100644
index 2abe3d5..0000000
--- a/mysql-c++.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ur mysql-4.1.7.org/myisam/Makefile.am mysql-4.1.7/myisam/Makefile.am
---- mysql-4.1.7.org/myisam/Makefile.am	2004-10-27 01:35:55.000000000 +0200
-+++ mysql-4.1.7/myisam/Makefile.am	2004-10-27 01:41:47.764533080 +0200
-@@ -21,7 +21,7 @@
- LDADD =			@CLIENT_EXTRA_LDFLAGS@ libmyisam.a \
- 			$(top_builddir)/mysys/libmysys.a \
- 			$(top_builddir)/dbug/libdbug.a \
--			$(top_builddir)/strings/libmystrings.a @ZLIB_LIBS@
-+			$(top_builddir)/strings/libmystrings.a @ZLIB_LIBS@ $(libdir)/libsupc++.la
- pkglib_LIBRARIES =	libmyisam.a
- bin_PROGRAMS =		myisamchk myisamlog myisampack myisam_ftdump
- myisamchk_DEPENDENCIES=	$(LIBRARIES)
diff --git a/mysql-client-config.patch b/mysql-client-config.patch
deleted file mode 100644
index 662ffa1..0000000
--- a/mysql-client-config.patch
+++ /dev/null
@@ -1,30 +0,0 @@
---- mysql-5.1.6-alpha/libmysqld/client.c~	2006-02-21 16:09:31.000000000 +0200
-+++ mysql-5.1.6-alpha/libmysqld/client.c	2006-02-21 16:11:30.000000000 +0200
-@@ -1456,6 +1456,7 @@
- 
-   mysql->options.methods_to_use= MYSQL_OPT_GUESS_CONNECTION;
-   mysql->options.report_data_truncation= TRUE;  /* default */
-+  mysql_read_default_options(&mysql->options, "/etc/mysql/mysql-client.conf", NULL);
- 
-   /*
-     By default we don't reconnect because it could silently corrupt data (after
---- mysql-5.1.6-alpha/sql/client.c~	2006-02-21 16:09:32.000000000 +0200
-+++ mysql-5.1.6-alpha/sql/client.c	2006-02-21 16:12:13.000000000 +0200
-@@ -1456,6 +1456,7 @@
- 
-   mysql->options.methods_to_use= MYSQL_OPT_GUESS_CONNECTION;
-   mysql->options.report_data_truncation= TRUE;  /* default */
-+  mysql_read_default_options(&mysql->options, "/etc/mysql/mysql-client.conf", NULL);
- 
-   /*
-     By default we don't reconnect because it could silently corrupt data (after
---- mysql-5.1.6-alpha/sql-common/client.c~	2006-02-21 16:09:34.000000000 +0200
-+++ mysql-5.1.6-alpha/sql-common/client.c	2006-02-21 16:14:10.000000000 +0200
-@@ -1456,6 +1456,7 @@
- 
-   mysql->options.methods_to_use= MYSQL_OPT_GUESS_CONNECTION;
-   mysql->options.report_data_truncation= TRUE;  /* default */
-+  mysql_read_default_options(&mysql->options, "/etc/mysql/mysql-client.conf", NULL);
- 
-   /*
-     By default we don't reconnect because it could silently corrupt data (after
diff --git a/mysql-client.conf b/mysql-client.conf
deleted file mode 100644
index 086e94b..0000000
--- a/mysql-client.conf
+++ /dev/null
@@ -1,3 +0,0 @@
-#[client]
-#default-character-set=latin2
-
diff --git a/mysql-clusters.conf b/mysql-clusters.conf
deleted file mode 100644
index c617647..0000000
--- a/mysql-clusters.conf
+++ /dev/null
@@ -1,10 +0,0 @@
-# This file contains MySQL clusters configuration.
-# If you want to use more than one cluster read carefuly
-# http://www.mysql.com/doc/en/Multiple_servers.html
-# and set properly all described there options.
-#
-# You can add one cluster per line
-# /config/location.conf=/cluster/directory
-# If you give config name without path it defaults to /etc/mysql/
-
-mysqld.conf=/var/lib/mysql
diff --git a/mysql-fix_privilege_tables.patch b/mysql-fix_privilege_tables.patch
deleted file mode 100644
index 077e2cd..0000000
--- a/mysql-fix_privilege_tables.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- mysql-4.1.7.org/scripts/mysql_fix_privilege_tables.sh	2004-10-27 01:35:56.000000000 +0200
-+++ mysql-4.1.7/scripts/mysql_fix_privilege_tables.sh	2004-10-27 12:13:42.159439392 +0200
-@@ -5,7 +5,7 @@
- # Default values (Can be changed in my.cnf)
- password=""
- host="localhost"
--user="root"
-+user="mysql"
- sql_only=0
- basedir=""
- verbose=0
---- mysql-5.0.19/scripts/mysql_upgrade_shell.sh~	2006-03-04 22:35:13.000000000 +0200
-+++ mysql-5.0.24/scripts/mysql_upgrade_shell.sh	2006-03-12 22:52:55.000000000 +0200
-@@ -13,7 +13,7 @@
- # arguments as these needs to be passed on to the mysqlcheck command
- 
- 
--user=root
-+user=mysql
- 
- case "$1" in
-     --no-defaults|--defaults-file=*|--defaults-extra-file=*)
diff --git a/mysql-info.patch b/mysql-info.patch
deleted file mode 100644
index 179f823..0000000
--- a/mysql-info.patch
+++ /dev/null
@@ -1,15 +0,0 @@
---- mysql-4.1.12/Docs/mysql.info~	2005-05-16 08:05:46.000000000 +0300
-+++ mysql-4.1.12/Docs/mysql.info	2005-05-16 08:06:36.000000000 +0300
-@@ -1,8 +1,9 @@
- This is mysql.info, produced by makeinfo version 4.7 from manual.texi.
- 
--START-INFO-DIR-ENTRY
--* mysql: (mysql).               MySQL documentation.
--END-INFO-DIR-ENTRY
-+ at dircategory Data bases:
-+ at direntry
-+* mysql: (mysql).			MySQL documentation
-+ at end direntry
- 
- 
- File: mysql.info,  Node: Top,  Next: Introduction,  Prev: (dir),  Up: (dir)
diff --git a/mysql-libwrap.patch b/mysql-libwrap.patch
deleted file mode 100644
index 78c7959..0000000
--- a/mysql-libwrap.patch
+++ /dev/null
@@ -1,19 +0,0 @@
---- mysql-4.1.9/sql/mysqld.cc.orig	2005-01-11 23:06:00.000000000 +0100
-+++ mysql-4.1.9/sql/mysqld.cc	2005-02-06 17:21:26.238717200 +0100
-@@ -133,7 +133,16 @@
- #endif /* __WIN__ */
- 
- #ifdef HAVE_LIBWRAP
-+#define hosts_access hosts_access_old
-+#define sock_host sock_host_old
-+#define eval_client eval_client_old
- #include <tcpd.h>
-+#undef hosts_access
-+#undef sock_host
-+#undef eval_client
-+extern int hosts_access(struct request_info *);
-+extern int sock_host(struct request_info *);
-+extern int eval_client(struct request_info *);
- #include <syslog.h>
- #ifdef NEED_SYS_SYSLOG_H
- #include <sys/syslog.h>
diff --git a/mysql-ndb-cpc.init b/mysql-ndb-cpc.init
deleted file mode 100644
index edcef6c..0000000
--- a/mysql-ndb-cpc.init
+++ /dev/null
@@ -1,73 +0,0 @@
-#!/bin/sh
-#
-# mysql-ndb-cpc		This shell script takes care of starting and stopping mysql-ndb-cpc.
-#
-# chkconfig:	2345 80 30
-# description:	mysql-ndb-cpc is a mysql NDB engine
-#
-# processname:	ndbd
-
-# Source function library.
-. /etc/rc.d/init.d/functions
-
-# Source networking configuration.
-. /etc/sysconfig/network
-
-# Source oident configureation.
-if [ -f /etc/sysconfig/mysql-ndb-cpc ]; then
-	. /etc/sysconfig/mysql-ndb-cpc
-fi
-
-# Check that networking is up.
-if is_yes "${NETWORKING}"; then
-	if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
-		msg_network_down mysql-ndb-cpc
-		exit 1
-	fi
-else
-	exit 0
-fi
-
-RETVAL=0
-# See how we were called.
-case "$1" in
-  start)
-	# Start daemons.
-	if [ ! -f /var/lock/subsys/mysql-ndb-cpc ]; then
-		msg_starting "mysql ndb_cpcd"
-		daemon ndb_cpcd $MYSQL_NDB_CPC_OPT
-		RETVAL=$?
-		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/mysql-ndb-cpc
-	else
-		msg_already_running "mysql ndb_cpcd"
-	fi
-	;;
-  stop)
-	# Stop daemons.
-	if [ -f /var/lock/subsys/mysql-ndb-cpc ]; then
-		msg_stopping "mysql ndb_cpcd"
-		killproc ndbd
-		rm -f /var/lock/subsys/mysql-ndb-cpc >/dev/null 2>&1
-	else
-		msg_not_running "mysql ndb_cpcd"
-	fi
-	;;
-  restart|force-reload)
-	$0 stop
-	$0 start
-	exit $?
-	;;
-  status)
-	status ndb_cpcd
-	exit $?
-	;;
-#  reload)
-#	msg_reloading "mysql ndb_cpcd"
-#	killproc ndb_cpcd -HUP
-#	;;
-  *)
-	msg_usage "$0 {start|stop|restart|force-reload|status}"
-	exit 3
-esac
-
-exit $RETVAL
diff --git a/mysql-ndb-cpc.sysconfig b/mysql-ndb-cpc.sysconfig
deleted file mode 100644
index d6ad0c9..0000000
--- a/mysql-ndb-cpc.sysconfig
+++ /dev/null
@@ -1,2 +0,0 @@
-MYSQL_NDB_CPC_OPT=""
-SERVICE_RUN_NICE_LEVEL="+0"
diff --git a/mysql-ndb-ldflags.patch b/mysql-ndb-ldflags.patch
deleted file mode 100644
index 5d42f48..0000000
--- a/mysql-ndb-ldflags.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ur mysql-5.0.19.orig/configure.in mysql-5.0.19/configure.in
---- mysql-5.0.19.orig/configure.in	2006-03-12 21:34:26.000000000 +0200
-+++ mysql-5.0.19/configure.in	2006-03-12 21:35:17.000000000 +0200
-@@ -2701,7 +2701,7 @@
- AC_SUBST([ndb_transporter_opt_objs])
- 
- ndb_opt_subdirs=
--ndb_bin_am_ldflags="-static"
-+ndb_bin_am_ldflags=""
- if test X"$have_ndb_test" = Xyes
- then
-   ndb_opt_subdirs="test"
diff --git a/mysql-ndb-mgm.init b/mysql-ndb-mgm.init
deleted file mode 100644
index 3269dd0..0000000
--- a/mysql-ndb-mgm.init
+++ /dev/null
@@ -1,73 +0,0 @@
-#!/bin/sh
-#
-# mysql-ndb-mgm		This shell script takes care of starting and stopping mysql-ndb-mgm.
-#
-# chkconfig:	2345 80 30
-# description:	mysql-ndb-mgm is a mysql NDB engine
-#
-# processname:	ndbd
-
-# Source function library.
-. /etc/rc.d/init.d/functions
-
-# Source networking configuration.
-. /etc/sysconfig/network
-
-# Source oident configureation.
-if [ -f /etc/sysconfig/mysql-ndb-mgm ]; then
-	. /etc/sysconfig/mysql-ndb-mgm
-fi
-
-# Check that networking is up.
-if is_yes "${NETWORKING}"; then
-	if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
-		msg_network_down mysql-ndb-mgm
-		exit 1
-	fi
-else
-	exit 0
-fi
-
-RETVAL=0
-# See how we were called.
-case "$1" in
-  start)
-	# Start daemons.
-	if [ ! -f /var/lock/subsys/mysql-ndb-mgm ]; then
-		msg_starting "mysql ndb_mgmd"
-		daemon ndb_mgmd $MYSQL_NDB_MGM_OPT
-		RETVAL=$?
-		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/mysql-ndb-mgm
-	else
-		msg_already_running "mysql ndb_mgmd"
-	fi
-	;;
-  stop)
-	# Stop daemons.
-	if [ -f /var/lock/subsys/mysql-ndb-mgm ]; then
-		msg_stopping "mysql ndb_mgmd"
-		killproc ndbd
-		rm -f /var/lock/subsys/mysql-ndb-mgm >/dev/null 2>&1
-	else
-		msg_not_running "mysql ndb_mgmd"
-	fi
-	;;
-  restart|force-reload)
-	$0 stop
-	$0 start
-	exit $?
-	;;
-  status)
-	status ndb_mgmd
-	exit $?
-	;;
-#  reload)
-#	msg_reloading "mysql ndb_mgmd"
-#	killproc ndb_mgmd -HUP
-#	;;
-  *)
-	msg_usage "$0 {start|stop|restart|force-reload|status}"
-	exit 3
-esac
-
-exit $RETVAL
diff --git a/mysql-ndb-mgm.sysconfig b/mysql-ndb-mgm.sysconfig
deleted file mode 100644
index fc4936f..0000000
--- a/mysql-ndb-mgm.sysconfig
+++ /dev/null
@@ -1,2 +0,0 @@
-MYSQL_NDB_MGM_OPT=""
-SERVICE_RUN_NICE_LEVEL="+0"
diff --git a/mysql-ndb.init b/mysql-ndb.init
deleted file mode 100644
index 73a5b82..0000000
--- a/mysql-ndb.init
+++ /dev/null
@@ -1,73 +0,0 @@
-#!/bin/sh
-#
-# mysql-ndb		This shell script takes care of starting and stopping mysql-ndb.
-#
-# chkconfig:	2345 80 30
-# description:	mysql-ndb is a mysql NDB engine
-#
-# processname:	ndbd
-
-# Source function library.
-. /etc/rc.d/init.d/functions
-
-# Source networking configuration.
-. /etc/sysconfig/network
-
-# Source oident configureation.
-if [ -f /etc/sysconfig/mysql-ndb ]; then
-	. /etc/sysconfig/mysql-ndb
-fi
-
-# Check that networking is up.
-if is_yes "${NETWORKING}"; then
-	if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
-		msg_network_down mysql-ndb
-		exit 1
-	fi
-else
-	exit 0
-fi
-
-RETVAL=0
-# See how we were called.
-case "$1" in
-  start)
-	# Start daemons.
-	if [ ! -f /var/lock/subsys/mysql-ndb ]; then
-		msg_starting "mysql ndbd"
-		daemon ndbd $MYSQL_NDB_OPT
-		RETVAL=$?
-		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/mysql-ndb
-	else
-		msg_already_running "mysql ndbd"
-	fi
-	;;
-  stop)
-	# Stop daemons.
-	if [ -f /var/lock/subsys/mysql-ndb ]; then
-		msg_stopping "mysql ndbd"
-		killproc ndbd
-		rm -f /var/lock/subsys/mysql-ndb >/dev/null 2>&1
-	else
-		msg_not_running "mysql ndbd"
-	fi
-	;;
-  restart|force-reload)
-	$0 stop
-	$0 start
-	exit $?
-	;;
-  status)
-	status ndbd
-	exit $?
-	;;
-#  reload)
-#	msg_reloading "mysql ndbd"
-#	killproc ndbd -HUP
-#	;;
-  *)
-	msg_usage "$0 {start|stop|restart|force-reload|status}"
-	exit 3
-esac
-
-exit $RETVAL
diff --git a/mysql-ndb.sysconfig b/mysql-ndb.sysconfig
deleted file mode 100644
index 8b93682..0000000
--- a/mysql-ndb.sysconfig
+++ /dev/null
@@ -1,2 +0,0 @@
-MYSQL_NDB_OPT=""
-SERVICE_RUN_NICE_LEVEL="+0"
diff --git a/mysql-noproc.patch b/mysql-noproc.patch
deleted file mode 100644
index 90b7878..0000000
--- a/mysql-noproc.patch
+++ /dev/null
@@ -1,33 +0,0 @@
---- mysql-4.0.13/configure.in.orig	Fri Jul 11 11:59:51 2003
-+++ mysql-4.0.13/configure.in	Fri Jul 11 14:06:50 2003
-@@ -431,6 +431,7 @@
- # Lock for PS
- AC_PATH_PROG(PS, ps, ps)
- AC_MSG_CHECKING("how to check if pid exists")
-+if test -z "$FIND_PROC"; then
- PS=$ac_cv_path_PS
- # Linux style
- if $PS p $$ 2> /dev/null | grep $0 > /dev/null
-@@ -467,12 +468,14 @@
-       AC_MSG_ERROR([Could not find the right ps switches. Which OS is this ?. See the Installation chapter in the Reference Manual.])
-   esac
- fi
-+fi
- AC_SUBST(FIND_PROC)
- AC_MSG_RESULT("$FIND_PROC")
- 
- # Check if a pid is valid
- AC_PATH_PROG(KILL, kill, kill)
- AC_MSG_CHECKING("for kill switches")
-+if test -z "$CHECK_PID"; then
- if $ac_cv_path_KILL -0 $$
- then
-   CHECK_PID="$ac_cv_path_KILL -0 \$\$PID > /dev/null 2> /dev/null"
-@@ -483,6 +486,7 @@
-   AC_MSG_WARN([kill -0 to check for pid seems to fail])
-     CHECK_PID="$ac_cv_path_KILL -s SIGCONT \$\$PID > /dev/null 2> /dev/null"
- fi
-+fi
- AC_SUBST(CHECK_PID)
- AC_MSG_RESULT("$CHECK_PID")
- 
diff --git a/mysql-sql-cxx-pic.patch b/mysql-sql-cxx-pic.patch
deleted file mode 100644
index 18b89d9..0000000
--- a/mysql-sql-cxx-pic.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- mysql-4.0.13/sql/Makefile.am.orig	2003-07-11 09:12:35.000000000 +0000
-+++ mysql-4.0.13/sql/Makefile.am	2003-07-11 11:02:10.000000000 +0000
-@@ -94,6 +94,7 @@
- BUILT_SOURCES =		sql_yacc.cc sql_yacc.h
- EXTRA_DIST =		udf_example.cc $(BUILT_SOURCES)
- AM_YFLAGS =		-d
-+AM_CXXFLAGS = -fPIC
- 
- link_sources:
- 	rm -f mini_client_errors.c
diff --git a/mysql.init b/mysql.init
deleted file mode 100644
index 2f3cf5b..0000000
--- a/mysql.init
+++ /dev/null
@@ -1,900 +0,0 @@
-#!/bin/sh
-#
-# mysql         A very fast and reliable SQL database engine
-#
-# chkconfig:    2345 84 25
-#
-# description:  A very fast and reliable SQL database engine.
-#
-# Source function library
-. /etc/rc.d/init.d/functions
-
-# Get network config
-. /etc/sysconfig/network
-
-# Get service config
-if [ -f /etc/sysconfig/mysql ]; then
-	. /etc/sysconfig/mysql
-else
-	nls "Error: %s not found" /etc/sysconfig/mysql
-	nls "%s can't be run." MySQL
-	exit 1
-fi
-
-if [ -n "$MYSQL_DB_CLUSTERS" ]; then
-	nls "Warning: MYSQL_DB_CLUSTERS is set. It's obsolete. Use %s instead." /etc/mysql/clusters.conf
-fi
-
-if [ -f /etc/mysql/clusters.conf ]; then
-	MYSQL_DB_CLUSTERS=$(grep -v '^#' /etc/mysql/clusters.conf | cut -s -f 2 -d '=')
-	if [ -z "$MYSQL_DB_CLUSTERS"  ]; then
-		nls "Warning: there are no configured clusters."
-	fi
-
-else
-	nls "Warning: Missing clusters config file %s" /etc/mysql/clusters.conf
-	if [ -z "$MYSQL_DB_CLUSTERS"  ]; then
-		nls "Warning: there are no configured clusters."
-		nls "Using default cluster /var/lib/mysql (compatibility mode)"
-		MYSQL_DB_CLUSTERS=/var/lib/mysql
-	fi
-fi
-
-
-# Check that networking is up
-if is_yes "${NETWORKING}"; then
-	if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status -a "$1" != init ]; then
-		msg_network_down MySQL
-		exit 1
-	fi
-else
-	exit 0
-fi
-
-action="$1"
-
-# any db cluster as command line argument?
-if [ $# -gt 1 ]; then
-	shift
-	# perform action for specified clusters only
-	DB_CLUSTERS="$@"
-else
-	DB_CLUSTERS="$MYSQL_DB_CLUSTERS"
-fi
-
-MYSQL_ERRLOG=/var/log/mysql/err
-MYSQL_START_WAIT_TIME=${MYSQL_START_WAIT_TIME:-15}
-MYSQL_STOP_WAIT_TIME=${MYSQL_STOP_WAIT_TIME:-900}
-
-#
-# Useful functions.
-#
-
-#
-# check for mysql status
-#
-# arguments:
-# $1 - db cluster
-# $2 - start|stop
-#
-# sets variables:
-# MYSQL_STATUS = starting | running | not running | died
-# MYSQL_PID    = pid of mysqld process
-#
-mysqlstatus() {
-	clusterdir="$1"
-	mode="$2"
-	
-	mysqlgetconfig "$clusterdir"
-
-	MYSQL_STATUS="not running"
-	MYSQL_PID="unknown"
-	MYSQL_PIDFILE_PID=""
-	MYSQL_GREP_PID=""
-
-	if [ -f "$MYSQL_PIDFILE" ]; then
-		MYSQL_PIDFILE_PID=$(cat "$MYSQL_PIDFILE")
-	fi
-	
-	if [ -n "$MYSQL_PIDFILE_PID" ]; then
-		MYSQL_PID=$MYSQL_PIDFILE_PID
-		if [ ! -d "/proc/$MYSQL_PID" ]; then
-			MYSQL_STATUS="died"
-			return
-		elif (grep -qa "$MYSQL_PIDFILE" /proc/$MYSQL_PID/cmdline 2> /dev/null); then
-			MYSQL_STATUS="running"
-			return
-		fi
-	fi
-
-	if [ "$mode" = "start" ]; then
-		MYSQL_GREP_PID=$(grep -lE "^/usr/sbin/mysqld.*${MYSQL_PIDFILE}" /proc/[0-9]*/cmdline 2> /dev/null | awk -F "/" '{ print $3; exit; }')
-		if [ -n "$MYSQL_GREP_PID" ]; then
-			MYSQL_PID=$MYSQL_GREP_PID
-			if (grep -qa "$MYSQL_PIDFILE" /proc/$MYSQL_PID/cmdline 2> /dev/null); then
-				if [ -f "$MYSQL_PIDFILE" ]; then
-					MYSQL_PIDFILE_PID=$(cat "$MYSQL_PIDFILE")
-				fi
-				if [ -n "$MYSQL_PIDFILE_PID" ]; then
-					MYSQL_PID=$MYSQL_PIDFILE_PID
-					MYSQL_STATUS="running"
-					return
-				else
-					MYSQL_STATUS="starting"
-					return
-				fi
-			fi
-		fi
-	fi
-
-	# else default, "not running"
-}
-
-# get mysql configuration in variables
-# MYSQL_CONFIG MYSQL_DATA_DIR MYSQL_USER MYSQL_PIDFILE
-#
-# arguments
-# $1 - db cluster
-
-mysqlgetconfig() {
-	clusterdir="$1"
-
-	# emulate old behaviour if only one cluster specified
-	if [ "$clusterdir" = "$MYSQL_DB_CLUSTERS" -a "$clusterdir" = "/var/lib/mysql" -a -f /etc/mysqld.conf ]; then
-		MYSQL_RA_COMPAT=yes; export MYSQL_RA_COMPAT
-		config_file=/etc/mysqld.conf
-	else
-		# TODO: convert this piece of crap to awk
-		config=`grep -v "^#" /etc/mysql/clusters.conf | grep "${clusterdir}$" | cut -s -f 1 -d '='`
-		if echo "$config" | grep -q '^/'; then
-			config_file="$config"
-		elif [ -f "/etc/mysql/$config" ]; then
-			config_file=/etc/mysql/$config
-		else
-			config_file="$clusterdir/mysqld.conf"
-		fi
-	fi
-
-	MYSQL_CLUSTER_DIR="$clusterdir"; export MYSQL_CLUSTER_DIR
-
-	if [ -z "$config_file" ]; then
-		nls "Error: Can't find config file for %s cluster" "$clusterdir"
-		exit 6
-	else
-		MYSQL_CONFIG="$config_file"; export MYSQL_CONFIG
-	fi
-
-	if [ ! -f "$config_file" ]; then
-		nls "Error: config file %s not found" "$config_file"
-		nls "MySQL can't be run. Did you initialize DB by doing \`$0 init'?"
-		exit 6
-	fi
-
-	eval `awk '
-/^[ \t]*\[.*\][ \t]*$/ {
-	match($0,/\[.*\]/)
-	section=substr($0,RSTART+1,RSTART+RLENGTH-3)
-}
-section=="mysqld" && $2~"=" {
-	if ($1=="datadir") {
-		printf("MYSQL_DATA_DIR=%s;", $3)
-	} else if ($1=="user") {
-		printf("MYSQL_USER=%s;", $3)
-	} else if ($1=="pid-file") {
-		printf("MYSQL_PIDFILE=%s;", $3)
-	} else if ($1=="socket") {
-		printf("MYSQL_SOCKET=%s;", $3)
-	}
-}
-END {
-	print "export MYSQL_DATA_DIR MYSQL_USER MYSQL_PIDFILE MYSQL_SOCKET"
-}
-' $config_file`
-
-
-	if is_yes "$MYSQL_RA_COMPAT"; then
-		MYSQL_DATA_DIR_SUB=""
-	else
-		MYSQL_DATA_DIR_SUB="/mysqldb"
-	fi
-
-	if [ -z "$MYSQL_DATA_DIR" -o "$MYSQL_DATA_DIR" != "${clusterdir}${MYSQL_DATA_DIR_SUB}/db" ]; then
-		nls "Error: datadir specified in %s should be %s" "$config_file" "$clusterdir${MYSQL_DATA_DIR_SUB}/db"
-		nls " MySQL can't be run."
-		exit 6
-	fi
-
-	if [ -z "$MYSQL_PIDFILE" -o "$MYSQL_PIDFILE" != "$clusterdir${MYSQL_DATA_DIR_SUB}/mysql.pid" ]; then
-		nls "Error: pid-file specified in %s should be %s" "$config_file" "$clusterdir${MYSQL_DATA_DIR_SUB}/mysql.pid"
-		nls " MySQL can't be run."
-		exit 6
-	fi
-
-	if [ -z $MYSQL_USER ]; then
-		echo "$(nls 'MySQL user not configured properly')"'!' >&2
-		nls "Edit %s and configure it." "$config_file" >&2
-		exit 6
-	fi
-}
-
-# start mysql
-mysqlstart() {
-	clusterdir="$1"
-	mysqlgetconfig "$clusterdir"
-	if [ ! -d "$MYSQL_DATA_DIR/mysql" ]; then
-		nls "MySQL cluster %s not initialized." "$clusterdir"
-		nls "Try \`%s init %s' before start." "$0" "$clusterdir"
-		exit 6
-	fi
-
-	msg_starting "MySQL $clusterdir"
-	busy
-	[ -z "$DEFAULT_SERVICE_RUN_NICE_LEVEL" ] && DEFAULT_SERVICE_RUN_NICE_LEVEL=0
-	rm -f "$MYSQL_PIDFILE"
-	TMPDIR=/tmp nice -n ${SERVICE_RUN_NICE_LEVEL:-$DEFAULT_SERVICE_RUN_NICE_LEVEL} /usr/bin/setsid /usr/sbin/mysqld --defaults-file=$MYSQL_CONFIG --datadir=$MYSQL_DATA_DIR --pid-file=$MYSQL_PIDFILE $MYSQL_OPTIONS >> $MYSQL_ERRLOG 2>&1 &
-	sleep 0.2
-	mysqlstatus "$clusterdir" start
-	# it takes longer for mysqld to start and create pidfile if it has to recover innodb transactions
-	if [ "$MYSQL_STATUS" = "starting" ]; then
-		for nr in $(seq 1 $(($MYSQL_START_WAIT_TIME*10))); do
-			[ -f "$MYSQL_PIDFILE" ] && break
-			sleep 0.1
-		done
-	fi
-
-	mysqlstatus "$clusterdir" start
-	if [ "$MYSQL_STATUS" = "running" -a "$MYSQL_PID" != "unknown" ]; then
-		ok
-	elif [ "$MYSQL_STATUS" = "died" ]; then
-		RETVAL=1
-		died
-	else
-		RETVAL=1
-		fail
-	fi
-}
-
-# stop mysql
-mysqlstop() {
-	clusterdir="$1"
-	mysqlstatus "$clusterdir" stop
-	msg_stopping "MySQL $clusterdir"
-	busy
-
-	# try graceful shutdown -- send shutdown command
-	# requires mysql_logrotate user proper privs
-	/usr/bin/mysqladmin --defaults-file=$MYSQL_CONFIG ${MYSQL_SOCKET:+--socket=$MYSQL_SOCKET} shutdown >/dev/null 2>&1
-	mysqlstatus "$clusterdir" stop
-
-	if [ "$MYSQL_PID" != "unknown" ]; then
-		kill -TERM "$MYSQL_PID" 2> /dev/null
-		for nr in $(seq 1 $(($MYSQL_STOP_WAIT_TIME*10))); do
-			[ -d "/proc/$MYSQL_PID" ] || break
-			sleep 0.1
-		done
-	fi
-	
-	mysqlstatus "$clusterdir" stop
-	if [ "$MYSQL_STATUS" = "died" ]; then
-		died
-	elif [ "$MYSQL_STATUS" = "running" -o "$MYSQL_STATUS" = "starting" ]; then
-		fail
-	else
-		ok
-	fi
-}
-
-#
-# check for running mysql instances; if any instance is running then
-# create subsys lock file
-#
-mysqlsubsys() {
-	# check for every defined db cluster in sysconfig file
-	for mysqldir in $DB_CLUSTERS; do
-		mysqlstatus "$mysqldir"
-		if [ "$MYSQL_STATUS" = "running" ]; then
-			touch /var/lock/subsys/mysql
-			return
-		fi
-	done
-	rm -f /var/lock/subsys/mysql
-}
-
-mysqlinit() {
-	clusterdir="$1"
-
-	if [ -f /etc/mysqld.conf ]; then
-		nls "Running in \`no cluster compat' mode: can't initialize database."
-		nls "Move /etc/mysqld.conf away and rerun \`$0 init' (new config will be in $clusterdir)."
-		exit 1
-	fi
-
-	if [ -f "$clusterdir/mysqld.conf" ]; then
-		mysqlgetconfig "$clusterdir"
-	else
-		MYSQL_USER="mysql"
-		MYSQL_CLUSTER_DIR="$clusterdir"
-		MYSQL_DATA_DIR="$clusterdir/mysqldb/db"
-		MYSQL_PIDFILE="$clusterdir/mysqldb/mysql.pid"
-		MYSQL_SOCKET="$clusterdir/mysqldb/mysql.sock"
-
-		# this $MYSQL_CONFIG will be created later
-		MYSQL_CONFIG="$MYSQL_CLUSTER_DIR/mysqld.conf"
-	fi
-
-	nls "Initializing cluster %s" "$clusterdir"
-
-	# Check if not exist init database
-	if [ -d "$MYSQL_DATA_DIR/mysql" ]; then
-		nls "Seems that database is initialized now. Remove by hand %s" "$MYSQL_DATA_DIR/mysql"
-		nls "before initializing database."
-		nls "For now skipping cluster %s." "$clusterdir"
-		return
-	fi
-
-	show "Creating privilege mysql tables for $MYSQL_DATA_DIR"
-	busy
-	TMP=/tmp TMPDIR=/tmp
-
-
-	# Install this in the user table, too
-	hostname="`hostname --fqdn 2> /dev/null | tr -d '[:space:]'`"
-	[ -z "$hostname" ] && hostname="localhost-unknown"
-
-	# Check if hostname is valid
-	if [ -z "$hostname" ]; then
-		deltext
-		fail
-		nls "Sorry, the host name is not configured."
-		nls "Please configure the 'hostname' command to return a hostname."
-		exit 1
-	elif ! hostname -i >/dev/null 2>&1; then
-		deltext
-		fail
-		nls "Sorry, the host '%s' could not be looked up." "$hostname"
-		nls "Please configure the 'hostname' command to return a correct hostname."
-		exit 1
-	fi
-
-	# Initialize variables
-	c_d="" i_d="" c_ht=""  c_tz=""
-	c_h="" i_h="" c_hc=""  c_tzt=""
-	c_u="" i_u="" c_hk=""  c_tztt=""
-	c_f="" i_f="" c_hr=""  c_tzls=""
-	c_t="" c_c="" c_tzn="" c_p=""
-	c_pp=""
-
-	# Check for old tables
-	if test ! -f $MYSQL_DATA_DIR/mysqldb/mysql/db.frm
-	then
-	  # mysqld --bootstrap wants one command/line
-	  c_d="$c_d CREATE TABLE db ("
-	  c_d="$c_d   Host char(60) DEFAULT '' NOT NULL,"
-	  c_d="$c_d   Db char(64) DEFAULT '' NOT NULL,"
-	  c_d="$c_d   User char(16) DEFAULT '' NOT NULL,"
-	  c_d="$c_d   Select_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_d="$c_d   Insert_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_d="$c_d   Update_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_d="$c_d   Delete_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_d="$c_d   Create_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_d="$c_d   Drop_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_d="$c_d   Grant_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_d="$c_d   References_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_d="$c_d   Index_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_d="$c_d   Alter_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_d="$c_d   Create_tmp_table_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_d="$c_d   Lock_tables_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_d="$c_d   Create_view_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_d="$c_d   Show_view_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_d="$c_d   Create_routine_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_d="$c_d   Alter_routine_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_d="$c_d   Execute_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_d="$c_d PRIMARY KEY Host (Host,Db,User),"
-	  c_d="$c_d KEY User (User)"
-	  c_d="$c_d )"
-	  c_d="$c_d CHARACTER SET utf8 COLLATE utf8_bin"
-	  c_d="$c_d comment='Database privileges';"
-
-	  i_d="INSERT INTO db VALUES ('%','test','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N');
-	  INSERT INTO db VALUES ('%','test\_%','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N');"
-
-	fi
-
-	if test ! -f $MYSQL_DATA_DIR/mysqldb/mysql/host.frm
-	then
-	  c_h="$c_h CREATE TABLE host ("
-	  c_h="$c_h  Host char(60) DEFAULT '' NOT NULL,"
-	  c_h="$c_h  Db char(64) DEFAULT '' NOT NULL,"
-	  c_h="$c_h  Select_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_h="$c_h  Insert_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_h="$c_h  Update_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_h="$c_h  Delete_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_h="$c_h  Create_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_h="$c_h  Drop_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_h="$c_h  Grant_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_h="$c_h  References_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_h="$c_h  Index_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_h="$c_h  Alter_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_h="$c_h  Create_tmp_table_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_h="$c_h  Lock_tables_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_h="$c_h  Create_view_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_h="$c_h  Show_view_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_h="$c_h  Create_routine_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_h="$c_h  Alter_routine_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_h="$c_h  Execute_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_h="$c_h  PRIMARY KEY Host (Host,Db)"
-	  c_h="$c_h )"
-	  c_h="$c_h CHARACTER SET utf8 COLLATE utf8_bin"
-	  c_h="$c_h comment='Host privileges;  Merged with database privileges';"
-	fi
-
-	if test ! -f $MYSQL_DATA_DIR/mysqldb/mysql/user.frm
-	then
-	  c_u="$c_u CREATE TABLE user ("
-	  c_u="$c_u   Host char(60) binary DEFAULT '' NOT NULL,"
-	  c_u="$c_u   User char(16) binary DEFAULT '' NOT NULL,"
-	  c_u="$c_u   Password char(41) character set latin1 collate latin1_bin DEFAULT '' NOT NULL,"
-	  c_u="$c_u   Select_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   Insert_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   Update_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   Delete_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   Create_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   Drop_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   Reload_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   Shutdown_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   Process_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   File_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   Grant_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   References_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   Index_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   Alter_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   Show_db_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   Super_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   Create_tmp_table_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   Lock_tables_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   Execute_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   Repl_slave_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   Repl_client_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   Create_view_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   Show_view_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   Create_routine_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   Alter_routine_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   Create_user_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL,"
-	  c_u="$c_u   ssl_type enum('','ANY','X509', 'SPECIFIED') COLLATE utf8_general_ci DEFAULT '' NOT NULL,"
-	  c_u="$c_u   ssl_cipher BLOB NOT NULL,"
-	  c_u="$c_u   x509_issuer BLOB NOT NULL,"
-	  c_u="$c_u   x509_subject BLOB NOT NULL,"
-	  c_u="$c_u   max_questions int(11) unsigned DEFAULT 0  NOT NULL,"
-	  c_u="$c_u   max_updates int(11) unsigned DEFAULT 0  NOT NULL,"
-	  c_u="$c_u   max_connections int(11) unsigned DEFAULT 0  NOT NULL,"
-	  c_u="$c_u   max_user_connections int(11) unsigned DEFAULT 0  NOT NULL,"
-	  c_u="$c_u   PRIMARY KEY Host (Host,User)"
-	  c_u="$c_u ) engine=MyISAM"
-	  c_u="$c_u CHARACTER SET utf8 COLLATE utf8_bin"
-	  c_u="$c_u comment='Users and global privileges';"
-
-
-	  i_u="INSERT INTO user VALUES ('localhost','mysql','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0);
-	  INSERT INTO user VALUES ('$hostname',          'mysql','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0);
-	  INSERT INTO user (host,user) values ('localhost','');
-	  INSERT INTO user (host,user) values ('$hostname','');
-	  INSERT INTO user VALUES ('localhost','mysql_logrotate','','N','N','N','N','N','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','','','','',0,0,0,0);"
-	fi
-
-	if test ! -f $MYSQL_DATA_DIR/mysqldb/mysql/func.frm
-	then
-	  c_f="$c_f CREATE TABLE func ("
-	  c_f="$c_f   name char(64) DEFAULT '' NOT NULL,"
-	  c_f="$c_f   ret tinyint(1) DEFAULT '0' NOT NULL,"
-	  c_f="$c_f   dl char(128) DEFAULT '' NOT NULL,"
-	  c_f="$c_f   type enum ('function','aggregate') COLLATE utf8_general_ci NOT NULL,"
-	  c_f="$c_f   PRIMARY KEY (name)"
-	  c_f="$c_f )"
-	  c_f="$c_f CHARACTER SET utf8 COLLATE utf8_bin"
-	  c_f="$c_f comment='User defined functions';"
-	fi
-
-	if test ! -f $MYSQL_DATA_DIR/mysqldb/mysql/tables_priv.frm
-	then
-	  c_t="$c_t CREATE TABLE tables_priv ("
-	  c_t="$c_t   Host char(60) DEFAULT '' NOT NULL,"
-	  c_t="$c_t   Db char(64) DEFAULT '' NOT NULL,"
-	  c_t="$c_t   User char(16) DEFAULT '' NOT NULL,"
-	  c_t="$c_t   Table_name char(60) DEFAULT '' NOT NULL,"
-	  c_t="$c_t   Grantor char(77) DEFAULT '' NOT NULL,"
-	  c_t="$c_t   Timestamp timestamp(14),"
-	  c_t="$c_t   Table_priv set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index', 'Alter','Create View','Show view') COLLATE utf8_general_ci DEFAULT '' NOT NULL,"
-	  c_t="$c_t   Column_priv set('Select','Insert','Update','References') COLLATE utf8_general_ci DEFAULT '' NOT NULL,"
-	  c_t="$c_t   PRIMARY KEY (Host,Db,User,Table_name),"
-	  c_t="$c_t   KEY Grantor (Grantor)"
-	  c_t="$c_t )"
-	  c_t="$c_t CHARACTER SET utf8 COLLATE utf8_bin"
-	  c_t="$c_t comment='Table privileges';"
-	fi
-
-	if test ! -f $MYSQL_DATA_DIR/mysqldb/mysql/columns_priv.frm
-	then
-	  c_c="$c_c CREATE TABLE columns_priv ("
-	  c_c="$c_c   Host char(60) DEFAULT '' NOT NULL,"
-	  c_c="$c_c   Db char(64) DEFAULT '' NOT NULL,"
-	  c_c="$c_c   User char(16) DEFAULT '' NOT NULL,"
-	  c_c="$c_c   Table_name char(64) DEFAULT '' NOT NULL,"
-	  c_c="$c_c   Column_name char(64) DEFAULT '' NOT NULL,"
-	  c_c="$c_c   Timestamp timestamp(14),"
-	  c_c="$c_c   Column_priv set('Select','Insert','Update','References') COLLATE utf8_general_ci DEFAULT '' NOT NULL,"
-	  c_c="$c_c   PRIMARY KEY (Host,Db,User,Table_name,Column_name)"
-	  c_c="$c_c )"
-	  c_c="$c_c CHARACTER SET utf8 COLLATE utf8_bin"
-	  c_c="$c_c comment='Column privileges';"
-	fi
-
-	if test ! -f $MYSQL_DATA_DIR/mysqldb/mysql/procs_priv.frm
-	then
-      c_pp="$c_pp CREATE TABLE procs_priv ("
-	  c_pp="$c_pp   Host char(60) binary DEFAULT '' NOT NULL,"
-	  c_pp="$c_pp   Db char(64) binary DEFAULT '' NOT NULL,"
-	  c_pp="$c_pp   User char(16) binary DEFAULT '' NOT NULL,"
-	  c_pp="$c_pp   Routine_name char(64) binary DEFAULT '' NOT NULL,"
-	  c_pp="$c_pp   Routine_type enum('FUNCTION','PROCEDURE') NOT NULL,"
-	  c_pp="$c_pp   Grantor char(77) DEFAULT '' NOT NULL,"
-	  c_pp="$c_pp   Proc_priv set('Execute','Alter Routine','Grant') COLLATE utf8_general_ci DEFAULT '' NOT NULL,"
-	  c_pp="$c_pp   Timestamp timestamp(14),"
-	  c_pp="$c_pp   PRIMARY KEY (Host,Db,User,Routine_name,Routine_type),"
-	  c_pp="$c_pp   KEY Grantor (Grantor)"
-	  c_pp="$c_pp )"
-	  c_pp="$c_pp CHARACTER SET utf8 COLLATE utf8_bin"
-	  c_pp="$c_pp   comment='Procedure privileges';"
-    fi
-
-
-	if test ! -f $MYSQL_DATA_DIR/mysqldb/mysql/help_topic.frm
-	then
-	  c_ht="$c_ht CREATE TABLE help_topic ("
-	  c_ht="$c_ht   help_topic_id    int unsigned not null,"
-	  c_ht="$c_ht   name             varchar(64) not null,"
-      c_ht="$c_ht   help_category_id smallint unsigned not null,"
-	  c_ht="$c_ht   description      text not null,"
-	  c_ht="$c_ht   example          text not null,"
-	  c_ht="$c_ht   url              varchar(128) not null,"
-	  c_ht="$c_ht   primary key      (help_topic_id),"
-	  c_ht="$c_ht   unique index     (name)"
-	  c_ht="$c_ht )"
-	  c_ht="$c_ht CHARACTER SET utf8"
-	  c_ht="$c_ht comment='help topics';"
-	fi
-
-	if test ! -f $MYSQL_DATA_DIR/mysqldb/mysql/help_category.frm
-	then
-	  c_hc="$c_hc CREATE TABLE help_category ("
-	  c_hc="$c_hc   help_category_id   smallint unsigned not null,"
-	  c_hc="$c_hc   name               varchar(64) not null,"
-	  c_hc="$c_hc   parent_category_id smallint unsigned null,"
-	  c_hc="$c_hc   url                varchar(128) not null,"
-	  c_hc="$c_hc   primary key        (help_category_id),"
-	  c_hc="$c_hc   unique index       (name)"
-	  c_hc="$c_hc )"
-	  c_hc="$c_hc   CHARACTER SET utf8"
-	  c_hc="$c_hc comment='help categories';"
-	fi
-
-	if test ! -f $MYSQL_DATA_DIR/mysqldb/mysql/help_keyword.frm
-	then
-	  c_hk="$c_hk CREATE TABLE help_keyword ("
-	  c_hk="$c_hk   help_keyword_id  int unsigned not null,"
-	  c_hk="$c_hk   name             varchar(64) not null,"
-	  c_hk="$c_hk   primary key      (help_keyword_id),"
-	  c_hk="$c_hk   unique index     (name)"
-	  c_hk="$c_hk )"
-	  c_hk="$c_hk   CHARACTER SET utf8"
-	  c_hk="$c_hk comment='help keywords';"
-	fi
-
-	if test ! -f $MYSQL_DATA_DIR/mysqldb/mysql/help_relation.frm
-	then
-	  c_hr="$c_hr CREATE TABLE help_relation ("
-	  c_hr="$c_hr   help_topic_id    int unsigned not null references help_topic,"
-	  c_hr="$c_hr   help_keyword_id  int unsigned not null references help_keyword,"
-	  c_hr="$c_hr   primary key      (help_keyword_id, help_topic_id)"
-	  c_hr="$c_hr )"
-	  c_hr="$c_hr   CHARACTER SET utf8"
-	  c_hr="$c_hr comment='keyword-topic relation';"
-	fi
-
-	if test ! -f $MYSQL_DATA_DIR/mysqldb/mysql/time_zone_name.frm
-	then
-	  c_tzn="$c_tzn CREATE TABLE time_zone_name ("
-	  c_tzn="$c_tzn   Name char(64) NOT NULL,"
-	  c_tzn="$c_tzn   Time_zone_id int unsigned NOT NULL,"
-	  c_tzn="$c_tzn   PRIMARY KEY Name (Name)"
-	  c_tzn="$c_tzn )"
-	  c_tzn="$c_tzn   CHARACTER SET utf8"
-	  c_tzn="$c_tzn comment='Time zone names';"
-	fi
-
-	if test ! -f $MYSQL_DATA_DIR/mysqldb/mysql/time_zone.frm
-	then
-	  c_tz="$c_tz CREATE TABLE time_zone ("
-	  c_tz="$c_tz   Time_zone_id int unsigned NOT NULL auto_increment,"
-	  c_tz="$c_tz   Use_leap_seconds enum('Y','N') DEFAULT 'N' NOT NULL,"
-	  c_tz="$c_tz   PRIMARY KEY TzId (Time_zone_id)"
-	  c_tz="$c_tz )"
-	  c_tz="$c_tz   CHARACTER SET utf8"
-	  c_tz="$c_tz comment='Time zones';"
-	fi
-
-	if test ! -f $MYSQL_DATA_DIR/mysqldb/mysql/time_zone_transition.frm
-	then
-	  c_tzt="$c_tzt CREATE TABLE time_zone_transition ("
-	  c_tzt="$c_tzt   Time_zone_id int unsigned NOT NULL,"
-	  c_tzt="$c_tzt   Transition_time bigint signed NOT NULL,"
-	  c_tzt="$c_tzt   Transition_type_id int unsigned NOT NULL,"
-	  c_tzt="$c_tzt   PRIMARY KEY TzIdTranTime (Time_zone_id, Transition_time)"
-	  c_tzt="$c_tzt )"
-	  c_tzt="$c_tzt   CHARACTER SET utf8"
-	  c_tzt="$c_tzt comment='Time zone transitions';"
-	fi
-
-	if test ! -f $MYSQL_DATA_DIR/mysqldb/mysql/time_zone_transition_type.frm
-	then
-	  c_tztt="$c_tztt CREATE TABLE time_zone_transition_type ("
-	  c_tztt="$c_tztt   Time_zone_id int unsigned NOT NULL,"
-	  c_tztt="$c_tztt   Transition_type_id int unsigned NOT NULL,"
-	  c_tztt="$c_tztt   Offset int signed DEFAULT 0 NOT NULL,"
-	  c_tztt="$c_tztt   Is_DST tinyint unsigned DEFAULT 0 NOT NULL,"
-	  c_tztt="$c_tztt   Abbreviation char(8) DEFAULT '' NOT NULL,"
-	  c_tztt="$c_tztt   PRIMARY KEY TzIdTrTId (Time_zone_id, Transition_type_id)"
-	  c_tztt="$c_tztt )"
-	  c_tztt="$c_tztt   CHARACTER SET utf8"
-	  c_tztt="$c_tztt comment='Time zone transition types';"
-	fi
-
-	if test ! -f $MYSQL_DATA_DIR/mysqldb/mysql/time_zone_leap_second.frm
-	then
-	  c_tzls="$c_tzls CREATE TABLE time_zone_leap_second ("
-	  c_tzls="$c_tzls   Transition_time bigint signed NOT NULL,"
-	  c_tzls="$c_tzls   Correction int signed NOT NULL,"
-	  c_tzls="$c_tzls   PRIMARY KEY TranTime (Transition_time)"
-	  c_tzls="$c_tzls )"
-	  c_tzls="$c_tzls CHARACTER SET utf8"
-	  c_tzls="$c_tzls   comment='Leap seconds information for time zones';"
-	fi
-
-	if test ! -f $MYSQL_DATA_DIR/mysqldb/mysql/proc.frm
-	then
-	  c_p="$c_p CREATE TABLE proc ("
-	  c_p="$c_p   db                char(64) collate utf8_bin DEFAULT '' NOT NULL,"
-	  c_p="$c_p   name              char(64) DEFAULT '' NOT NULL,"
-	  c_p="$c_p   type              enum('FUNCTION','PROCEDURE') NOT NULL,"
-	  c_p="$c_p   specific_name     char(64) DEFAULT '' NOT NULL,"
-	  c_p="$c_p   language          enum('SQL') DEFAULT 'SQL' NOT NULL,"
-	  c_p="$c_p   sql_data_access   enum('CONTAINS_SQL',"
-	  c_p="$c_p                          'NO_SQL',"
-	  c_p="$c_p                          'READS_SQL_DATA',"
-	  c_p="$c_p                          'MODIFIES_SQL_DATA'"
-	  c_p="$c_p                     ) DEFAULT 'CONTAINS_SQL' NOT NULL,"
-	  c_p="$c_p   is_deterministic  enum('YES','NO') DEFAULT 'NO' NOT NULL,"
-	  c_p="$c_p   security_type     enum('INVOKER','DEFINER') DEFAULT 'DEFINER' NOT NULL,"
-	  c_p="$c_p   param_list        blob DEFAULT '' NOT NULL,"
-	  c_p="$c_p   returns           char(64) DEFAULT '' NOT NULL,"
-	  c_p="$c_p   body              longblob DEFAULT '' NOT NULL,"
-	  c_p="$c_p   definer           char(77) collate utf8_bin DEFAULT '' NOT NULL,"
-	  c_p="$c_p   created           timestamp,"
-	  c_p="$c_p   modified          timestamp,"
-	  c_p="$c_p   sql_mode          set("
-	  c_p="$c_p                         'REAL_AS_FLOAT',"
-	  c_p="$c_p                         'PIPES_AS_CONCAT',"
-	  c_p="$c_p                         'ANSI_QUOTES',"
-	  c_p="$c_p                         'IGNORE_SPACE',"
-	  c_p="$c_p                         'NOT_USED',"
-	  c_p="$c_p                         'ONLY_FULL_GROUP_BY',"
-	  c_p="$c_p                         'NO_UNSIGNED_SUBTRACTION',"
-	  c_p="$c_p                         'NO_DIR_IN_CREATE',"
-	  c_p="$c_p                         'POSTGRESQL',"
-	  c_p="$c_p                         'ORACLE',"
-	  c_p="$c_p                         'MSSQL',"
-	  c_p="$c_p                         'DB2',"
-	  c_p="$c_p                         'MAXDB',"
-	  c_p="$c_p                         'NO_KEY_OPTIONS',"
-	  c_p="$c_p                         'NO_TABLE_OPTIONS',"
-	  c_p="$c_p                         'NO_FIELD_OPTIONS',"
-	  c_p="$c_p                         'MYSQL323',"
-	  c_p="$c_p                         'MYSQL40',"
-	  c_p="$c_p                         'ANSI',"
-	  c_p="$c_p                         'NO_AUTO_VALUE_ON_ZERO',"
-	  c_p="$c_p                         'NO_BACKSLASH_ESCAPES',"
-	  c_p="$c_p                         'STRICT_TRANS_TABLES',"
-	  c_p="$c_p                         'STRICT_ALL_TABLES',"
-	  c_p="$c_p                         'NO_ZERO_IN_DATE',"
-	  c_p="$c_p                         'NO_ZERO_DATE',"
-	  c_p="$c_p                         'INVALID_DATES',"
-	  c_p="$c_p                         'ERROR_FOR_DIVISION_BY_ZERO',"
-	  c_p="$c_p                         'TRADITIONAL',"
-	  c_p="$c_p                         'NO_AUTO_CREATE_USER',"
-	  c_p="$c_p                         'HIGH_NOT_PRECEDENCE'"
-	  c_p="$c_p                     ) DEFAULT '' NOT NULL,"
-	  c_p="$c_p   comment           char(64) collate utf8_bin DEFAULT '' NOT NULL,"
-	  c_p="$c_p   PRIMARY KEY (db,name,type)"
-	  c_p="$c_p )"
-	  c_p="$c_p character set utf8"
-	  c_p="$c_p comment='Stored Procedures';"
-	fi
-
-	mkdir -p "$MYSQL_DATA_DIR" > /dev/null 2>&1
-	# Using mysql:mysql for MYSQL_CLUSTER_DIR is creating SECURITY hole, root:root is proper
-	chown root:root "$MYSQL_CLUSTER_DIR"
-    chown mysql:mysql "$MYSQL_CLUSTER_DIR/mysqldb" "$MYSQL_DATA_DIR" > /dev/null 2>&1
-	chmod 751 "$MYSQL_CLUSTER_DIR" "$MYSQL_CLUSTER_DIR/mysqldb"
-
-	if [ -f /usr/share/mysql/mysqld.conf -a ! -f "$MYSQL_CLUSTER_DIR/mysqld.conf" ]; then
-	    sed -e "s#\(datadir.*\)=.*#\1= $MYSQL_DATA_DIR#g" \
-		-e "s#\(pid-file.*\)=.*#\1= $MYSQL_PIDFILE#g" \
-		-e "s#\(socket.*\)=.*#\1= $MYSQL_SOCKET#g" \
-		/usr/share/mysql/mysqld.conf > "$MYSQL_CLUSTER_DIR/mysqld.conf"
-	    chown root:root "$MYSQL_CLUSTER_DIR/mysqld.conf"
-	    chmod 640 "$MYSQL_CLUSTER_DIR/mysqld.conf"
-	fi
-
-	if [ ! -e /var/lib/mysql/mysql.sock ] || [ -L /var/lib/mysql/mysql.sock ] && [ -z "$(readlink /var/lib/mysql/mysql.sock)" ]; then
-		sock=$(echo "$MYSQL_SOCKET" | sed -e 's,^/var/lib/mysql/,,')
-	    ln -s "$sock" /var/lib/mysql/mysql.sock
-	fi
-
-	if /usr/sbin/mysqld --bootstrap --skip-grant-tables \
-	    --datadir=$MYSQL_DATA_DIR --user=$MYSQL_USER << END_OF_DATA
-CREATE DATABASE mysql;
-use mysql;
-$c_d
-$i_d
-
-$c_h
-$i_h
-
-$c_u
-$i_u
-
-$c_f
-$i_f
-
-$c_t
-$c_c
-
-$c_ht
-$c_hc
-$c_hk
-$c_hr
-
-$c_tzn
-$c_tz
-$c_tzt
-$c_tztt
-$c_tzls
-
-$c_p
-$c_pp
-END_OF_DATA
-	then
-	    ok
-	cat << END_OF_MSG
-
-PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL USERS!
-This is done (after starting database; press enter when asked for password) with:
-
-/usr/bin/mysqladmin -u mysql -p -S $MYSQL_SOCKET password 'password'
-/usr/bin/mysqladmin -h $hostname -u mysql -p -S $MYSQL_SOCKET password 'password'
-/usr/bin/mysqladmin -u mysql_logrotate -p -S $MYSQL_SOCKET password 'password'
-
-NOTE: mysql_logrotate password should be placed to $MYSQL_CONFIG in
-mysqladmin section. See the manual for more instructions.
-
-END_OF_MSG
-      else
-	    fail
-	    cat << END_OF_MSG
-Installation of grant tables FAILED!
-
-Examine the logs in $MYSQL_DATA_DIR for more information.  You can
-also try to start the mysqld demon with:
-
-/usr/sbin/mysqld --skip-grant &
-
-You can use the command line tool /usr/bin/mysql to connect to the mysql
-database and look at the grant tables:
-
-shell> /usr/bin/mysql -u mysql mysql
-mysql> show tables
-
-Try 'mysqld --help' if you have problems with paths. Setting on
-logging in /etc/mysqld.conf gives you a log in /var/log/mysql/log that
-may be helpful. The latest information about MySQL is available on the
-web at http://www.mysql.com/.
-
-Please check PLD Linux ftp site for newer versions of this package.
-
-Please consult the MySQL manual section: 'Problems running
-mysql_install_db', and the manual section that describes problems on
-your OS.  Another information source is the MySQL email archive.
-Please check all of the above before mailing us!  And if you do mail
-us, you MUST use the /usr/bin/mysqlbug script!
-
-END_OF_MSG
-
-	exit 1
-	fi
-}
-
-#
-# End of useful functions.
-#
-
-RETVAL=0
-case "$action" in
-  start)
-	if [ ! -f $MYSQL_ERRLOG ]; then
-		touch $MYSQL_ERRLOG
-	fi
-	chown mysql:mysql $MYSQL_ERRLOG
-	chmod 640 $MYSQL_ERRLOG
-
-	for mysqldir in $DB_CLUSTERS; do
-		mysqlstatus "$mysqldir" start
-		if [ "$MYSQL_STATUS" = "running" ]; then
-			msg_already_running "MySQL $mysqldir"
-		else
-			mysqlstart "$mysqldir"
-		fi
-	done
-	mysqlsubsys
-	;;
-  stop)
-	for mysqldir in $DB_CLUSTERS; do
-		mysqlstatus "$mysqldir" stop
-		if [ "$MYSQL_STATUS" = "not running" ]; then
-			msg_not_running "MySQL $mysqldir"
-		else
-			mysqlstop "$mysqldir"
-		fi
-	done
-	mysqlsubsys
-	;;
-  status)
-	for mysqldir in $DB_CLUSTERS; do
-		mysqlstatus "$mysqldir"
-		if [ "$MYSQL_STATUS" = "running" ]; then
-			show "MySQL cluster %s, PID %s" "$mysqldir" "$MYSQL_PID"
-			progress "$MYSQL_STATUS"
-		else
-			show "MySQL cluster %s" "$mysqldir"
-			progress "$MYSQL_STATUS" "$CFAIL"
-		fi
-		echo
-	done
-	exit $?
-	;;
-  restart|force-reload)
-	$0 stop $DB_CLUSTERS
-	$0 start $DB_CLUSTERS
-	exit $?
-	;;
-  init)
-	for mysqldir in $DB_CLUSTERS; do
-		mysqlinit "$mysqldir"
-	done
-	exit $?
-	;;
-  flush-logs)
-  	for mysqldir in $DB_CLUSTERS; do
-	    mysqlgetconfig "$mysqldir"
-		# just if mysqld is really running
-		if /usr/bin/mysqladmin --defaults-file="$MYSQL_CONFIG" --socket="$MYSQL_SOCKET" ping >/dev/null 2>&1; then
-			/usr/bin/mysqladmin --defaults-file="$MYSQL_CONFIG" --socket="$MYSQL_SOCKET" flush-logs
-		fi
-	done
-	;;
-  *)
-	msg_usage "$0 {start|stop|init|restart|force-reload|status}"
-	exit 3
-esac
-
-exit $RETVAL
-
-# vi: shiftwidth=4 tabstop=4
diff --git a/mysql.logrotate b/mysql.logrotate
deleted file mode 100644
index ec3ed44..0000000
--- a/mysql.logrotate
+++ /dev/null
@@ -1,22 +0,0 @@
-# If the *mysql* root user has a password you have to set it in mysqld.conf
-#
-# [mysqladmin]
-# user = mysql_logrotate
-# password = <secret>
-#
-# where "<secret>" is the password.
-#
-# You must do this for every cluster defined in /etc/mysql/clusters.conf
-#
-# ATTENTION: The mysqld.conf should be readable ONLY for *system* root!
-
-/var/log/mysql/log /var/log/mysql/update* {
-	olddir /var/log/archiv/mysql
-	notifempty
-	missingok
-	create 640 mysql mysql
-	sharedscripts
-	postrotate
-		/etc/rc.d/init.d/mysql flush-logs
-	endscript
-}
diff --git a/mysql.monitrc b/mysql.monitrc
deleted file mode 100644
index 87c89ba..0000000
--- a/mysql.monitrc
+++ /dev/null
@@ -1,23 +0,0 @@
-check process mysql with pidfile /var/lib/mysql/mysqldb/mysql.pid
-	group database
-	start program = "/etc/rc.d/init.d/mysql restart"
-	stop program = "/etc/rc.d/init.d/mysql stop"
-	if failed unix /var/lib/mysql/mysql.sock then restart
-	if 5 restarts within 5 cycles then timeout
-	depends on mysql_bin
-	depends on mysql_rc
-
-check file mysql_bin with path /usr/sbin/mysqld
-	group database
-	if failed checksum then unmonitor
-	if failed permission 755 then unmonitor
-	if failed uid root then unmonitor
-	if failed gid root then unmonitor
-
-check file mysql_rc with path /etc/rc.d/init.d/mysql
-	group database
-	if failed checksum then unmonitor
-	if failed permission 754 then unmonitor
-	if failed uid root then unmonitor
-	if failed gid root then unmonitor
-
diff --git a/mysql.sysconfig b/mysql.sysconfig
deleted file mode 100644
index 846a9d7..0000000
--- a/mysql.sysconfig
+++ /dev/null
@@ -1,23 +0,0 @@
-# Customized settings for mysql
-
-# Define nice level for mysql
-SERVICE_RUN_NICE_LEVEL="+0"
-
-# Be compatible with RA layout (not supported)
-MYSQL_RA_COMPAT="no"
-
-# For clusters configuration look into /etc/mysql/clusters.conf
-# Don't use **obsolete** MYSQL_DB_CLUSTERS option
-
-# Seconds to wait for fully initialized mysqld to start. mysqld takes longer to
-# start when it has to replay innodb logs, or create innodb pools at startup
-#MYSQL_START_WAIT_TIME=15
-
-# Seconds to wait for mysqld to terminate on shutdown. If timeout is exceeded
-# shutdown is considered failed
-#MYSQL_STOP_WAIT_TIME=900
-
-# Skip automatic mysqld restarts invoked from rpm installs.
-#RPM_SKIP_AUTO_RESTART=yes
-#
-#MYSQL_OPTIONS=""
diff --git a/mysqld.conf b/mysqld.conf
deleted file mode 100644
index 3a9c4f9..0000000
--- a/mysqld.conf
+++ /dev/null
@@ -1,190 +0,0 @@
-; The MySQL server configuration file.
-; One can use all long options that the mysqld supports.
-; Run mysqld with --help to get a whole list of available options
-; $Id$
-
-; This section must be the first!
-[mysqld]
-datadir     = /var/lib/mysql/mysqldb/db
-pid-file    = /var/lib/mysql/mysqldb/mysql.pid
-port        = 3306
-socket      = /var/lib/mysql/mysql.sock
-user        = mysql
-
-;character-set-server=latin2
-;collation-server=latin2_general_ci
-;skip-character-set-client-handshake
-
-; set default charset
-;default-character-set = latin1
-
-; Use passwords compatible with old 4.0 mysqld
-;old-passwords
-
-; Don't use system locking
-;skip-locking
-
-; Don't allow connections over the network by default
-skip-networking
-
-; IP address to bind to
-;bind-address=127.0.0.1
-
-; no dns
-;skip-name-resolve
-
-; Emergency option. Use only if you really need this.
-;skip-grant-tables
-
-; replication options
-;server-id=2
-
-; skip startup of slave
-;skip-slave-start
-
-; slave setup
-;relay-log=slave-relay-bin
-;master-host=master
-;master-user=replica
-;master-port=3306
-;master-password=replica
-
-; master does not ignore them, but we do
-;replicate-ignore-db=mysql
-;replicate-ignore-db=test
-
-;replicate-rewrite-db=delfi->delfi_ro
-
-; master setup
-;log-bin=binlog
-
-; databases to be included in binlog
-;binlog-do-db=db1
-; or excluded
-;binlog-ignore-db=mysql
-;binlog-ignore-db=test
-
-; Don't flush key buffers between writes for any MyISAM
-; set this if you have dedicated slave server where writes aren't important
-;delay-key-write-for-all-tables
-
-; Log connections and queries. It slows down MySQL so it's disabled by default
-;log        = /var/log/mysql/log
-
-; Log all updates.
-;log-update = /var/log/mysql/update
-; Log some extra information to update log
-;log-long-format
-
-; Language
-;language   = polish
-
-;
-; Internal server variables
-;
-
-;set-variable = back_log=5
-;set-variable = connect_timeout=5
-;set-variable = delayed_insert_timeout=300
-;set-variable = delayed_insert_limit=100
-;set-variable = flush_time=0
-;set-variable = join_buffer_size=131072
-;set-variable = key_buffer_size=8M
-;set-variable = long_query_time=10
-;set-variable = max_allowed_packet=1M
-;set-variable = max_connections=100
-;set-variable = max_user_connections=0
-;set-variable = max_connect_errors=10
-;set-variable = max_delayed_insert_threads=20
-;set-variable = delayed_queue_size=1000
-;set-variable = max_join_size=4294967295
-;set-variable = max_sort_length=1024
-;set-variable = max_write_lock_count=4294967295
-;set-variable = net_buffer_length=16384
-;set-variable = record_buffer=131072
-;set-variable = sort_buffer_size=2M
-;set-variable = table_cache=64
-;set-variable = tmp_table_size=1M
-;set-variable = max_heap_table_size=32M
-;set-variable = thread_cache_size=16
-;set-variable = thread_stack=65536
-; Try number of CPU's*2
-;set-variable = thread_concurrency=8
-;set-variable = wait_timeout=28800
-;set-variable = query_cache_size=8M
-;set-variable = query_cache_limit=1M
-
-; replication local log
-;set-variable = max_relay_log_size=256M
-; max size of master binlog files
-;set-variable = max_binlog_size=256M
-
-
-;
-; MyISAM tables options
-;
-
-; Don't flush key buffers between writes for any MyISAM
-;delay-key-write-for-all-tables
-
-; Repair automatically on open if the table wasn't closed properly.
-myisam-recover
-;
-;set-variable = myisam_sort_buffer_size=4M
-
-
-
-;
-; InnoDB tables options (see MySQL manual)
-;
-;skip-innodb
-
-;innodb_data_home_dir = /var/lib/mysql/innodb/data
-;innodb_data_file_path = 00:10M;01:20M
-;set-variable = innodb_mirrored_log_groups=1
-;innodb_log_group_home_dir = /var/lib/mysql/innodb/log
-;set-variable = innodb_log_files_in_group=3
-;set-variable = innodb_log_file_size=30M
-;set-variable = innodb_log_buffer_size=8M
-
-;innodb_flush_log_at_trx_commit=1
-;innodb_log_arch_dir = /var/lib/mysql/innodb/log
-;innodb_log_archive=0
-;set-variable = innodb_buffer_pool_size=80M
-;set-variable = innodb_additional_mem_pool_size=10M
-;set-variable = innodb_file_io_threads=4
-;set-variable = innodb_lock_wait_timeout=50
-
-
-;
-; Berkeley DB tables options
-;
-; Don't use berkeley db (saves a lot of memory)
-;skip-bdb
-
-;bdb-home          =  /var/lib/mysql/db
-;bdb-log-dir       =  /var/lib/mysql/bdb/log
-;bdb-tmpdir        =  /var/lib/mysql/bdb/tmp
-
-
-;bdb-lock-detect   =  DEFAULT
-
-; Don't synchronously flush logs.
-;bdb-no-sync
-
-; Don't start Berkeley DB in recover mode.
-;bdb-no-recover
-
-; Start Berkeley DB in multi-process mode (Don't use `DB_PRIVATE'
-; when initializing Berkeley DB
-;bdb-shared-data
-
-;set-variable      = bdb_max_lock=1000
-
-
-; used for logs rotation
-[mysqladmin]
-user        = mysql_logrotate
-password    =
-
-; vim:syn=dosini
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/percona-server.git/commitdiff/431f68fe79a66d5dfdd53f2655709e6c925fbc22




More information about the pld-cvs-commit mailing list