The Employees database is available from Employees DB on Launchpad. You can download a prepackaged archive of the data, or access the information through Bazaar.
To use the archive package, download the archive and unpack it:
$ tar -xjf $HOME/Downloads/employees_db-full-1.0.4.tar.bz2 $ cd employees_db/
The Employees database is compatible with all storage engines. You
must edit the employee.sql and comment out
the storage engine that you want to use:
set storage_engine = InnoDB; -- set storage_engine = MyISAM; -- set storage_engine = Falcon; -- set storage_engine = PBXT; -- set storage_engine = Maria;
To import the data into your MySQL instance, load the data through the mysql command-line tool:
$ mysql -t < employees.sql +-----------------------------+ | INFO | +-----------------------------+ | CREATING DATABASE STRUCTURE | +-----------------------------+ +------------------------+ | INFO | +------------------------+ | storage engine: MyISAM | +------------------------+ +---------------------+ | INFO | +---------------------+ | LOADING departments | +---------------------+ +-------------------+ | INFO | +-------------------+ | LOADING employees | +-------------------+ +------------------+ | INFO | +------------------+ | LOADING dept_emp | +------------------+ +----------------------+ | INFO | +----------------------+ | LOADING dept_manager | +----------------------+ +----------------+ | INFO | +----------------+ | LOADING titles | +----------------+ +------------------+ | INFO | +------------------+ | LOADING salaries | +------------------+
To test that the data you have loaded matches the expected results, run the test suite. For more information, see Section 3, “Validating the Employee Data”.
