occlum/demos/mysql
2022-12-11 19:28:38 +08:00
..
.gitignore [demos] Add MySQL demo 2022-12-11 19:28:38 +08:00
apply-mysql-to-occlum.patch [demos] Add MySQL demo 2022-12-11 19:28:38 +08:00
dl_and_build_mysql.sh [demos] Add MySQL demo 2022-12-11 19:28:38 +08:00
my.cnf [demos] Add MySQL demo 2022-12-11 19:28:38 +08:00
mysql.yaml [demos] Add MySQL demo 2022-12-11 19:28:38 +08:00
README.md [demos] Add MySQL demo 2022-12-11 19:28:38 +08:00
run_mysql_client.sh [demos] Add MySQL demo 2022-12-11 19:28:38 +08:00
run_mysql_server.sh [demos] Add MySQL demo 2022-12-11 19:28:38 +08:00

Run MySQL on Occlum

MySQL is a widely used open-source relational database management system (RDBMS).

Build and install

./dl_and_build_mysql.sh

This command downloads MySQL-8.0.31 source code and builds from it. When completed, all MySQL related binaries and tools are installed.

Run server and client

Initialize and start the MySQL server

./run_mysql_server.sh

This command initializes and runs the server (using mysqld) in Occlum. When completed, the server starts to wait connections.

Start the MySQL client and send simple queries

./run_mysql_client.sh

This command starts the client (using mysql) in Occlum and test basic query SQLs.

The network protocol between client and server uses uds(unix domain socket) by default. More configuration can be tuned and applied in my.cnf.