In this video, we'll guide you through the process of setting up replication with proper authorization in a database environment. Whether you're dealing with MySQL, MongoDB, or any other database system, we cover the fundamental steps to ensure your data replication is both secure and functional.
๐ What You'll Learn:
Understanding replication concepts and benefits
Configuring replication between primary and secondary databases
Setting up proper authentication and authorization for secure access
Troubleshooting common replication issues
Best practices for maintaining data integrity and security
Step 1 : Create a root user in each DB
db.createUser( {user:"dba",pwd:"oracle",roles:["root"]})
Step 2: Logout from DB and edit congf file
Enable Authorization
Enable Replication
Add KeyFIle using below commands
:
For reference : https://www.digitalocean.com/community/tutorials/how-to-configure-keyfile-authentication-for-mongodb-replica-sets-on-ubuntu-20-04