MySQL
Advanced configuration of MySQL connection type
![](https://docs.keeper.io/~gitbook/image?url=https%3A%2F%2F3357255970-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fb7weUpu7VBcMnESSH8vG%252Fuploads%252F8SjuaWw9egx7SsQ52wm5%252FMySQL.jpg%3Falt%3Dmedia%26token%3Dcda9414e-3444-4214-95f3-4a8f708bea48&width=768&dpr=4&quality=100&sign=6a8f521&sv=1)
Overview
The MySQL implementation in Keeper Connection Manager utilizes the MySQL client library as well as an internal terminal library which renders the user interface. Guacamole's MySQL support emulates a terminal on the server side, and draws the screen of this terminal remotely on the client.
This document is intended to cover all supported parameters, grouped in the same way they are grouped within the web interface. The field headings which would appear in the web interface are provided for each parameter, along with each parameter's internal name and a thorough description of the behavior and legal values for that parameter.
Keeper Secrets Manager parameters
![](https://docs.keeper.io/~gitbook/image?url=https%3A%2F%2F3357255970-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fb7weUpu7VBcMnESSH8vG%252Fuploads%252FMWReXK9V2xRFdIkbbwSz%252FScreenshot%25202023-04-14%2520at%25202.53.36%2520PM.png%3Falt%3Dmedia%26token%3D992b734d-5a18-48e6-9fe7-bc27c154b966&width=768&dpr=4&quality=100&sign=13fa32a8&sv=1)
Field header | Parameter name | Description |
---|---|---|
Allow user-provided KSM configuration: |
| If set to "true", each Keeper Connection Manager user profile can be assigned to a Keeper Secrets Manager configuration for any connection. See the Multiple Vaults Integration screen for more information. |
Network parameters
MySQL connections are established over TCP to a specific port and a specific hostname or IP address. The hostname/address must be specified for all MySQL connections, but you only need to specify a port if you are not using the standard MySQL port (3306).
![](https://docs.keeper.io/~gitbook/image?url=https%3A%2F%2F3357255970-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fb7weUpu7VBcMnESSH8vG%252Fuploads%252FzyVDmrV01mgtBkTTZGbW%252FScreen%2520Shot%25202022-04-26%2520at%252010.28.40%2520AM.png%3Falt%3Dmedia%26token%3D6aa86958-0e46-463c-a04c-6ea8122a8759&width=768&dpr=4&quality=100&sign=86e88d78&sv=1)
Field header (web interface) | Parameter name | Description |
---|---|---|
Hostname |
| REQUIRED: The hostname or IP address of the MySQL server Guacamole should connect to. |
Port |
| The port the MySQL server is listening on. By default, the standard MySQL port of 3306 will be used. |
Unix Socket |
| The socket name used for MySQL connections when running using the unix socket method. This is used if the host field is empty. |
Authentication parameters
Keeper Connection manager supports MySQL authentication through username and password parameters. Both fields are required to establish a connection.
![](https://docs.keeper.io/~gitbook/image?url=https%3A%2F%2F3357255970-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fb7weUpu7VBcMnESSH8vG%252Fuploads%252FBClJv07zKBrCrIpQxQk0%252FScreen%2520Shot%25202022-04-26%2520at%252010.31.25%2520AM.png%3Falt%3Dmedia%26token%3D6e7b087f-989b-43c0-9ed4-896b18b286ea&width=768&dpr=4&quality=100&sign=49e607d2&sv=1)
Field header (web interface) | Parameter name | Description |
---|---|---|
Username |
| REQUIRED: The username to authenticate as when connecting to the specified MySQL server. |
Password |
| REQUIRED: The password to use when authenticating with the specified MySQL server. |
Database parameters
The default database can be specified when establishing the connection. You can also disable the ability to perform CSV import and export of data.
![](https://docs.keeper.io/~gitbook/image?url=https%3A%2F%2F3357255970-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fb7weUpu7VBcMnESSH8vG%252Fuploads%252Fkr4KTrz4lleQlDPDTsC3%252FScreen%2520Shot%25202022-04-26%2520at%252010.46.29%2520AM.png%3Falt%3Dmedia%26token%3D2da3b83b-8888-46d9-acc7-06ba283ee187&width=768&dpr=4&quality=100&sign=54128d5c&sv=1)
Field header (web interface) | Parameter name | Description |
---|---|---|
Default Database |
| The database schema selected when connecting to the specified MySQL server. |
Disable CSV Export |
| Set this value to "true" to disable CSV export of data when using the SQL statement "select ... into local outfile" |
Disable CSV Import |
| Set this value to "true" to disable CSV import of data when using the SQL statement "load data local infile ... into table" |
Display settings
Guacamole's MySQL support provides a display, but not in the same sense as a remote desktop protocol like VNC or RDP. The display is a terminal emulator, and thus provides options for configuring the font used and its size.
If selecting a different font for a MySQL connection, the chosen font must be installed on the server running guacd. It is the server that will handle rendering of characters to the terminal display, not the client.
![](https://docs.keeper.io/~gitbook/image?url=https%3A%2F%2F3357255970-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fb7weUpu7VBcMnESSH8vG%252Fuploads%252F08HSQHWQaf8KqQbYjsNZ%252FScreen%2520Shot%25202022-04-26%2520at%252010.32.34%2520AM.png%3Falt%3Dmedia%26token%3Dfaba2431-2a97-4805-9ac6-e8ac485c6b53&width=768&dpr=4&quality=100&sign=75d8de04&sv=1)
Field header (web interface) | Parameter name | Description |
---|---|---|
Theme |
| The color scheme to use for the terminal emulator used by SSH connections. Each color scheme dictates the default foreground and background color for the terminal. Programs which specify colors when printing text will override these defaults. Legal values are:
By default, Guacamole will render text as gray over a black background. |
Font name |
| The name of the font to use. If not specified, the default of "monospace" will be used instead. This must be the name of a font installed on the server running guacd, and should be a monospaced font. If a non-monospaced font is used, individual glyphs may render incorrectly. |
Font size |
| The size of the font to use, in points. By default, the size of rendered text will be 12 point. |
Maximum scrollback size: |
| The maximum number of rows to allow within the terminal scrollback buffer. By default, the scrollback buffer will be limited to a maximum of 1000 rows. |
Read-only: |
| Whether this connection should be read-only. If set to "true", no input will be accepted on the connection at all. Users will be able to see the terminal (or the application running within the terminal) but will be unable to interact. |
Custom color schemes
Custom color schemes may be provided for the terminal emulator used by MySQL connections. Custom schemes mimic the format used by Xterm and consist of a semicolon-separated series of name-value pairs. Each name-value pair is separated by a colon and assigns a value to a color in the terminal emulator palette.
For example, to use blue text on white background by default, and change the red color to a purple shade, you would specify:
Legal color names are:
"
foreground
" - the default foreground color."
background
" - the default background color."
colorN
" - the color at index N within the Xterm 256-color palette. For example, "color9" refers to the color at palette index 9, normally red.
Legal color values are:
"rgb:RR/GG/BB" - a color in RGB format, with each component in hexadecimal. For example, "
rgb:ff/00/00
" specifies the color red. Each hexadecimal component may be one to four digits, but the effective values are always zero-extended or truncated to two digits; for example, "rgb:f/8/0
", "rgb:f0/80/00
", and "rgb:f0f/808/00f
" all refer to the same effective color."
colorN
" - the color currently assigned to index N within the Xterm 256-color palette. For example, "color9
" specifies the color currently assigned to palette index 9. Note that the current color value is used rather than a reference to that color. If the referenced color is changed later in the color scheme configuration, that new color value will not be reflected in this assignment."
NAME
" - the color with human-readable name "NAME
", where "NAME
" is one of the standard color names supported by X11. These names generally correspond to the names standardized by the W3C for CSS.
Clipboard parameters
Guacamole provides bidirectional access to the clipboard by default for MySQL connections. This behavior can be overridden on a per-connection basis, restricting access to the clipboard.
![](https://docs.keeper.io/~gitbook/image?url=https%3A%2F%2F3357255970-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fb7weUpu7VBcMnESSH8vG%252Fuploads%252FupFyRK5KoywnapP8uRzO%252FScreen%2520Shot%25202022-04-26%2520at%252010.34.30%2520AM.png%3Falt%3Dmedia%26token%3Db1210685-25ff-408a-8110-4ae87392113e&width=768&dpr=4&quality=100&sign=1141ec33&sv=1)
Field header (web interface) | Parameter name | Description |
---|---|---|
Disable copying from terminal: |
| If set to "true", text copied within the MySQL session will not be accessible by the user at the browser side of the Guacamole session, and will be usable only within the remote desktop. By default, the user will be given access to the copied text. |
Disable pasting from client: |
| If set to "true", text copied at the browser side of the Guacamole session will not be accessible within the MySQL session. By default, the user will be able to paste data from outside the browser within the MySQL session. |
Text session recording (typescripts)
The full, raw text content of MySQL sessions, including timing information, can be recorded automatically to a specified directory. This recording, also known as a "typescript", will be written to two files within the directory specified: one file contains the raw text data, and the other contains timing information. Where "NAME
" is the value provided for the typescript name, these files will be named "NAME
" and "NAME.timing
" respectively.
This format is compatible with the format used by the standard UNIX script
command, and can be replayed using scriptreplay
(if installed). For example, to replay a typescript called "NAME
", you would run:
![](https://docs.keeper.io/~gitbook/image?url=https%3A%2F%2F3357255970-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fb7weUpu7VBcMnESSH8vG%252Fuploads%252FWHz5zpaxb2Mpzco7FM48%252FScreen%2520Shot%25202022-04-26%2520at%252010.38.21%2520AM.png%3Falt%3Dmedia%26token%3D6c3c6cba-a7ab-41df-93cc-4d999a0a31b7&width=768&dpr=4&quality=100&sign=4170e827&sv=1)
Field header (web interface) | Parameter name | Description |
---|---|---|
Typescript path |
| The directory in which typescript files should be created. If a typescript needs to be recorded, then this parameter is required. Specifying this parameter enables typescript recording. If this parameter is omitted, no typescript will be recorded. |
Typescript name |
| The base filename to use for any created recordings. If omitted, the base filename "typescript" will be used. Guacamole will never overwrite an existing typescript. If necessary, a numeric suffix like ".1", ".2", ".3", etc. will be appended to the base filename to avoid overwriting an existing recording. If even appending a numeric suffix does not help, the typescript will not be recorded, and an error will be logged. This parameter only has an effect if typescript recording is enabled, which is controlled by specifying a typescript path. If the typescript path is not specified, recording of typescripts will not be enabled, and this parameter will be ignored. |
Automatically create typescript path |
| If set to "true", the final directory within the specified typescript path will automatically be created if it does not yet exist. By default, no part of the typescript path will be automatically created, and any attempt to use a non-existent directory will result in the typescript not being recorded and an error being logged. Only the final directory in the path will be automatically created. If other directories earlier in the path do not exist, the typescript will not be recorded, and an error will be logged. This parameter only has an effect if typescript recording is enabled, which is controlled by specifying a typescript path. If the typescript path is not specified, recording of typescripts will not be enabled, and this parameter will be ignored. |
Screen recording parameters
MySQL sessions can be recorded graphically. These recordings take the form of Guacamole protocol dumps and are recorded automatically to a specified directory. Recordings can be subsequently played back using the Glyptodon Enterprise Session Recording Player application hosted at player.glyptodon.com (or using a local deployment of this application).
The player is a static web application, using only JavaScript to play back provided recordings. This functionality is implemented strictly locally; the recordings are not uploaded to a remote service for processing. If you would prefer to use your own deployment of this application, or would like to investigate the source, the full source of the Glyptodon Enterprise Session Recording Player can be found on GitHub, along with instructions for local deployment: https://github.com/glyptodon/glyptodon-enterprise-player
The latest version of Keeper Connection Manager supports on-screen playback of recorded sessions. See the Session Recording documentation page.
![](https://docs.keeper.io/~gitbook/image?url=https%3A%2F%2F3357255970-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fb7weUpu7VBcMnESSH8vG%252Fuploads%252FA2EmUquW59zrFuskgncG%252FScreen%2520Shot%25202022-04-26%2520at%252010.39.39%2520AM.png%3Falt%3Dmedia%26token%3Db120b118-599b-44f8-adee-fea55fb9b7f3&width=768&dpr=4&quality=100&sign=a817e423&sv=1)
Field header (web interface) | Parameter name | Description |
---|---|---|
Recording path |
| The directory in which screen recording files should be created. If a graphical recording needs to be created, then this parameter is required. Specifying this parameter enables graphical screen recording. If this parameter is omitted, no graphical recording will be created. |
Recording name |
| The filename to use for any created recordings. If omitted, the filename of each recording will simply be "recording". Guacamole will never overwrite an existing recording. If necessary, a numeric suffix like ".1", ".2", ".3", etc. will be appended to the filename to avoid overwriting an existing recording. If even appending a numeric suffix does not help, the session will not be recorded, and an error will be logged. This parameter only has an effect if graphical recording is enabled, which is controlled by specifying a recording path. If the recording path is not specified, graphical session recording will not be enabled, and this parameter will be ignored. |
Exclude graphics/streams |
| If set to "true", graphical output and other data normally streamed from server to client will be excluded from the recording, producing a recording which contains only user input events. By default, graphical output will be included in the recording. This parameter only has an effect if graphical recording is enabled, which is controlled by specifying a recording path. If the recording path is not specified, graphical session recording will not be enabled, and this parameter will be ignored. |
Exclude mouse |
| If set to "true", user mouse events will be excluded from the recording, producing a recording which lacks a visible mouse cursor. By default, mouse events will be included in the recording. This parameter only has an effect if graphical recording is enabled, which is controlled by specifying a recording path. If the recording path is not specified, graphical session recording will not be enabled, and this parameter will be ignored. |
Include key events |
| If set to "true", user key events will be included in the recording. The recording can subsequently be passed through the This parameter only has an effect if graphical recording is enabled, which is controlled by specifying a recording path. If the recording path is not specified, graphical session recording will not be enabled, and this parameter will be ignored. |
Automatically create recording path |
| If set to "true", the final directory within the specified recording path will automatically be created if it does not yet exist. By default, no part of the recording path will be automatically created, and any attempt to use a non-existent directory will result in the session not being recorded and an error being logged. Only the final directory in the path will be automatically created. If other directories earlier in the path do not exist, the session will not be recorded, and an error will be logged. This parameter only has an effect if graphical recording is enabled, which is controlled by specifying a recording path. If the recording path is not specified, graphical session recording will not be enabled, and this parameter will be ignored. |
Last updated