https://github.com/traveltimn/gitpod-chinook
https://github.com/traveltimn/gitpod-chinook
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/traveltimn/gitpod-chinook
- Owner: TravelTimN
- Created: 2019-12-23T16:03:52.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2020-12-10T15:18:40.000Z (over 5 years ago)
- Last Synced: 2025-03-01T18:25:06.805Z (over 1 year ago)
- Size: 152 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
10DEC2020 - Update branch from `master` to `main`.
---
To get the Chinook database, run the command in the Gitpod console/terminal (*the final **dot** is important!*):
`wget https://raw.githubusercontent.com/lerocha/chinook-database/master/ChinookDatabase/DataSources/Chinook_MySql_AutoIncrementPKs.sql .`
You should now have the file downloaded, and you can run the following command:
`mysql < Chinook_MySql_AutoIncrementPKs.sql -v`
- Type `mysql` to start the mysql CLI.
- Type `use Chinook;` to use the Chinook database.
- Type `desc Employee;` to show the columns in the Employee table.
- Type `select * from Employee;` to show all items in the Employee table. (optional: `limit 2;`)
- Type `quit;` to leave the mysql CLI.
---
- In **VSCode** type `sudo service mysql start mysql`.
- Then: `CREATE DATABASE Chinook;`;
- Then: `quit`
- Then: `mysql -u root -p Chinook < Chinook_MySql_AutoIncrementPKs.sql`
- Enter Password (takes a while to load everything properly)