Since MySQL 8.0.16, the Router as the possibility to launch an internal webserver (see Jan’s blog post).
Even if this webserver could serve static files, it was the first piece of a much more interesting solution that is now available since 8.0.17.
It’s possible now to query the MySQL Router via its REST API and get a lot of useful information.
Setup
Let’s first configure our MySQL Router to take advantages of this
new feature. In this example, I will add the following lines to
/etc/mysqlrouter/mysqlrouter.conf
that I created
using the --bootsrap
command line argument:
[http_server] port=8080 [rest_api] [rest_router] require_realm=somerealm [rest_routing] require_realm=somerealm …[Read more]