Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this exercise, you will back up a database to create a backup script file. Then, you will make some changes to the database. Finally,

In this exercise, you will back up a database to create a backup script file. Then, you will make some changes to the database. Finally, you will restore the database from the backup script and the binary log file.
Back up a database
If it isnt already enabled, enable binary logging as described in chapter 17.
Start a command prompt and use the mysqldump program to create a full backup of the My Guitar Shop database.
Start MySQL Workbench and open the backup script that was created by the mysqldump program. Make sure that this script contains all the SQL statements needed to restore the structure and data of the database. If necessary, add the CREATE DATABASE statement that creates the database and the USE statement that selects it.
Use MySQL Workbench to write and execute an INSERT statement that inserts one row into the Categories table of the My Guitar Shop database, and note the time on your computer that this statement is executed.
Wait until the time on your computer changes to at least the next minute. Then, use MySQL Workbench to execute a DROP TABLE statement that drops the Administrators table.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spomenik Monument Database

Authors: Donald Niebyl, FUEL, Damon Murray, Stephen Sorrell

1st Edition

0995745536, 978-0995745537

More Books

Students also viewed these Databases questions

Question

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago