MySQL 9.1.0
Source Code Documentation
MySQL Router

MySQL Router

Building

MySQL Router is built in like the MySQL Server.

In case MySQL Router shall be built without building the whole server from the same source

  • run cmake as before
  • build the "mysqlrouter_all" target

like in:

$ cmake --build . --target mysqlrouter_all

It builds:

  • mysqlrouter
  • libraries
  • plugins
  • all tests

Testing

Testing MySQL Router is based on:

To run only the Router related tests without running all other tests contained in the source tree, tell ctest to only run the tests prefixed with "routertest_"

$ ctest -R routertest_

MySQL Server Mock