Here I’ll show you how to get SQL Server up and running on your Mac in less than half an hour. And the best part is, you’ll have SQL Server running locally without needing any virtualization software.
Prior to SQL Server 2017, if you wanted to run SQL Server on your Mac, you first had to create a virtual machine (using VirtualBox, Parallels Desktop, VMware Fusion, or Bootcamp), then install Windows onto that VM, then finally SQL Server. This is still a valid option depending on your requirements (here’s how to install SQL Server on a Mac with VirtualBox if you’d like to try that method).
Starting with SQL Server 2017, you can now install SQL Server directly on to a Linux machine. And because macOS is Unix based (and Linux is Unix based), you can run SQL Server for Linux on your Mac. The way to do this is to run SQL Server on Docker.
So let’s go ahead and install Docker. Then we’ll download and install SQL Server.
Mac Os X Server 10.5 Download
Os X Server Download
- Aug 23, 2009 Mac OS X Snow Leopard Server by Apple. Publication date 2009-08-23 Topics macosx, osx, macos. OSX Server 10.6 - Admin Tools.dmg download.
- Mac os 10 6 free download - Apple Mac OS Update 8.6, Mac OS X Server Update, Apple Mac OS Update 7.6.1, and many more programs. Download Mac OS X Server 10.6 (Snow Leopard) for Mac. Apple mac os x 10.6 snow leopard server.iso (6862.8 MiB / 7196.16 MB) / ISO image. MacOS Server brings even more power to your business, home office, or school.
- Mac os 10 6 free download - Apple Mac OS Update 8.6, Mac OS X Server Update, Apple Mac OS Update 7.6.1, and many more programs. Download Mac OS X Server 10.6 (Snow Leopard) for Mac. Apple mac os x 10.6 snow leopard server.iso (6862.8 MiB / 7196.16 MB) / ISO image. MacOS Server brings even more power to your business, home office, or school.
MacOS Server makes it easy to configure and monitor Mac, iPhone, iPad, and Apple TV devices and network storage volumes. Distribution of institution licensed apps and books purchased from the Volume Purchase Program to users or devices. Install Software Updates on devices running iOS 12 and mac OS 10.14.
Install Docker
Download the (free) Docker Community Edition for Mac (unless you’ve already got it installed on your system). This will enable you to run SQL Server from within a Docker container.
To download, visit the Docker CE for Mac download page and click Get Docker.
To install, double-click on the .dmg file and then drag the Docker.app icon to your Application folder.
What is Docker?
Docker is a platform that enables software to run in its own isolated environment. SQL Server (from 2017) can be run on Docker in its own isolated container. Once Docker is installed, you simply download — or “pull” — the SQL Server on Linux Docker Image to your Mac, then run it as a Docker container. This container is an isolated environment that contains everything SQL Server needs to run.
Launch Docker
Launch Docker the same way you’d launch any other application (eg, via the Applications folder, the Launchpad, etc).
When you open Docker, you might be prompted for your password so that Docker can install its networking components and links to the Docker apps. Go ahead and provide your password, as Docker needs this to run.
Increase the Memory (optional)
By default, Docker will have 2GB of memory allocated to it. SQL Server needs at least 2GB. However, it won’t hurt to increase it if you can.
In my case, I increased it to 4GB.
To do this, select Preferences from the little Docker icon in the top menu:
Then finish off by clicking Apply & Restart
Download SQL Server
Now that Docker is installed, we can download and install SQL Server for Linux.
Open a Terminal window and run the following command.
This downloads the latest SQL Server 2019 for Linux Docker image to your computer.
You can also check for the latest container version on the Docker website if you wish.
Launch the Docker Image
Run the following command to launch an instance of the Docker image you just downloaded:
But of course, use your own name and password. Also, if you downloaded a different Docker image, replace
mcr.microsoft.com/mssql/server:2019-latest
with the one you downloaded.Here’s an explanation of the parameters:
-d
This optional parameter launches the Docker container in daemon mode. This means that it runs in the background and doesn’t need its own Terminal window open. You can omit this parameter to have the container run in its own Terminal window. --name sql_server_demo
Another optional parameter. This parameter allows you to name the container. This can be handy when stopping and starting your container from the Terminal. -e 'ACCEPT_EULA=Y'
The Y
shows that you agree with the EULA (End User Licence Agreement). This is required in order to have SQL Server for Linux run on your Mac.-e 'SA_PASSWORD=reallyStrongPwd123'
Required parameter that sets the sa
database password.-p 1433:1433
This maps the local port 1433 to port 1433 on the container. This is the default TCP port that SQL Server uses to listen for connections. mcr.microsoft.com/mssql/server:2019-latest
This tells Docker which image to use. If you downloaded a different one, use it instead. Password Strength
If you get the following error at this step, try again, but with a stronger password.
I received this error when using
reallyStrongPwd
as the password (but of course, it’s not a really strong password!). I was able to overcome this by adding some numbers to the end. However, if it wasn’t just a demo I’d definitely make it stronger than a few dictionary words and numbers.Check the Docker container (optional)
You can type the following command to check that the Docker container is running.
If it’s up and running, it should return something like this:
Install sql-cli (unless already installed)
Run the following command to install the sql-cli command line tool. This tool allows you to run queries and other commands against your SQL Server instance. Download jurassic park operation genesis.
This assumes you have NodeJs installed. If you don’t, download it from Nodejs.org first. Installing NodeJs will automatically install npm which is what we use in this command to install sql-cli.
Permissions Error?
If you get an error, and part of it reads something like
Please try running this command again as root/Administrator
, try again, but this time prependsudo
to your command: How to do a pivot chart in excel for mac.Connect to SQL Server
Concertmate 950 manual. Now that sql-cli is installed, we can start working with SQL Server via the Terminal window on our Mac.
Connect to SQL Server using the
mssql
command, followed by the username and password parameters.You should see something like this:
This means you’ve successfully connected to your instance of SQL Server.
Run a Quick Test
Run a quick test to check that SQL Server is up and running and you can query it.
For example, you can run the following command to see which version of SQL Server your running:
If it’s running, you should see something like this (but of course, this will depend on which version you’re running):
If you see a message like this, congratulations — SQL Server is now up and running on your Mac!
You can now go ahead and run SQL queries against SQL Server.
See my free SQL Tutorial for Beginners to get started with writing simple queries against SQL Server.
A SQL Server GUI for your Mac – Azure Data Studio
Azure Data Studio (formerly SQL Operations Studio) is a free GUI management tool that you can use to manage SQL Server on your Mac. You can use it to create and manage databases, write queries, backup and restore databases, and more.
Azure Data Studio is available on Windows, Mac and Linux.
Here are some articles/tutorials I’ve written for Azure Data Studio:
Another Free SQL Server GUI – DBeaver
Another SQL Server GUI tool that you can use on your Mac (and Windows/Linux/Solaris) is DBeaver.
DBeaver is a free, open source database management tool that can be used on most database management systems (such as MySQL, PostgreSQL, MariaDB, SQLite, Oracle, DB2, SQL Server, Sybase, Microsoft Access, Teradata, Firebird, Derby, and more).
I wrote a little introduction to DBeaver, or you can go straight to the DBeaver download page and try it out with your new SQL Server installation.
Limitations of SQL Server for Linux/Mac
SQL Server for Linux does have some limitations when compared to the Windows editions (although this could change over time). The Linux release doesn’t include many of the extra services that are available in the Windows release, such as Analysis Services, Reporting Services, etc. Here’s a list of what’s available and what’s not on SQL Server 2017 for Linux and here’s Microsoft’s list of Editions and supported features of SQL Server 2019 on Linux.
Another limitation is that SQL Server Management Studio is not available on Mac or Linux. SSMS a full-blown GUI management for SQL Server, and it provides many more features than Azure Data Studio and DBeaver (at least at the time of writing). You can still use SSMS on a Windows machine to connect to SQL Server on a Linux or Mac machine, but you just can’t install it locally on the Linux or Mac machine.
If you need any of the features not supported in SQL Server for Linux, you’ll need SQL Server for Windows. However, you can still run SQL Server for Windows on your Mac by using virtualization software. Here’s how to install SQL Server for Windows on a Mac using VirtualBox.
Article ID = 165Article Title = How To Obtain/Download macOS Server for macOS 10.12 Sierra
Article Author(s) = Graham Needham (BH)
Article Created On = 13th June 2016
Article Last Updated = 30th January 2020
Article URL = https://www.macstrategy.com/article.php?165
Article Brief Description:
Details of how to obtain/download macOS Server 5.2
How To Obtain/Purchase/Download macOS Server for macOS 10.12 Sierra
WARNING: As of September 2018 Apple has gutted macOS Server and removed most/all of the useful Server features!macOS Server 5.2-5.3.1 was replaced with macOS Server 5.4 on the 25th September 2017. However, you can still purchase/download macOS Server 5.3.1 from the Mac App Store:
From The Mac App Store - If You Have NOT Purchased macOS Server Or OS X Server Previously
You need to install the latest version of macOS (currently macOS 11 Big Sur) and purchase the latest version of macOS Server (currently v5.11.1) first.- Download and install macOS 11 Big Sur on a compatible computer:
- Use a different computer to the one that you currently have an earlier macOS / OS X installation on (if you have one).
- Install macOS 11 Big Sur to a spare internal storage volume (if you have one).
- Install macOS 11 Big Sur to a spare partition/volume on your boot drive (if you have one).
- Install macOS 11 Big Sur to an external storage device e.g. hard disk, SSD, or even a USB stick.
- Once macOS 11 Big Sur is installed and you are booted from it, make sure you are connected to the internet by using a web browser to go to Apple.
- Go to the latest version of macOS Server (5.11.1) on the Mac App Store .
- This should open the Mac App Store application (if it doesn't click the 'View in Mac App Store' button).
- In the Mac App Store application click the 'Buy' button.
- Enter your Apple ID and password if you are not already signed in to the Mac App Store.
- The macOS Server 5.11.1 software should start to download (an icon will appear in your Dock with a progress bar).
- When the macOS Server application has downloaded it may automatically launch and ask you to continue.
- If it does, do not click Continue yet.
- Quit the macOS Server installer application (yes, quit it).
- Now you can go to your older macOS / OS X installation and download/install the earlier version of macOS / OS X Server - see the instructions below.
- If you used a computer/storage device that you do not own, you should securely erase it/sign out of the Mac App Store + delete macOS Server (from the Applications folder), after successfully installing the older macOS Server version on your own computer using the instructions below.
From The Mac App Store - If You Have Purchased macOS / OS X Server Previously
These instructions will only work if you have already purchased macOS / OS X Server. If you haven't already purchased macOS / OS X Server, please go to the instructions above first.- To be safe:
- Restart your computer.
- Quit all running applications.
- Disconnect all external devices except for monitor, keyboard, mouse and required storage volumes.
- Eject all optical discs.
- Unmount all servers.
- Make sure you are connected to the internet by using a web browser to go to Apple.
- Go to macOS Server on the Mac App Store .
- This should open the Mac App Store application (if it doesn't click the 'View in Mac App Store' button).
- In the Mac App Store application click the 'Buy', 'Get', 'Download' or 'Install' button. NOTE: 'Buy' usually means you never purchased this item on the Mac App Store before and there will be a charge. 'Get' usually means you never purchased this item on the Mac App Store before and there will be no charge. 'Download' usually means you have purchased this item on the Mac App Store before and you can now download it. 'Install' usually means you have purchased this item on the Mac App Store before and already downloaded - the Mac App Store has found it on one of your currently connected storage volumes - be careful here as Install may actually install a different/incorrect version.
- Enter your Apple ID and password if you are not already signed in to the Mac App Store.
- The Mac App Store will warn you that the current version requires a later version of macOS but you can download an older version that is compatible with macOS 10.12 - click 'Download'.
- The macOS Server software should start to download (an icon will appear in your Dock with a progress bar).
- When the macOS Server application has downloaded it may automatically launch and ask you to continue.
- If it does, do not click Continue yet.
- Quit the macOS Server installer application (yes, quit it).
- Go to Macintosh HD > Applications and make a copy of/backup the 'Server' item e.g. zip it and/or copy it to another disk or a DVD-R
- Go to Macintosh HD > Applications and open 'Server'.
- Click Continue, agree to the EULA and then click Continue to download and install the rest of the Server software and finish the configuration.
- Follow the on screen instructions.
- Once macOS Server has installed you should go to Apple menu > App Store… > Updates > and update all other Apple software (An Apple ID may be required for some updates).
Article Keywords: macOS 1012 Sierra Server obtain buy purchase macOS Server 5.2 OSXserver52
This article is © MacStrategy » a trading name of Burning Helix. As an Amazon Associate, employees of MacStrategy's holding company (Burning Helix sro) may earn from qualifying purchases. Apple, the Apple logo, and Mac are trademarks of Apple Inc., registered in the U.S. and other countries. App Store is a service mark of Apple Inc.
All proceeds go directly to MacStrategy / Burning Helix to help fund this web site.
All proceeds go directly to MacStrategy / Burning Helix to help fund this web site.
Go to this
web page
to donate to us.