Skip to main content
Markdown

Deploy MySQL Applications and Functions

Deploy MySQL client applications and server functions as separate artifact types. Clients need their executable and native dependencies; server libraries also need installation in MySQL's plugin directory and SQL registration. Begin with a built client or server library and confirm the destination's compatibility.

Server Functions​

Native functions run with the server process's privileges. Library installation permissions are therefore part of the server's security boundary. Long-running calls also occupy server resources; durable state belongs in MySQL tables rather than process-local module globals.

The server must load the Codon runtime matching the SDK used to build its function libraries. Updating the SDK on a development machine does not update the runtime installed on the server.

A function update uses a new library filename and updated registration, or a server restart. Overwriting a loaded library can corrupt the running process.

Client Applications​

For a configured native target, run exaloop --target app package --bundle-runtime. Deployment includes libcodon_mysql_client, MySQL's libmysqlclient, and their dependencies. The runtime packaging guide describes how to collect native application dependencies.

Next Steps​