MySQL 8.0 OCP 1Z0-908 131-140題

Q131.You have upgraded the MySQL binaries from 5.7.28 to 8.0.18 by using an in-place upgrade.
Examine the message sequence generated during the first start of MySQL 8.0.18:
。。。[System]。。。/usx/sbin/mysqld (mysqld 8.0.18-commercial) starting as process 2754
。。。[System]。。。Starting upgrade of data directory. .
。。。[ERROR]。。。。Table upgrade required. Please do ‘’REPAIR TABLE ‘columns_ priv’" or dump/reload to
fix it!
。。。[ERROR]。。。Table upgrade required. Please do “REPAIR TABLE ‘event’” or dump/reload to fix it!
。。。[ERROR]。。。Table upgrade required. Please do “REPAIR TABLE ’proc’” or dump/reload to fix it!
。。。[ERROR]。。。Table upgrade required. Please do “REPAIR TABLE ’proxies_ priv’” or dump/reload to fix
it!
。。。[ERROR]。。。Table upgrade required. Please do “REPAIR TABLE ‘tables_ priv’” or dump/reload to fix it!
。。。[ERROR]。。。Failed to open mysql.event Table.
。。。[ERROR]。。。Failed to open mysql.proc Table.
。。。(ERROR]。。。Failed to Populate DD tables.
。。。[ERROR]。。。Aborting
。。。[System] 。。。 /usr/sbin/mysqld: shutdown complete (mysqld 8.0.18-commercial) MySQL Enterprise
Server - Commercial.
Which step or set of steps will resolve the errors?
A)Start mysqld again using the --upgrade=FORCE option.
B)Go to the /mysql directory and execute: myisamchk --update-state columns_ priv event proc
proxies_ priv tables_ priv.
C)Execute: mysqlcheck --repair mysql columns_ priv event proc proxies_ priv tables_ priv.
D)Remove the redo logs. Replace the MySQL binaries with the 5.7.28 binaries. Prepare the tables for upgrade.
Upgrade to 8.0.18 again.
E)Execute: mysqlcheck --check-upgrade mysql columns_priv event proc proxies_priv tables_ priv.
Answer:A
dd table是data dictionary

選項A:使mysql_upgrade已經在當前mysql版本上執行過,也忽略mysql_upgrade_info文件并強制執行mysql_upgrade
mysqlcheck只能檢查和修復表中的是否違反唯一約束等這類問題,然后進行修復,故BCD都似乎錯誤的,E選項--check-upgrade只是檢查一些權限,無法達到修復的目的

Q132.You plan to upgrade your MySQL 5.7 instance to version 8.
You have installed the 8 build of MySQL Shell.
Examine this command executed from the operating system shell prompt:
mysqlsh --uri root@localhost:3306 --util checkforserverupgrade
Which statement is true?
A)It documents any problems with your 5.7 tables to make them ready to upgrade to 8.
B)It fails because the operation name must be in camelCase.
C)It fixes any problems with your 5.7 tables to make them ready to upgrade to 8.
D)It is mandatory to clear the history of prior results before executing this process a second time or later.
E)It fails because checkForServerUpgrade must be executed only within an active shell session as a method of
the util object.
F)It is mandatory to run this command so that MySQL 8.0 software’s auto-upgrade process has the details it
needs to operate properly.
Answer:A

mysqlsh --uri root@localhost:3306 --util checkforserverupgrade可以檢查從5.7到8升級過程中出現的不兼容,已棄用的特性等信息選項A:會記錄5.7升級到8.0會出問題的表,是正確的
選項B:選項大小寫無所謂,更不用什么駝峰命名
選項C:只檢查不修復
選項D:每一次執行都會有產生自己的信息,沒必要清理之前執行后產生的結果
選項E:命令行也行
選項F:mandatory:必須,強制,該命令也不一定必須執行,只要有足夠的信息,沒有什么兼容性的問題,那就可以不執行

Q133.Database test contains a table named city that has the InnoDB storage engine.
CREATE TABLE ‘city’ (
‘ID’ int NOT NULL AUTO_ INCREMENT,
‘Name’ char(35) NOT NULL DEFAULT ‘’,
‘Countrycode’ char(3) NOT NULI DEFAULT ‘’,
‘District’ char (20) NOT NULI DEFAULT ’ ',
‘Population’ int NOT NULI DEFAULT ‘0’,
PRIMARY KEY(‘ID’),
KEY ‘CountryCode’ (
’ Countrycode’ )
) ENGINE= InnoDB TABLESPACE=innodb_file_per_table;
What is the content of the test folder in the data directory?
A)city.MYD, city.MYI, and city.sdi
B)city.ibd
C)city. ibd and city.sdi
D)city. ibd and city. frm
E)city.ibd, city.frm, and city.sdi
Answer:B

frm:是描述表結構的文件。在8.0之前包含MySQL表的元數據,例如表定義。元數據是關于數據的數據,表定義則包含了表的結構信息,像表中有多少列、每列的數據類型、列的名稱等,在8.0之后,這些信息存儲在數據字典表中
MYD:存儲myIsam數據的文件
MYI:存儲myIsam數據表的索引信息
ibd:包含innodb的表數據和索引文件
sdi:序列化數據目錄信息(SDI),SDI是表和表空間對象的序列化元數據。,存儲了innodb表的元數據,在表空間中存儲
以上表中是innodb表,所以會有ibd文件,sdi存儲在表空間中,所以在test數據庫路徑下看不到

Q134.Which two MySQL Shell commands are excluded from the InnoDB Cluster creation procedure?
A)cluster.addInstance()
B)dba.configureLocalInstance()
C)dba.checkInstanceConfiguration()
D)cluster.setPrimaryInstance()
E)dba.configureInstance 0)
F)dba.createCluster()
G)cluster.forceQuorumUsingPartitionOf()
Answer:DG

選項A:此命令用于將新實例添加到已創建的集群中,是集群創建和管理過程的一部分
選項B:此命令用于配置本地實例以加入集群,通常在創建集群之前或過程中使用
選項C:此命令用于檢查實例是否適合加入集群,通常在創建集群之前使用。
選項D:此命令用于設置或更改集群的主實例,通常在集群創建之后用于管理集群,而不是集群創建過程的一部分
選項E:此命令用于配置實例以確保其適合加入集群,通常在創建集群之前使用。
選項F:此命令用于實際創建 InnoDB Cluster,是集群創建過程的核心步驟
選項G:此命令用于在網絡分區或故障情況下強制設置仲裁,以恢復集群的正常運行,不屬于常規的集群創建過程。

Q135.Which four connection methods can MySQL clients specify with the --protocol option when connecting to a
MySQL server?
A)IPv4
B)SOCKET
C)MEMORY
D)PIPE
E)IPv6
F)FILEO
G)TCP
H)DIRECT
Answer:BCDG

Q136.Which two authentication plugins require the plaintext client plugin for authentication to work?
A)LDAP authentication
B)SHA256 authentication
C)Windows Native authentication
D)PAM authentication
E)MySQL Native Password
F)LDAP SASL authentication
Answer:AD

Hashing or encryption cannot be done for authentication schemes that require the server to receive the password as entered on the client side. In such cases, the client-side mysql_clear_password plugin is used, which enables the client to send the password to the server as cleartext. There is no corresponding server-side plugin. Rather, mysql_clear_password can be used on the client side in concert with any server-side plugin that needs a cleartext password. (Examples are the PAM and simple LDAP authentication plugins; see Section 8.4.1.5, “PAM Pluggable Authentication”, and Section 8.4.1.7, “LDAP Pluggable Authentication”.)對于那些需要服務器以客戶端輸入的形式接收密碼的身份驗證方案,無法進行哈希或加密。在這種情況下,客戶端會使用mysql_clear_password插件,該插件允許客戶端將密碼以明文形式發送給服務器。沒有對應的服務器端插件。相反,mysql_clear_password可以在客戶端與任何需要明文密碼的服務器端插件配合使用(例如PAM可插拔身份驗證插件和簡單的LDAP身份驗證插件;參考:https://dev.mysql.com/doc/refman/8.4/en/cleartext-pluggable-authentication.html

Q137.Where is the default data directory located after installing MySQL using RPM on Oracle Linux 7?
A)/usr
B)/usr/mysql
C)/etc/my.cnf
D)/var/lib/mysql
E)/usr/bin
Answer:D

Q138.You must store connection parameters for connecting a Linux-based MySQL client to a remote Windows-based MySQL server listening on port 3309.
Which four methods can be used to configure user, host, and database parameters?
A) Execute the command in a bash script.
B) Embed login information into the SSH tunnel definition.
C) Define a UNIX socket.
D) Execute mysql_config_editor to configure the user connection.
E) Configure~/.ssh/config for public key authentication.
F) Use the usermod program to store static user information.
G) Execute the mysqladmin command to confiaure the user connection.
H) Configure~/.my.cnf.

  1. Configure environment variables
    Answer:ADHI
可以使用bash腳本,mysql_config_editor工具,環境變量,或者配置在~/.my.cnf存儲連接用戶的名稱,ip數據庫等連接信息

Q139.You plan to install MySQL Server by using the RPM download.
Which two statements are true?
A)You must manually initialize the data directory.
B)You can provide the root password interactively.
C)The MySQL RPM package installation supports deploying multiple MySQL versions on the same host.
D)MySQL uses the RPM relocatable installation target feature.
E)You can find the root password in the error log after the first start.
F)The functionality is split among several RPM package files.
Answer:EF

RPM安裝步驟:
1.下載RPM安裝包
2.查看安裝包:$> rpm -qpl mysql-community-server-version-distribution-arch.rpm
3.安裝:$> sudo yum install mysql-community-{server,client,client-plugins,icu-data-files,common,libs}-*
4.啟動:$> systemctl start mysqld
5.查看臨時密碼:$> sudo grep 'temporary password' /var/log/mysqld.log從這個過程中可以看到,
選項A:不需要手動創建data路徑
選項B:也不需要交互式的提供密碼
選項C:RPM不支持單機多實例,因為需要不同的實例間需要不同的配置
選項D:RPM安裝都是默認位置,也沒有重新定位 安裝目標路徑
選項E:在error log中查看密碼是正確的
選項F:功能分布在多個 RPM 軟件包文件中。也是正確的,可以看到安裝的時候需要安裝不同的包

Q140.Examine this MySQL Shell command:
dba.rebootClusterFromCompleteOutage ()
Which two statements are true? (Choose two.)
A)It reconfigures InnoDB Cluster if the cluster was stopped.
B)It performs InnoDB Cluster instances rolling restart.
C)It only starts all InnoDB Cluster instances.
D)It is not mandatory that all instances are running and reachable before running the command.
E)It stops and restarts all InnoDB Cluster instances and initializes the metadata.
F)It only stops and restarts all InnoDB Cluster instances.
G)It picks the minimum number of instances necessary to rebuild the quorum and reconfigures InnoDB Cluster.
Answer:AD

rebootClusterFromCompleteOutage()是MySQL Shell中的一個實用命令,用于在 InnoDB 集群遇到完全中斷 (例如,當組復制在所有成員實例上停止時)后重新配置和恢復集群。這個命令允許你連接到集群中的一個 MySQL 實例,并使用該實例的元數據來恢復整個集群。選項A:正確
選項D:可以在某一個實例上運行該命令,所以不需要強制所有實例都是running狀態和可達的

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/diannao/83353.shtml
繁體地址,請注明出處:http://hk.pswp.cn/diannao/83353.shtml
英文地址,請注明出處:http://en.pswp.cn/diannao/83353.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

正向代理和反向代理的區別?

前言 在現代網絡架構中,代理服務器扮演著至關重要的角色。無論是企業網絡還是互聯網服務,代理技術都廣泛應用以提高性能、安全性和可管理性。正向代理和反向代理是兩種最常見的代理類型,雖然它們都作為中間人處理客戶端和服務器之間的通信&am…

技術融資:概念與形式、步驟與案例、挑戰與應對、發展趨勢

一、技術融資概述 技術融資是指通過外部資金支持技術研發、產品開發或市場擴展的過程。它通常涉及風險投資、天使投資、私募股權、眾籌等多種形式。技術融資的核心目標是為技術創新提供資金保障,推動技術從概念到市場的轉化。 技術融資的主要形式包括以下幾種&…

從硬件角度理解“Linux下一切皆文件“,詳解用戶級緩沖區

目錄 前言 一、從硬件角度理解"Linux下一切皆文件" 從理解硬件是種“文件”到其他系統資源的抽象 二、緩沖區 1.緩沖區介紹 2.緩沖區的刷新策略 3.用戶級緩沖區 這個用戶級緩沖區在哪呢? 解釋關于fork再加重定向“>”后數據會打印兩份的原因 4.內核緩沖…

車道線檢測----CLRERNet

CLRerNet:利用LaneIoU提升車道檢測置信度 摘要 車道標檢測在自動駕駛和駕駛輔助系統中至關重要。現代深度車道檢測方法在車道檢測基準測試中表現出色。通過初步的預言機實驗,我們首次拆解車道表示組件以確定研究方向。我們表明,正確的車道位…

ML307R 的 USB Vendor ID (VID):0x2ECC ML307R 的 USB Product ID (PID):0x3012

可以的,在文檔的「Table 3. VID、PID查詢表」中明確指出: ML307R 的 USB Vendor ID (VID):0x2ECCML307R 的 USB Product ID (PID):0x3012 你可以將這對 VID/PID 加到 Linux 的 option 驅動中,比如: ech…

論信息系統項目的范圍管理

論信息系統項目的范圍管理 前言一、規劃范圍管理,收集需求二、定義范圍三、創建工作分解結構四、確認范圍五、控制范圍 前言 為了應對煙草零售客戶數量大幅度增長所帶來的問題,切實履行控煙履約的相關要求,同時也為了響應國務院“放管服”政策…

MongoDB與PostgreSQL兩個數據庫的特點詳細對比

MongoDB 和 PostgreSQL 是兩種不同類型的數據庫,分別屬于 ??NoSQL(文檔型)?? 和 ??關系型(SQL)?? 數據庫。它們在數據模型、查詢語言、擴展性、事務支持等方面有顯著差異。以下是詳細對比: ??1. …

計算機網絡:什么是電磁波以及有什么危害?

電磁波詳解 電磁波(Electromagnetic Wave)是由電場和磁場相互激發、在空間中傳播的能量形式。它既是現代通信的基石(如手機、Wi-Fi、衛星信號),也是自然界中光、熱輻射等現象的本質。以下從定義、產生、特性、分類及應用全面解析: 一、電磁波的本質 1. 核心定義 電場與…

如何使用 Solana Yellowstone gRPC 重新連接和重放插槽

Yellowstone gRPC 是一個功能強大、可用于生產環境且經過實戰檢驗的工具,用于流式傳輸實時的 Solana 數據。但在實際條件下,網絡中斷或服務器重啟可能導致連接中斷。如果沒有適當的重連策略,你的應用程序可能會錯過區塊鏈的關鍵更新。 為了防…

foxmail - foxmail 啟用超大附件提示密碼與帳號不匹配

foxmail 啟用超大附件提示密碼與帳號不匹配 問題描述 在 foxmail 客戶端中,啟用超大附件功能,輸入了正確的賬號(郵箱)與密碼,但是提示密碼與帳號不匹配 處理策略 找到 foxmail 客戶端目錄/Global 目錄下的 domain.i…

MySQL 事務(一)

文章目錄 CURD不加控制,會有什么問題CURD滿足什么屬性,能解決上述問題?什么是事務為什么要有事務事務的版本支持了解事務的提交方式 事務常見操作方式研究并發場景事務的正常操作事務的非正常情況的案例結論事務操作的注意事項 CURD不加控制&…

CSS面試題匯總

在前端開發領域,CSS 是一項不可或缺的技術。無論是頁面布局、樣式設計還是動畫效果,CSS 都扮演著重要的角色。因此,在前端面試中,CSS 相關的知識點往往是面試官重點考察的內容。為了幫助大家更好地準備面試,本文匯總了…

Java 后端給前端傳Long值,精度丟失的問題與解決

為什么后端 Long 類型 ID 要轉為 String? 在前后端分離的開發中,Java 后端通常使用 Long 類型作為主鍵 ID(如雪花算法生成的 ID)。但如果直接將 Long 返回給前端,可能會導致前端精度丟失的問題,特別是在 J…

對稱二叉樹的判定:雙端隊列的精妙應用

一、題目解析 題目描述 給定一個二叉樹,檢查它是否是鏡像對稱的。例如,二叉樹 [1,2,2,3,4,4,3] 是對稱的: 1/ \2 2/ \ / \ 3 4 4 3而 [1,2,2,null,3,null,3] 則不是鏡像對稱的: 1/ \2 2\ \3 3問題本質 判斷一棵二叉…

C#數組與集合

🧠 一、數組(Array) 1. 定義和初始化數組 // 定義并初始化數組 int[] numbers new int[5]; // 默認值為 0// 聲明并賦值 string[] names { "Tom", "Jerry", "Bob" };// 使用 new 初始化 double[] scores …

本地部署Scratch在線編輯器

1、說明 由于在GitHub上沒有找到Scratch源碼,所以只能編寫腳本下載官網相關資源,然后在本地部署。 如果你找到了Scratch源碼,請自行編譯部署,可忽略以下操作。 項目結構:scratch.mit.edu |-- chunks | |-- fetch-w…

Gmsh 讀取自定義輪廓并劃分網格:深入解析與實踐指南

一、Gmsh 簡介 (一)Gmsh 是什么 Gmsh 是一款功能強大的開源有限元網格生成器,廣泛應用于工程仿真、數值模擬以及計算機圖形學等領域。它為用戶提供了從幾何建模到網格劃分的一整套解決方案,能夠有效處理復雜幾何形狀,生成高質量的二維和三維網格,滿足多種數值方法的需求…

Elabscience 精準識別 CD4+ T 細胞|大鼠源單克隆抗體 GK1.5,適配小鼠樣本的流式優選方案

內容概要 CD4 T細胞在免疫調節、自身免疫疾病及腫瘤免疫治療中發揮關鍵作用。Elabscience推出的APC Anti-Mouse CD4 Antibody (GK1.5)(貨號:E-AB-F1097E)是一款高特異性、低背景的流式抗體,專為小鼠CD4 T細胞亞群檢測優化設計。該…

【RabbitMQ】應用問題、仲裁隊列(Raft算法)和HAProxy負載均衡

🔥個人主頁: 中草藥 🔥專欄:【中間件】企業級中間件剖析 一、冪等性保障 什么是冪等性? 冪等性是指對一個系統進行重復調用(相同參數),無論同一操作執行多少次,這些請求…

51 單片機頭文件 reg51.h 和 reg52.h 詳解

51 單片機頭文件詳解 51 單片機的頭文件reg51.h和reg52.h是開發中非常重要的文件,它們定義了單片機的特殊功能寄存器 (SFR) 和位地址。以下是對這兩個頭文件的詳細解析: 1. 頭文件概述 reg51.h:針對標準 8051 單片機(4KB ROM, 128B RAM) reg52.h:針對增強型 8052 單片…