I'm trying to have my SlashDB REST API query a MySQL database, which it must connect to over SSH.
The connection string isn't successful and I can't say I'm surprised, because SlashDB has a place in its template for the DB username and password, but no options for the SSH / OS username and password.
How can I tweak this example string to include necessary and sufficient details?
8.8.8.8:3306/somename
This is associated with the following JSON (note that you can't directly edit the JSON):
{
"db_encoding": "utf-8",
"owners": [
"admin",
"user",
"root"
],
"execute": [
"admin",
"user",
"root"
],
"creator": "admin",
"read": [
"admin",
"user",
"root"
],
"db_type": "mysql",
"autoload": true,
"write": [
"admin",
"user",
"root"
],
"connect_status": "Disconnected",
"connection": "8.8.8.8:3306/somename",
"sysuser": {
"dbuser": "user",
"dbpass": "pw"
},
"db_schema": "somename",
"offline": true,
"alternate_key": {},
"desc": "blah blah blah"
}
Since you can directly edit the connection string, I tried prepending user@
but it didn't help.