Skip to content

configs API

phoenixide edited this page Sep 2, 2022 · 2 revisions

MySqlConfigs

Type: Object

Properties

  • host string hostname or ip address
  • port string port on which MySql server is listening
  • database string name of database to do operations
  • user string name of user who has permissions to do operation
  • password string password of the user for authentication

getMySqlConfigs

It returns a JavaScript object with the host, port, database, user, and password for a MySQL database

Returns MySqlConfigs An object with the following properties: host: The value of the environment variable MY_SQL_SERVER or 'localhost'

port: The value of the environment variable MY_SQL_SERVER_PORT or '3306'

database: The value of the environment variable MY_SQL_SERVER_DB or a random hex string

user: The value of the environment variable MY_SQL_USER or a random hex string

password :  The value of the environment variable MY_SQL_PASSWORD or a random hex string

Clone this wiki locally