New Year Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Free Access Oracle 1z0-883 New Release

Page: 2 / 4
Total 100 questions

MySQL 5.6 Database Administrator Questions and Answers

Question 5

You install a copy of Mysql 5.6.13 on a brand new Linux server by using RPM packages. The server starts successfully as verified by the following commands:

$ pidof mysqld

3132

$tail - n2 /var/lib.mysql/hostname.err

2013-08-18 08:18:38 3132 [Note] /usr/sbin/mysqld: ready for connections.

Version: ‘5.6.13-enterprise-commercial-advaced’ socket: ‘/tmp/mysql.sock’ port;

3306 Mysql Enterprise Server – Advanced Edition (Commercial)

You attempt to log in as the root user with the following command:

$mysql –u root

ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: NO)

Which statement is true about this scenario?

Options:

A.

The RPM installation script sets a default password of password for new installations.

B.

The local root user must log in with a blank password initially: mysql –u root –p.

C.

New security measures mean that the mysql_secure_installation script must be run first on all new installations.

D.

The mysql_install_bd post-installation script used – random-password.

Question 6

When designing an InnoDB table, identify an advantage of using the BIT datatype Instead of one of the integer datatypes.

Options:

A.

BIT columns are written by InnoDB at the head of the row, meaning they are always the first to be retrieved.

B.

Multiple BIT columns pack tightly into a row, using less space.

C.

BIT (8) takes less space than eight TINYINT fields.

D.

The BIT columns can be manipulated with the bitwise operators &, |, ~, ^, <<, and >>. The other integer types cannot.

Question 7

Which three statements describe how the strict SQL mode provides added security?

Options:

A.

It rejects statements that try to insert out-of-range values

B.

It rejects invalid dates.

C.

It limits the operations that the server can perform.

D.

It rejects queries that produce out-of-range values.

E.

It rejects dates with zero day or month values.

Question 8

In a test database, you issue the SELECT … INTO OUTFILE statement to create a file with your t1 table data.

You then TRUNCATE this table to empty it.

Mysql> SELECT * INTO OUTFILE ‘/tmp/t1.sql’ from t1;

mysql> TRUNCATE t1;

Which two methods will restore data to the t1 table?

Options:

A.

Mysql> LOAD DATA INFILE ‘/tmp/t1.sql’ INTO TABLE t1;

B.

$ mysqladmin – u root – p – h localhost test – restore /tmp/t1.sql

C.

$ mysql – u root – p – h localhost test < /tmp/t1.sql

D.

$ mysqlimport – u root – p – h localhost test /tmp/t1.sql

E.

Mysql> INSERT INTO t1 VALUES FROM ‘/tmp/t1.sql’;

Page: 2 / 4
Total 100 questions