The root password is left blank during the installation of the nodes in the database cluster to ensure that the nodes can successfully establish replication between all nodes. Once all nodes have been installed and are replicating, you must change the root password to secure the cluster.
- Log in to the console of any node in the database cluster.
- Open a shell inside the first Data Node using the following
command:
docker exec -it <node_name> /bin/bash
This opens a bash command line within the container.
- Log in to the Data Node using the following
command
mariadb -uroot
- Change the root password using the following
command:
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('<new_root_password>'); SET PASSWORD FOR 'root'@'%' = PASSWORD('<new_root_password>'); FLUSH PRIVILEGES
Once you have successfully configured the Distributed DDNS Data Nodes, you can proceed to install the Distributed DDNS Application Node and Distributed DDNS Service Nodes.