MySQL is one of the most popular databases, so Rust naturally has crates to interact with it. There are two good crates that I recommend that you use: the mysql crate and its asynchronous version, the mysql_async crate.
In this section, we'll rewrite the previous example of managing users with support for a MySQL database. We'll also bootstrap a local instance of the database in a container, and create a command-line utility that connects to a database instance, sends queries to create table, and allows us to add and remove users. We will use the latest example for PostgreSQL, which uses the r2d2 pool.