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 e550ef0b6d Code refactor 2019-12-02 18:10:20 +01:00
debian MySQL compatibility, memory leaks fixed, moved to C++, docs 2019-12-02 17:58:23 +01:00
proxy-auth MySQL compatibility, memory leaks fixed, moved to C++, docs 2019-12-02 17:58:23 +01:00
udfs Code refactor 2019-12-02 18:10:20 +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 MySQL compatibility, memory leaks fixed, moved to C++, docs 2019-12-02 17:58:23 +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 MySQL compatibility, memory leaks fixed, moved to C++, docs 2019-12-02 17:58:23 +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 MySQL compatibility, memory leaks fixed, moved to C++, docs 2019-12-02 17:58:23 +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 and GLib development libraries.

$ apt-get install libmysqld-dev libglib2.0-dev

Compile and generate Debian package for MySQL 5.

$ debuild -uc -us -b

Compile and generate Debian package for MySQL 8.

$ debuild --set-envvar MYSQL8=TRUE -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;

Built with

Documentation