Step 4: Test MariaDB Enterprise Server

Overview

This page details step 4 of the 7-step procedure "Deploy Primary/Replica Topology".

This step tests MariaDB Enterprise Server

Several actions require connection to MariaDB Enterprise Server. A command-line client (mariadb) was included with your ES installation. These instructions describe connection via Unix domain socket. Alternatively, a different client and connection method could be used.

Interactive commands are detailed. Alternatively, the described operations can be performed using automation.

Test Enterprise Server Service

Use Systemd to test whether the MariaDB Enterprise Server service is running.

This action is performed on each Enterprise Server node.

Check if the MariaDB Enterprise Server service is running by executing the following:

$ systemctl status mariadb

If the service is not running on any node, start the service by executing the following on that node:

$ sudo systemctl start mariadb

Test Local Client Connections

Use mariadb Client to test the local connection to the Enterprise Server node.

This action is performed on each Enterprise Server node:

The sudo command is used here to connect to the Enterprise Server node using the root@localhost user account, which authenticates using the unix_socket authentication plugin. Other user accounts can be used by specifying the --user and --password command-line options.

Test Replica Status

Use SHOW REPLICA STATUS to check that replication is running properly on the replica servers.

This action is performed on each replica server.

Execute the following:

If Slave_IO_Running column is not Yes on any replica server, then check:

  • The network connectivity between the replica server and the primary server

  • The Last_IO_Error column for details on any errors

If Slave_SQL_Running column is not Yes on any replica server, then check:

  • The GTID position in gtid_slave_pos

  • The Last_SQL_Error column for details on any errors

If both columns are not Yes on any replica server, then check:

  • The replication configuration on the replica server.

If you need to make any corrections, the slave threads can be restarted with START REPLICA.

Test DDL

Use mariadb Client to test DDL.

  1. On the primary server, use the mariadb Client to connect to the node:

  1. Create a test database and table:

  1. On each replica server, use the mariadb Client to connect to the node:

  1. Confirm that the database and table exist:

If the database or table do not exist on any node, then check the replication status on the node.

Test DML

Use mariadb Client to test DML.

  1. On the primary server, use the MariaDB Client to connect to the node:

  1. Insert sample data into the table created in the DDL test:

  1. On each replica server, use the mariadb Client to connect to the node:

  1. Execute a SELECT query to retrieve the data:

If the data is not returned on any node, then check the replication status on the node.

Next Step

Navigation in the procedure "Deploy Primary/Replica Topology":

This page was step 4 of 7.

Next: Step 5: Install MariaDB MaxScale

This page is: Copyright © 2025 MariaDB. All rights reserved.

Last updated

Was this helpful?