MySQL allows the creation of User Defined Functions, loadable into `mysqld` as shared libraries or dlls.
MySQL allows the creation and loading of User Defined Functions (UDFs) to extend the capabilities of MySQL servers.
If you own and operate your own MySQL server instance, you can consider using UDFs to extend its functionality. But, most hosting service providers offering shared MySQL servers do not allow customer-furnished UDFs.
You can find a repository of community-provided free UDFs (free as in kittens, free as in speech) at mysqludf.org. These include extensions for handling such things as regular expression replacement, cartographic projections, statistical analysis, JSON, and XML.
If you are capable of programming in C or C++ you can create your own UDF and load it into mysqld
. The online MySQL documentation explains the basics.
MariaDB also supports UDFs.