Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  master_retry_count_basic.result   Sprache: Lisp

 

# Replace `--master-retry-count` when specified
CHANGE MASTER 'named' TO master_retry_count=11, master_host='example.com';
CHANGE MASTER TO master_retry_count=10,
master_host='127.0.0.1', master_ssl_verify_server_cert=0;
SELECT Connection_name, Master_Retry_Count
FROM information_schema.SLAVE_STATUS;
Connection_name Master_Retry_Count
 10
named 11
# Conventional views also show the configurations
Connection_name = ''
Connection_name = 'named'
Master_Retry_Count = '10'
Master_Retry_Count = '11'
Master_Retry_Count = '10'
Master_Retry_Count = '11'
SELECT CHANNEL_NAME, CONNECTION_RETRY_COUNT
FROM performance_schema.replication_connection_configuration;
CHANNEL_NAME CONNECTION_RETRY_COUNT
named 11
 10
# Restore specified config on restart
# restart: --skip-slave-start
SELECT Connection_name, Master_Retry_Count
FROM information_schema.SLAVE_STATUS;
Connection_name Master_Retry_Count
 10
named 11
# Keep specified config on RESET SLAVE
RESET SLAVE 'named';
RESET SLAVE;
SELECT Connection_name, Master_Retry_Count
FROM information_schema.SLAVE_STATUS;
Connection_name Master_Retry_Count
 10
named 11
# Don't replace when not specified
CHANGE MASTER TO master_user='
root';
CHANGE MASTER '
named' TO master_user='root';
SELECT Connection_name, Master_Retry_Count
FROM information_schema.SLAVE_STATUS;
Connection_name Master_Retry_Count
 10
named 11
# 0 does not mean "not specified"
CHANGE MASTER TO master_retry_count=0;
CHANGE MASTER '
named' TO master_retry_count=0;
SELECT Connection_name, Master_Retry_Count
FROM information_schema.SLAVE_STATUS;
Connection_name Master_Retry_Count
 0
named 0
# Truncates decimals
CHANGE MASTER TO master_retry_count=10.75;
CHANGE MASTER '
named' TO master_retry_count=11.25;
SELECT Connection_name, Master_Retry_Count
FROM information_schema.SLAVE_STATUS;
Connection_name Master_Retry_Count
 10
named 11
# Caps values (such as UINT64_MAX + 1) to `--master-retry-count`'
s max
CHANGE MASTER TO master_retry_count=18446744073709551616;
CHANGE MASTER 'named' TO master_retry_count=18446744073709551616;
SELECT Connection_name, Master_Retry_Count
FROM information_schema.SLAVE_STATUS;
Connection_name Master_Retry_Count
 18446744073709551615
named 18446744073709551615
# Negative
CHANGE MASTER TO master_retry_count=-1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-1' at line 1
CHANGE MASTER 'named' TO master_retry_count=-1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-1' at line 1
# NaN
CHANGE MASTER TO master_retry_count='5';
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''5'' at line 1
CHANGE MASTER 'named' TO master_retry_count='5';
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''5'' at line 1
# Cleanup
RESET SLAVE 'named' ALL;

Messung
CHZG
949810097

¤ Dauer der Verarbeitung: 0.4 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,187,974
#Domains=976,209