Setup for PHP and MySQL Training
Required Software
- Operating system:
- Windows 10 or later
- Mac: OS X Mountain Lion (version 10.8) or later.
- Google Chrome
Instructions
Warning: this is going to take some time.
There are a few steps:
- Follow the setup instructions for PHP here, which explain how to install the software used in the PHP portion of the course and where to download and unzip the class files.
- Make sure that MySQL Server is running in MAMP:
- Install MySQL Workbench. To do so, follow the instructions at https://dev.mysql.com/downloads/workbench/.
- After installing MySQL Workbench, download the SQL class files from the bottom of this page. Then unzip them into the Webucator folder and rename the folder SQL.
- Setup MySQL Workbench:
- Open MySQL Workbench and click on the plus symbol to the right of the "MySQL Connections" text:
- In the Setup New Connection dialog that shows up:
- Enter "local" as the Connection Name. Leave everything else unchanged.
- Click the Test Connection button.
- Enter "pwdpwd" as the Password.
- Check Save password in vault.
- Click OK.
- You should get a confirmation dialog box, like this:
- Click OK and OK again to close the dialog boxes.
- You should now see a local connection on the MySQL Workbench home screen:
- Click the local connection to open it.
- If you correctly completed the setup for the PHP course, you should see a poetree schema (also called a database) in the Navigator panel on the left:
- Open MySQL Workbench and click on the plus symbol to the right of the "MySQL Connections" text:
- We will now install northwind, the schema we will use in the SQL class.
- From the File menu, select Run SQL Script...
- Navigate to the setup folder and select the Northwind-MySQL.sql file and click the Open button:
- In the Run SQL Script dialog, click the Run button:
- You should now see the northwind database under the SCHEMAS heading in the Navigator panel on the left. If you don't, try pressing the refresh icon (circled in orange below):
- From the File menu, select Run SQL Script...
Congratulations, you are now set up for your class.
Courses and Class Files
This setup page is used for the following course:
Courses
- PHP and MySQL Training.
- All students should download the following class files: