Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Installing SID on the Mac

From: MySQL Essential Training

Video: Installing SID on the Mac

In this movie I'll show you how to install the SID application on a Mac. And in fact I can quit chrome for now, I'm going to press Cmd+Q to quit that.

Installing SID on the Mac

In this movie I'll show you how to install the SID application on a Mac. The first thing we need to do is import the databases that are going to be used with SID. So we're going to come over here, I've got the XAMPP welcome screen up here in my browser. I'm just going to click on php My Admin. And some over here to import to import the databases that we're going to use. There's 3 of them so I'll select choose file and this is the exercise files that I have on my desktops if I were to come to desktop exercise files that's the same thing and under sql there's 3 databases here and these are the sql commands that create the databases.

So I'll simply select the first one, and you can see a little preview of it there. If I press the spacebar and I get the quick look, you can see the preview there. This is just the SQL that's used to create this database. And I press open. Now here I want to make sure that I have UTF 8 selected. So, if it's not selected on yours you'll want to select it. And come down here and press the go button and that's imported that database. I'll do it again, press the import button there, choose a file.

And, we'll do the scratch database this time and make sure it says UTF-8 and scroll down and press go. And, one more time, import, and choose a file and choose the world database and select open. Make sure it says UTF-8 and press the go button. And it takes just a moment. And now you see we have these databases over here selected already in the databases on the side there. If I select databases up here you'll see them.

There's the album data base and the world data base, and the. Scratch database. So I can close this window here. And in fact I can quit chrome for now, I'm going to press Cmd+Q to quit that. And now we need to install the sid and the crud application as well. I have 2 finder windows open, one of them is exercise files from my desktop there. And the other one here is under applications, and XAMPP, and HTDOCS and this is where you install your files that'll be served up by the Apache web server that's part of the XAMPP package.

And Sid and Crud are written in PHP and they run under the web server, that's the whole point of the web server here. So all I do is for my exercise files I take both the Sid and the Crud folders. And I want to hold down the option key while I drag them, that'll make copies rather than moving the files. We want to make sure we're working with copies here and I'm going to drag them into this HT docs folder in the other finder window. So, I'll go and there they are, there's. CRUD and there's SID, and now we need to setup the passwords in these so that they work with the database.

Remember, we set up passwords for both of these in a previous movie. So, I'm going to Ctrl+click on SID and open it with my text wrangler text editor application. And I'm going to scroll down, scroll down, scroll down. Right here around line 50, you'll see mysql paths, and right there I'm going to type the password for the sid user that I entered into the database earlier. So here's my password that I've just used for the purpose of these demonstration readings. Do not use this same password, And the mysql user says, sid that's good, so I can save this.

And close it. And then I'm going to do the same thing in CRUD. Come up here to CRUD and open the CRUD application with my TextWrangler app. And then right up here where it has the web user, enter the password for the web user because this one doesn't need all of those special permissions that we used for SID. And so under the web user I'm going to put in that same stupid password, which you will not be using. And I'll go ahead and save that Cmd+s. Quit text wrangler with Cmd+q. And now we can open both of these in the browser.

So I'll open Chrome here, And I'm going to type in local host slash SID in all caps because that was the folder name. slash sid.php just like that, and enter and there is our SID application. I'm going to drag that into my bookmark bar here so I can open that at any time I want. And you'll notice when I say select database it's finding those databases, that actually means that it's working. We can open one of these up. And we can type in some SQL so I selected the album database and I'll type in select star from track semicolon, press go and there's the data from the track table in the album database.

And we can do the same thing in the scratch database, instead of track here we can put in customer. And select go and there's our little customer table from the scratch data base and under world we can do the same thing, we can type in city like that and press go. And there's the city table from the world data base and that all looks good. So our city application is working just great. Now I'm going to come up here and instead of sid I'm going to type in crud.

CRUD, in all caps /crud lower case .PHP, just like this local host/CRUD/crud.PHP and there's our CRUD application and you can see it's getting the data from the database there. It's looking just great, I can open one of these up and I can see the tracks, say Done. So this is working great. Now I'm going to drag this here into my bookmark bar as well. So now I have SID and I have CRUD, and both of those applications are working.

So now that you've successfully installed and they are working, you have everything that you need in order to follow along with the extra exercises in this course, So let's get started.

Show transcript

This video is part of

Image for MySQL Essential Training
MySQL Essential Training

60 video lessons · 6534 viewers

Bill Weinman

Expand all | Collapse all
  1. 4m 22s
    1. Welcome
      1m 3s
    2. Using the exercise files
      1m 31s
    3. What is MySQL?
      1m 48s
  2. 45m 37s
    1. Installation overview
      3m 16s
    2. Installing XAMPP on Windows
      5m 55s
    3. Installing XAMPP on the Mac
      6m 38s
    4. Setting up MySQL users
      11m 31s
    5. Installing SID on Windows
      5m 43s
    6. Installing SID on the Mac
      6m 6s
    7. Installing time zone support in MySQL on Windows
      6m 28s
  3. 45m 43s
    1. The SELECT statement
      3m 57s
    2. Selecting rows
      4m 57s
    3. Selecting columns
      3m 8s
    4. Sorting results with ORDER BY
      2m 58s
    5. Filtering results with WHERE
      3m 52s
    6. Filtering results with LIKE and IN
      3m 41s
    7. Filtering results with regular expressions
      8m 21s
    8. Inserting rows
      4m 9s
    9. Updating rows
      2m 21s
    10. Deleting rows
      2m 25s
    11. Literal strings
      3m 12s
    12. Understanding NULL
      2m 42s
  4. 41m 47s
    1. Creating a database
      4m 30s
    2. Creating a table
      7m 18s
    3. Creating indexes
      6m 8s
    4. Controlling column behavior with constraints
      4m 46s
    5. Creating an ID column
      6m 58s
    6. Using foreign key constraints
      7m 58s
    7. Altering a table
      4m 9s
  5. 28m 56s
    1. What are data types?
      4m 1s
    2. Numeric types
      5m 21s
    3. String types
      2m 58s
    4. Date and time types
      7m 2s
    5. Bit type
      2m 26s
    6. Boolean values
      2m 15s
    7. Enumeration types
      4m 53s
  6. 32m 34s
    1. String functions
      6m 57s
    2. Numeric functions
      6m 2s
    3. Date and time functions
      4m 12s
    4. Time zones in MySQL
      3m 37s
    5. Formatting dates
      1m 51s
    6. Aggregate functions
      5m 45s
    7. Flow control with CASE
      4m 10s
  7. 7m 6s
    1. Maintaining database integrity with transactions
      4m 46s
    2. Using transactions for performance
      2m 20s
  8. 16m 49s
    1. Updating a table with a trigger
      5m 11s
    2. Preventing automatic updates with a trigger
      7m 29s
    3. Logging transactions with a trigger
      4m 9s
  9. 14m 11s
    1. Creating a simple subselect
      3m 23s
    2. Searching within a result set
      3m 53s
    3. Creating a view
      3m 32s
    4. Creating a joined view
      3m 23s
  10. 12m 26s
    1. Understanding MySQL stored routines
      2m 0s
    2. Creating a stored function
      4m 34s
    3. Creating a stored procedure
      5m 52s
  11. 14m 4s
    1. The multi-platform PDO interface
      3m 44s
    2. Executing the SQL
      4m 8s
    3. Implementing auto-increment IDs
      2m 3s
    4. Using a stored funciton
      4m 9s
  12. 1m 3s
    1. Goodbye
      1m 3s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.

Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.

Mark all as unwatched Cancel


You have completed MySQL Essential Training.

Return to your organization's learning portal to continue training, or close this page.

Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?


Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.