The Workshop is designed to help you anticipate possible questions, review what you've learned, and begin learning how to put your knowledge into practice.
Which MySQL function will enable you to run an expression many times over to find the speed of the iterations?
The benchmark() function.
Which SQL command will clean up the structure of your tables?
Which FLUSH command resets the MySQL log files?
To quickly determine if MySQL has support for InnoDB tables, would you use SHOW STATUS or SHOW VARIABLES?
Write a SQL statement that will enable you to see the SQL statement used to create a table called myTable.
SHOW CREATE TABLE myTable
If you have root-level access to your server, change the values of key_buffer_size and table_cache, and run benchmark() functions after each change to see how the execution times differ.
Use OPTIMIZE on all the tables you have created in your database, to clean up any structural issues.
Use the SHOW STATUS command to retrieve information about your MySQL server, and then issue FLUSH commands to clean up the server. After each command, use SHOW STATUS again to see which commands affect which results in the SHOW STATUS results display.