MySQL Router with InnoDB Cluster allows transparent routing access for application to backend MySQL Servers.
Restful API (Http access) feature was added to MySQL Router since 8.0.17.
This article is written to provide a tutorial with Router Restful API. It is tested with MySQL 8.0.29 release.
Setup& Assumptions
1. MySQL InnoDB Cluster 8.0.29 - Cluster Name as 'mycluster'
2. Linux OS with MySQL Shell 8.0.29 installed
3. Restful API User : 'myapiuser'
Router Configuration
Bootstrap is the process to create the Router configuration setup.
e.g.
$> mysqlrouter --bootstrap admin:adminPassword@node1:node1Port --directory /tmp/myrouter --account routerfriend …
[Read more]