Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Step 2 Create an access account on the master machine for the slave machine and grant access to the bin log. 1.Create an account to

image text in transcribed

image text in transcribed

Step 2 Create an access account on the master machine for the slave machine and grant access to the bin log. 1.Create an account to copy data from the master mysql> CREATE USER 'copy'@'%' IDENTIFIED WITH mysql native password BY '123456'; mysql> GRANT REPLICATION SLAVE ON ** TO 'copy'@'%'; rename C:\ProgramData\MySQLWYSQL Server 8.0\Datalauto.cn then restart mysal 2.Log in to the connection account from the slave Change master to master host='10.7.45.93', master.user='repp, master password=-123456', master log file='mysql-bin.000029', master log pos=695; Step 3 Connect to the primary server from slave computer by the created account on the server. 1. show slave statusG; 2.start slave; Step 4: Verify replication between master and slave computers. 1. Create tables in the master, insert data, and query from the salve to see if replication has been synchronized 2. Delete data from master, and query from the salve to see if replication has been synchronized Step 2 Create an access account on the master machine for the slave machine and grant access to the bin log. 1.Create an account to copy data from the master mysql> CREATE USER 'copy'@'%' IDENTIFIED WITH mysql native password BY '123456'; mysql> GRANT REPLICATION SLAVE ON ** TO 'copy'@'%'; rename C:\ProgramData\MySQLWYSQL Server 8.0\Datalauto.cn then restart mysal 2.Log in to the connection account from the slave Change master to master host='10.7.45.93', master.user='repp, master password=-123456', master log file='mysql-bin.000029', master log pos=695; Step 3 Connect to the primary server from slave computer by the created account on the server. 1. show slave statusG; 2.start slave; Step 4: Verify replication between master and slave computers. 1. Create tables in the master, insert data, and query from the salve to see if replication has been synchronized 2. Delete data from master, and query from the salve to see if replication has been synchronized

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

Students also viewed these Databases questions

Question

Discuss the purpose of a cooperative, joint venture, and syndicate.

Answered: 1 week ago