MySQL plugins
This repository has been archived on 2024-01-15. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Juan Ferrer a0db4c6e7a multimax test fixes 2019-12-04 16:40:06 +01:00
debian Dependencies fixed 2019-12-04 16:32:04 +01:00
proxy-auth Proxy tests params changed 2019-12-04 15:21:16 +01:00
udfs multimax test fixes 2019-12-04 16:40:06 +01:00
.gitignore MySQL compatibility, memory leaks fixed, moved to C++, docs 2019-12-02 17:58:23 +01:00
AUTHORS Initial commit 2013-10-12 11:32:22 +02:00
COPYING Initial commit 2013-10-12 11:32:22 +02:00
ChangeLog Initial commit 2013-10-12 11:32:22 +02:00
INSTALL Compatibility with Debian stretch & MySQL 5.7 2018-07-02 17:20:11 +02:00
Makefile.am MySQL compatibility, memory leaks fixed, moved to C++, docs 2019-12-02 17:58:23 +01:00
Makefile.decl Compatibility between MySQL versions improved, ease compilation 2019-12-04 14:43:02 +01:00
NEWS Initial commit 2013-10-12 11:32:22 +02:00
README MySQL compatibility, memory leaks fixed, moved to C++, docs 2019-12-02 17:58:23 +01:00
README.md Compatibility between MySQL versions improved, ease compilation 2019-12-04 14:43:02 +01:00
autogen.sh Initial commit 2013-10-12 11:32:22 +02:00
clean.sh MySQL compatibility, memory leaks fixed, moved to C++, docs 2019-12-02 17:58:23 +01:00
configure.ac Compatibility between MySQL versions improved, ease compilation 2019-12-04 14:43:02 +01:00

README.md

MySQL extensions

This project contains an authentication plugin and functions to extend MySQL functionality.

Compiling

Install basic tools for compiling.

$ apt-get install build-essential devscripts dh-autoreconf

Install MySQL development libraries.

$ apt-get install libmysqld-dev

If MySQL development libraries are not available for your distribution or MySQL version you can obtain MySQL server source code from apt sources repository or from MySQL page.

$ apt-get source mysql-community

Install GLib development libraries.

$ apt-get install libglib2.0-dev

Run autogen.

$ ./autogen.sh

Compile and generate Debian package.

$ debuild -uc -us -b

If development libraries are not available and you have downloaded the server source code, you can tell the build command it's location.

$ debuild --set-envvar MYSQLD_SOURCE=[mysqld_source_dir] -uc -us -b

Installing

Install Debian package.

$ dpkg -i vn-mysql_[version]_[arch].deb

Register plugin and functions into MySQL.

INSTALL PLUGIN proxy_auth SONAME 'proxy_auth.so';
CREATE AGGREGATE FUNCTION minacum RETURNS INT SONAME 'minacum.so';
CREATE AGGREGATE FUNCTION multimax RETURNS INT SONAME 'multimax.so';
CREATE FUNCTION sql_printf RETURNS STRING SONAME 'sql_printf.so';

Uninstalling

Deregister plugin and functions from MySQL.

UNINSTALL PLUGIN proxy_auth;
DROP FUNCTION IF EXISTS minacum;
DROP FUNCTION IF EXISTS multimax;
DROP FUNCTION IF EXISTS sql_printf;

Commands

Obtain MySQL version from commandline.

$ mysql_config --version | cut -d "." -f 1

Built with

Documentation