单选题 You have installed MySQL Server for the first time on your system. However, the data
Directory along with the tables in the mysql system database are missing. Which step do you perform to create the contents of the data directory?
相关试题
单选题 You have just executed a manual backup by using this command:
Mysqlbackup -u root -p --socket=/tmp/my.sock --backup-dir=/my/backup/ backup
The operation completed without error.
What is the state of this backup and operation required before it is ready to be restored?
单选题 Host slave1 has ip address 192.0.2.10.
Host slave2 has ip address 203.0.113.50
Examine these commands:
Why did this error occur?
单选题 How does the InnoDB storage engine handle deadlocks when they are detected?
单选题 What is the best method for monitoring Group Replication conflict resolution?
单选题 The following grants were executed:
GRANT CREATE ROUTING ON sales.* TO ‘webadmin’@’%’;
GRANT ALTER ON PROCEDURE sales.myproc TO ‘webadmin’@’%’;
A user successfully connects to the database as webadmin and created a stored procedure named get_reports.
The next day, the user logs in again as webadmin and wants to delete the stored procedure named get_reports, and therefore, issues the following statement:
USE sales;
DROP PROCEDURE IF EXISTS get_reports;
What is the result of executing the statement?
单选题 You are setting up a new installation of MySQL Server 5.7 (a GA release. You have used a ZIP or TAR package to ensure that the mysqld binary, along with its support files, such as plug-ins and error messages, now exist on the host.
Assume that the default datadir exists on the host. You installed the binary in the default location (the default --basedir value for your operating system.
Which step should you perform before defining your own databases and database tables?
单选题 There are multiple instances of MySQL Server running on a single OS that is backed up using the mysqlbackup command.
The /etc/my/cnf contains default values, for example, datadir=/var/lib/mysql/, with extra instances having their own separate my.cnf file (for example /etc/mysql/instanceN.cnf overriding the defaults.
A restore of the second instance is attempted from the mysqlbackup archive using this command:
Mysqlbackup –backup-dir=/opt/backup/mysql/instance2 copy backup on starting the second MySQL instance, you notice that the data does not match the expected backup. Which command-line option is required to successfully update the second instance?
单选题 Which statement best describes the purpose of the InnoDB buffer pool?