MariaDB MaxScale MaxGUI Guide

MariaDB MaxScale MaxGUI Guide


MaxGUI is the new browser based tool for configuring and managing MaxScale. It is a more user friendly and intuitive to use companion to the command line tool maxctrl.

Enabling MaxGUI

To enable MaxGUI in a testing mode, add admin_host= and admin_secure_gui=false under the [maxscale] section of the MaxScale configuration file. Once enabled, MaxGUI will be available on port 8989:

Securing the GUI

To make MaxGUI secure, set admin_secure_gui=true and configure both the admin_ssl_key and admin_ssl_cert parameters.

Check the Configuration Guide for the parameter documentation and read the Configuration and Hardening section of the REST API tutorial for instructions on how to harden your MaxScale installation for production use.


MaxGUI cannot be used without providing credentials. MaxGUI uses the same credentials as maxctrl, so by default, the username is admin and the password is mariadb.

MaxGUI uses JSON Web Tokens as the authentication method for persisting the user's session. If the Remember me checkbox is ticked, the session will persist for 8 hours, otherwise, as soon as MaxGUI is closed, the session will expire.

To log out, simply click the username section in the top right corner of the page header to access the logout menu.


Dashboard page

The dashboard shows three graphs:

  • Sessions graph illustrates the total number of current sessions updating every 10 seconds.

  • Connections graph shows servers current connections updating every 10 seconds.

  • Load graph shows the last second load of thread, which is updated every second.

Under the graphs section, there is a tab navigation allowing to switch table view which contains overview information of the following resources: all servers grouped by monitor, current sessions and all services. The information of these resources are updated every 10 seconds.

Detail page

The monitor, server and services resources have their own details page. It can be accessed by clicking the resource name on the dashboard page.

In the details page, resource parameters as well as relationships can be modified in the resource's parameters section.

Deletion of a resource or other actions can be done by clicking the setting icon located next to the resource name. For instance, clicking the setting icon in Monitor detail page will popup three icons allowing a monitor to be started, stopped, and deleted.

For Servers, the monitor relationship can be modified by hovering over the rectangular Monitor block section at the top of the page.

SQL editor page

The query editor page can be accessed via the sidebar navigation menu. If no active connection exists, a dialog to setup one is displayed. A connection can target a server, service or listener.

The query layout editor interface comprises the following sections:

The taskbar

Located at the top of the page, the taskbar contains resource quick action buttons, query action buttons to run and manipulate the result. Resource quick action buttons are used to configure current active connection and active database. Query action buttons are used to run SQL statements, visualize query result in graphs and configure query settings. * In addition, on the right corner of the taskbar, there is a maximize/minimize button to set the page to full screen mode.

The schema sidebar

List databases, tables and columns of the server. The list is fetched when needed and provided with dedicated options which can be accessed by clicking the more options (...) icon. For example, for table, it has options to Preview Data and View Details which internally executes SELECT * FROM database.table_name and DESCRIBE database.table_name, respectively.

The sql editor

  • Writing SQL statements and executing all statements or selected statements by using shortcut keys. In general, the editor provides some of the most famous editor features of Visual Studio Code
  • All the command palette can be shown by pressing F1 or right click on the editor section to open context menu and choose Command Palette

The query result

Located at the bottom of the page, the result section is comprised of two tabs which are Results and Data Preview. The Results tab shows the query results of the SQL statements from the sql editor. The Data Preview contains two sub-tabs DATA and DETAILS showing the results of Preview Data and View Details, respectively.

Result tables can be filtered, sorted (only when total rows <= 10000) and exported. The result can be exported as json, csv with custom delimiter.

The table result can be converted to vertical mode by clicking the transform icon on the right corner above the table. In addition, table columns visibility can be toggled and resized.

Query result visualization

The query result can be visualized into line, scatter, vertical bar and horizontal bar graphs. In order to see the graph, simply clicking the graph icon next to the gear icon in the task bar, then fill in the inputs.

The graph can be resized by clicking the border of the pane and exported as jpeg format with same ratio.

Current limitations

Only one connection can be created at a time and there is no option to save the connection. Once user leaves the page, the connection will be disconnected. The hard limit rows of each result is set to 10000 rows. Though it can be increased, it can cause MaxScale to run out of memory. In addition, pagination of query result set is not supported. To workaround this, use LIMIT offset, row_count to navigate through the result set.

Logs Viewer

To access logs viewer, clicking the gear icon in the sidebar navigation and choose MaxScale Logs tab.

Resource creation

A resource can be created by clicking the + Create New button at the top right corner of the dashboard or the detail page.

Note: Resources that depend on a module can be created only if that module has been loaded by MaxScale.

Viewing and modifying Maxscale parameters

MaxScale parameters can be viewed and modified at runtime on the Settings page, which can be accessed by clicking the gear icon in the sidebar navigation.

The global search input located next to the + Create New button can be used for searching for keywords in tables.


Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.