Switched primary and alias names of the name/db parameter. Fixes #8065.

In the documentation, the name of the mysql database to create is called "name," with an alias of "db." However, in the code, "db" is the primary name and "name" is the alias. This causes a confusing error message. This patch updates the code to match the documentation.