Installing on MySQL
How to install the TDP UDF on a MySQL server. The installer compiles the library and registers 11 functions in MySQL for you.
Check the Prerequisites first if you haven't already.
1. Extract the Installer Package
Extract the installer file, then go into the folder it creates:
tar -xzf tdp-udf.tar.gz
2. Run the Installer
Give the installer permission to run, then start it:
chmod +x installer.sh
sudo ./installer.sh
Enter the server password when you're asked for it.
3. What the Installer Does
The installer runs through these steps on its own:
- Installs the dependencies it needs:
cmake,gcc,openssl-dev, andlibmysqlclient-dev. - Compiles the
tdp_udf.solibrary. - Copies
tdp_udf.sointo the MySQL plugin folder,/usr/lib/mysql/plugin/. - Registers 11 User Defined Functions (UDFs) in MySQL.
4. Expected Result
When the installation succeeds, you'll see output along these lines:
- The build succeeded:
tdp_udf.so. - The file was copied to
/usr/lib/mysql/plugin/tdp_udf.so. - Every
CREATE FUNCTIONcommand ran successfully. - A verification table lists 11 registered UDFs.
5. Verify the Installation
Log in to MySQL and run:
SELECT name FROM mysql.func WHERE name LIKE 'tdp_%' ORDER BY name;
You should see 11 TDP functions in the result.
Next, connect the database to TAKAKRYPT and try the functions: Connecting and Testing.