How to install MS SQL in Mac OS
by Arnav Singhal on unsplash

How to install MS SQL in Mac OS

This article is a small attempt to explain how we can install MS SQL Server on Mac OS with the help of Docker.

Note: Below are steps, I have followed on MacBook Pro (M1)

Step 1: Download Docker Desktop and install it on your system

No alt text provided for this image


Step 2: Download the Microsoft SQL Server image to Docker using terminal

Note: System will prompt for user password as sudo command is used.

sudo docker pull mcr.microsoft.com/mssql/server:2019-latest        
No alt text provided for this image

Verify the above step by opening the Docker Desktop application, we should see the above-downloaded image

No alt text provided for this image

Step 3: Run the Container by running the below command in terminal

docker run -e "ACCEPT_EULA=1" -e "MSSQL_SA_PASSWORD=<<Provide a strong password>>" -e "MSSQL_PID=Developer" -e "MSSQL_USER=SA" -p 1433:1433 -d --name=<<Provide the name of Container>> mcr.microsoft.com/azure-sql-edge        
No alt text provided for this image

Step 4: Download and Install GUI to connect to MS SQL Server

Download Azure Data Studio from the Microsoft website and follow the steps mentioned on the website. Link to Download

Step 5: Launch Azure Data Studio and connect to the server created in Step 3

No alt text provided for this image

Provide the below details to connect

  • Server: localhost
  • User name: sa (or as you provided in Step 3)
  • Password: As you provided in Step 3

No alt text provided for this image


Hurray!!! you should be able to connect to MS SQL database. In a similar way, you can install and give a try to different databases.

Happy Learning!!!

要查看或添加评论,请登录

Anoop Nag的更多文章

  • Business Problem Statement Framework

    Business Problem Statement Framework

    A well-defined/articulated problem statement is critical to helping a team realize a centralized question that needs to…

    1 条评论
  • Learning by Doing!

    Learning by Doing!

    ?? Excited to Share: My Journey with LlamaIndex & RAG Framework in Python! ?? Just wrapped up an exhilarating dive into…

  • Java Installation on Linux

    Java Installation on Linux

    Step To Install and Setup JAVA Download Oracle Java from Oracle website. Extract the file using command from terminal…

社区洞察

其他会员也浏览了