Update guide.html

This commit is contained in:
wibyweb 2022-09-07 00:05:35 -04:00 committed by GitHub
parent 57909c4a61
commit 50591ee23a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -508,13 +508,19 @@ UNLOCK TABLES;
</pre>
You can now close that window if you want.
<br>
On the replica server, import the database:
<br>
On the replica server, login to mysql and create the database:
<pre>
CREATE DATABASE wiby;
EXIT;
</pre>
Import the database:
<pre>
mysql -u root -p wiby < wiby.sql
</pre>
Login to MySQL and type the following but replace the IP, MASTER_LOG_FILE, and MASTER_LOG_POS with yours from the table:
Login to MySQL and type the following but replace the primary_server_ip, MASTER_LOG_FILE, and MASTER_LOG_POS with yours from the table:
<pre>
CHANGE MASTER TO MASTER_HOST='primary.server.ip',MASTER_USER='slave_user', MASTER_PASSWORD='d0gemuchw0w', MASTER_LOG_FILE='mysql-bin.000055', MASTER_LOG_POS=15871269;
CHANGE MASTER TO MASTER_HOST='primary_server_ip',MASTER_USER='slave_user', MASTER_PASSWORD='d0gemuchw0w', MASTER_LOG_FILE='mysql-bin.000055', MASTER_LOG_POS=15871269;
START SLAVE;
</pre>
To verify that the replica is syncronized, type the following on the replica in MySQL: