Question 26

MySQL is installed on a Linux server and has this configuration:
[mysqld]
user=mysql
datadir=/data/mysql/
As the 'root' user, you change the datadir location by executing:
shell> cp -R /var/lib/mysql /data/mysql/
shell> chown -R mysql /data/mysql
What is the purpose of changing ownership of datadir to the 'mysql' user?
  • Question 27

    Consider these global status variables:

    Which two conclusions can be made from the output? (Choose two.)
  • Question 28

    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?
  • Question 29

    A MySQL database uses all InnoDB tables and is configured as follows;

    You will be setting up a replication slave by using mysqldump. You will need a consistent backup taken from your running production server. The process should have minimal impact to active database connections.
    Which two arguments will you pass to mysqldump to achieve this? (Choose two.)
  • Question 30

    Consider the table people with the definition:

    The application uses a query such as:
    SELECT * FROM people WHERE YEAR(Birthday) = 1980;
    The query is not using an index.
    Which two methods can be used to allow the query to use an index?