What will be the effect of executing the following statement? REVOKE ALL PRIVILEGES FROM 'web'@'localhost'
A. The account 'web'@'localhost' will have all privileges removed, and the account deleted from the server.You need to allow the user 'joe'@'example.com' the privilege to create and alter stored routines in the world database, but you do not want that user to be able to change any table definitions. The user already has the required permissions to access table data in the database.
Which of the following will achieve that?
A. mysql> GRANT ALL ROUTINE PRIVILEGES ON world.* TO 'joe'@'example.com';When working with replication, why might you want to stop the I/O thread on the slave while keeping the SQL thread running?
A. So that no changes are made while making backups.Consider the following: mysql> EXPLAIN SELECT DISTINCT City.id,City.name -> FROM City,Country -> WHERE Country.Name IN ('United States','Canada','Mexico') -> AND City.CountryCode=Country.Code -> ORDER BY name\G *************************** 1. row *************************** id: 1 select_type: SIMPLE table: City type: ALL possible_keys: NULL key: NULL key_len: NULL ref: NULL rows: 4079 Extra: Using temporary; Using filesort *************************** 2. row *************************** id: 1 select_type: SIMPLE table: Country type: eq_ref possible_keys: PRIMARY key: PRIMARY
key_len: 3 ref: world.City.CountryCode rows: 1 Extra: Using where; Distinct Which of the following best describes the meaning of the values in the ref columns?
A. City.CountryCode is used to sort what rows are returned from the City table.With replication, what on the master is used to send commands to the slave?
A. The relay log.Consider the following:
mysql> DESC customers;
+--------+------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+--------+------------------+------+-----+---------+----------------+
| id | int(11) unsigned | NO | PRI | NULL | auto_increment |
| name_1 | char(20) | YES | MUL | NULL | |
| name_2 | varchar(20) | YES | | NULL | |
| name_3 | varchar(20) | YES | | NULL | |
| email | varchar(50) | YES | | NULL | |
+--------+------------------+------+-----+---------+----------------+
mysql> EXPLAIN SELECT * FROM customers WHERE name_1 = 'Johnny'\G
*************************** 1. row ***************************
id: 1
select_type: SIMPLE
table: customers type:
ref
possible_keys: i_name_1_01,i_name_1_02
key: i_name_1_01
key_len: 21
ref: const
rows: 1
Extra: Using where
What can be assumed by looking at the key_len column?
A. No indexes are being used.Which of the following best describes the table cache in MySQL and some of its properties?
A. The table cache is a global cache for all open tables.Which of the following best describes why one should use VARCHAR rather than CHAR in InnoDB?
A. The average amount of space used will be less.Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Oracle exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 1Z0-874 exam preparations and Oracle certification application, do not hesitate to visit our Vcedump.com to find your solutions here.