Question 116

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-back
Upon 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?
  • Question 117

    The MySQL error log shows:
    InnoDB: Warning: a long semaphore wait:
    The relevant parts of the InnoDB monitor output shows:

    Which two options would help avoid the long wait in the future?
  • Question 118

    Consider these global status variables:

    Which two conclusions can be made from the output?
  • Question 119

    You have a MySQL instance with the following variables in the /etc/my.cnf file:

    You issue these statements:
    USE prices;
    UPDATE sales.january SET amount=amount+1000;
    An hour after excluding the statements, you realize that you made a mistake and you want to go to the binary log and look at the statements again.
    Which statement is true? (Choose two.)
  • Question 120

    Examine the mysqldumpslow output:

    Which two options could explain the slow query? (Choose two.)