An MySQL back-end module for RESTBase conforming to the RESTBase storage specification.
Firstly, install RESTBase. The MySQL back-end module should be pulled in
automatically as a dependency. If you cannot find restbase-mod-table-mysql in
RESTBase's node_modules/ directory, install it using:
npm install restbase-mod-table-mysql
Configuration of this module takes place from within an x-modules stanza in the YAML-formatted
RESTBase configuration file.
While complete configuration of RESTBase is beyond the scope of this document, (see the
RESTBase docs for that), this section covers the
restbase-mod-table-mysql specifics.
backend: mysql
host: localhost
database: restbase
username: mysql
password: mysql
show_sql: false
storage_groups:
- name: local
domains: /./Database host name or IP address.
host: localhostName of the database used by RESTBase
database: somedatabasePassword credentials to use in authenticating with MySQL.
username: someuser
password: somepassStorage groups are used to map tables to one or more hosts/domains.
storage_groups:
- name: default.group.local
domains: /./