Server-Distributed deployment

Operation instructions:

The default port used by the MySQL service is 3311.

Only when the MySQL service is running normally and port 3311 is mapped to the public network is it possible to access the database of the master server remotely from the public network.

Operation steps

The storage server is used as an example below.

Step 1: (operations on the master server)

  1. Allow remote access to the database of the master server.

Change bind-address = 127.0.0.1 to #bind-address=127.0.0.1

Change localhost to %

Change localhost to %

Step 1: operations on the master server

After the changes are done, restart the MySQL service on the master server.

Step 2: (operations on the slave server)

  1. Make the storage server of the slave server establish an association with the master server.

Make the storage server of the slave server find and connect to the login server of the master server.

Step 2: operations on the slave server

Make the storage server of the slave server find and connect to the database of the master server.

Enter the public IP of the master server and the database access port of the master server in the boxes.

Step 2: operations on the slave server

Step 3: (operations on the master server)

  1. Add the information of the slave server storage server in the server management interface of the master server.

Log in with the admin account of the master server, and add and configure the information of the corresponding slave server storage server on the storage server page of the server management in the server background.

Number 1 is the serial number, which must be consistent with the serial number in the storage server configuration of the slave server console.

Numbers 2 and 3 are the public IP of the slave server.

Step 3: operations on the master server

The ports of the slave server storage server added in the server background (client access port and device access port) must be consistent with the ports in the storage server configuration of the slave server software console (client access port and device access port).

If the slave server and the master server are not in the same LAN:

The access ports of the storage server of the slave server (client access port and device access port) are allowed to be the same as the access ports of the storage server of the master server (client access port and device access port).

If the slave server and the master server are in the same LAN:

The same access ports cannot be used.