O'Reilly logo

MySQL 8 Cookbook by Karthik Appigatla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

  1. Download the zipped file:
shell> wget 'https://codeload.github.com/datacharmer/test_db/zip/master' -O master.zip
  1. Unzip the file:
shell> unzip master.zip
  1. Load the data:
shell> cd test_db-mastershell> mysql -u root -p < employees.sqlmysql: [Warning] Using a password on the command line interface can be insecure.INFOCREATING DATABASE STRUCTUREINFOstorage engine: InnoDBINFOLOADING departmentsINFOLOADING employeesINFOLOADING dept_empINFOLOADING dept_managerINFOLOADING titlesINFOLOADING salariesdata_load_time_diffNULL
  1. Verify the data:
shell> mysql -u root -p  employees -Amysql: [Warning] Using a password on the command line interface can be insecure.Welcome to the MySQL monitor.  Commands end with ; or \g.Your MySQL connection ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required