Consider the following table:
CREATE TABLE ‘game’ (
‘id’ int (10) unsigned NOT NULL AUTO_INCREMENT,
‘keyword’ varchar (45) DEFAULT NULL,
‘date’ datetime NOT NULL,
PRIMARY KEY (‘id’ , ‘date’),
UNIQUE KEY ‘keyword_idx’ (‘keyword’ , ‘date’)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
PARTITION BY RANGE (TO_DAYS (date) ) (
PARTITION g201301 VALUES LESS THAN (TO_DAYS (‘2013-01-01 00:00:00’) ),
PARTITION g201302 VALUES LESS THAN (TO_DAYS (‘2013-02-01 00:00:00’) ),
PARTITION g201303 VALUES LESS THAN (TO_DAYS (‘2013-03-01 00:00:00’) ),
PARTITION g201304 VALUES LESS THAN (TO_DAYS (‘2013-04-01 00:00:00’) ),
PARTITION gMORES VALUES LESS THAN (MAXVALUE) );
Which method should used to add a new g201305 partition to the table?
A database exists as a read-intensive server that is operating with query_cachek_type = DEMAND.
The database is refreshed periodically, but the resultset size of the queries does not fluctuate.
Note the following details about this environment:
The response times for queries have recently started to increase. The cause for this has correctly been identified as the increase in the number of concurrent users accessing the web service.
Based solely on the information provided, what is the most likely cause for this slowdown at the database level?
MySQL is installed on a Linux server and has the following configuration:
[mysqld]
User=mysql
Datadir=/data/mysql
As the ‘root’ user, 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?
Which three statements are true about memory buffer allocation by a MySQL Server?
You attempt to connect to a Mysql Server by using the mysql program. However, you receive the following notice:
ERROR 2059 (HY000): Authentication plugin ‘mysql_clear_password’ connot be loaded: plugin not enabled
What would you run to fix the issue?
Consider the Mysql Enterprise Audit plugin.
The following event detail is found in the audit log:
TIMESTAMP=”2013-04-09t01:54:17” NAME=”Connect” CONNECTION_ID=”3” STATUS=”1045” USER=”kate” PROXY_USER=”” HOST=”localhost” IP=”” DB=””/> Which two points can be concluded from the given event?
An existing master-slave setup is currently using a delayed replication of one hour. The master has crashed and the slave must be ”rolled forward” to provide all the latest data.
The SHOW SLAVE STATUS indicates the following values:
RELAY_LOG_FILE = hostname-relay-bin.00004
RELAY_LOG_POS = 1383
Which command set would make the slave current?
Consider the following:
Mysql> EXPLAIN SELECT * FROM City WHERE Name = ‘Jacksonville’ AND CountryCode = ‘USA’ \G
******************************** 1. row ********************************
Id: 1
Select_type: SIMPLE
Table: City
Type: ref
Possible_keys: name_country_index
Key: name_country_index
Ref: const, const
Rows: 1
Extra: Using where
Which statement best describes the meaning of the value for the key_len column?