使用提供的两台虚拟机,在虚拟机上安装mariadb数据库,并配置为主从数据库,实现两个数据库的主从同步。配置完 毕后,请在从节点上的数据库中执行“show slave status \G”命令查询从节点复制状态,将查询到的结果以文本形式提交 到答题框。
答: MariaDB [(none)]> start slave;MariaDB [(none)]> show slave status\G
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: mysql1
Master_User: user
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.000003
Read_Master_Log_Pos: 245
Relay_Log_File: mariadb-relay-bin.000005
Relay_Log_Pos: 529
Relay_Master_Log_File: mysql-bin.000003
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 245
Relay_Log_Space: 1256
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: 0
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0
Last_IO_Error:
Last_SQL_Errno: 0
Last_SQL_Error:
Replicate_Ignore_Server_Ids:
Master_Server_Id: 30
1 row in set (0.00 sec)
更多试题》》》
- 1某厂家别核准注册使用"兰花"牌商标,后其自行改变为"兰草",结果别商标局将"兰花"商标撤销,自撤销之日起()日,商标局不予核准"兰草"商标的注册申请。
- 2习近平总书记在2020年8月召开的全国抗击新冠肺炎疫情表彰大会上用20个字总结了抗疫精神,分别是:生命至上、举国同心、舍生忘死、尊重科学、命运与共。
- 3法治政府建设是重点任务和主体工程,要率先突破,用法治给行政权力定规矩、划界限,规范行政决策程序,加快转变政府职能。
- 4教师教育科研方法包括()。
- 5要建立生态环境协同共治的机制,要加快生态环境监测网络的一体化建设,协商建立都市圈的大气污染、流域的水污染、土壤的污染、噪声污染、综合防治和利益协调机制。
- 6根据"邓小平理论",四项基本原则是社会主义发展的( )。