В консоли mysql (под root) выполнить последовательно команды:

CREATE DATABASE IF NOT EXISTS lockon;

use lockon;

CREATE TABLE IF NOT EXISTS online
(
name varchar(32) not null primary key,
coalition varchar(10),
aircraft varchar(20)
);

CREATE TABLE IF NOT EXISTS history
(
id int unsigned not null auto_increment primary key,
date DATE,
name varchar(32) not null,
aircraft varchar(20),
time_in TIME,
time_out TIME,
time_sum TIME
);

CREATE TABLE IF NOT EXISTS cur_mission
(
name varchar(50) not null primary key
);