Documentation Home
MySQL 5.7 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 37.5Mb
PDF (A4) - 37.5Mb
PDF (RPM) - 36.9Mb
HTML Download (TGZ) - 10.2Mb
HTML Download (Zip) - 10.2Mb
HTML Download (RPM) - 8.9Mb
Man Pages (TGZ) - 211.3Kb
Man Pages (Zip) - 321.0Kb
Info (Gzip) - 3.4Mb
Info (Zip) - 3.4Mb
Excerpts from this Manual

18.5.2.1 Adding a Connection

To add a new connection use:

shell.storedSessions.add(name, connectionData[, override])
  • name : Mandatory parameter, it is the session name that identifies the connection data. This must be a valid identifier.

  • connectionData : Mandatory parameter, it contains the connection information and can be either a string in URI format or a connection data map containing any of the following values:

    • host

    • port

    • dbUser

    • dbPassword

    • schema

    • ssl_ca

    • ssl_cert

    • ssl_key

      To store the connection data at least the host and dbUser parameter should be specified, the rest are optional.

  • override : Optional boolean parameter, used to indicate the desired behavior in case there is a stored connection data associated to the same name. Default value is false.

    • If override is false and connection data with the same name already exists, an error is generated.

    • In the same scenario, if the new connection data overrides the previous data and an error is not generated.


User Comments
Sign Up Login You must be logged in to post a comment.