“source” the file download tables.sql from the class website upload it into your cse account...
TRANSCRIPT
![Page 1: “Source” the file Download tables.sql from the class website Upload it into your cse account “source” the file at the command line – mysql -h student-db](https://reader036.vdocuments.site/reader036/viewer/2022083005/56649f145503460f94c28228/html5/thumbnails/1.jpg)
“Source” the file
• Download tables.sql from the class website• Upload it into your cse account• “source” the file at the command line– mysql -h student-db -u [EUID] -p [EUID] < tables.sql– Example:
mysql -h student-db -u jwp0101 -p jwp0101 < tables.sql
– Your password is your EUID unless you change it– If you have having password problems, contact Matt
Kernan [email protected]
![Page 2: “Source” the file Download tables.sql from the class website Upload it into your cse account “source” the file at the command line – mysql -h student-db](https://reader036.vdocuments.site/reader036/viewer/2022083005/56649f145503460f94c28228/html5/thumbnails/2.jpg)
Querying at the Command Line
• Log in to your mysql account – mysql -h student-db -u [EUID] –p
• Use your database– use [EUID];
• Practice writing queries• When you are satisfied with the query, copy it
into file [lastname]_[firstname]_MySQL.sql
![Page 3: “Source” the file Download tables.sql from the class website Upload it into your cse account “source” the file at the command line – mysql -h student-db](https://reader036.vdocuments.site/reader036/viewer/2022083005/56649f145503460f94c28228/html5/thumbnails/3.jpg)
[lastname]_[firstname]_MySQL.sql
• Use comments for the English version• Number the queries• Place your SQL query underneath:-- 1. Find the table names of all existing tables created by youshow tables;-- 2. Find the schema of the borrower tableetc...
• Save the file regularly
![Page 4: “Source” the file Download tables.sql from the class website Upload it into your cse account “source” the file at the command line – mysql -h student-db](https://reader036.vdocuments.site/reader036/viewer/2022083005/56649f145503460f94c28228/html5/thumbnails/4.jpg)
Submitting the file
• Source the file to ensure your queries work• Submit the file using the project command:
project submit 4350s001 banking [filename]