Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet447/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   443   444   445   446   447   448   449   450   ...   482
Bog'liq
Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)

[
 346 
]
Now, we can check the status of the secondary server to see whether or not it is 
running.
Within the secondary server's MariaDB shell, execute the following command:
SHOW SLAVE STATUS \G; 
Assuming all went well, we should see the following line in the output:
Slave_IO_State: Waiting for master to send event 
If the secondary server isn't running (
Slave_IO_State
 is blank), execute the following 
command:
START SLAVE; 
Next, check the status of the secondary server process again to verify:
SHOW SLAVE STATUS \G;
From this point forward, any data you add to your database on the primary server 
should be replicated to the secondary. To test, add a new record to the 
Employees
 
table on the 
mysampledb
 database on the primary server:
USE mysampledb; 
INSERT INTO Employees VALUES ('Optimus Prime', '100', 'Transformer'); 
On the secondary server, check the same database and table for the new value to 
appear. It may take a second or two:
USE mysampledb; 
SELECT * FROM Employees; 
If you see any errors in the 
Slave_IO_State
 line when you run 
SHOW SLAVE STATUS 
\G
, or your databases aren't synchronizing properly, here are a few things you can 
try. First, make sure that the primary database server is listening for connections on 
0.0.0.0
 port 
3306
. To test this, run this variation of the 
ss
 command to see which 
port the 
mariadb
 process is listening on (it's listed as 
mysqld
):
ss -tulpn | grep mysqld 
Here, we're adding 
\G
, which changes the output to be displayed 
vertically instead of horizontally. 


Chapter 13

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   443   444   445   446   447   448   449   450   ...   482




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish