1. 2. drop database if exists SAMPLEDB; create database SAMPLEDB; use SAMPLEDB; drop table if exists MONKEYS ; create table MONKEYS( ID bigint not null, NAME varchar(15), COUNT int, VERSION integer, primary key (ID) ) type=INNODB; insert into MONKEYS…