Are you looking to run microsoft sql server on Mac? Then you are at the right place.
I am going to tell you how you can run sql server easily in few minutes.
- First you need to install docker on your system. You can use below link to download the docker on your mac system. https://www.docker.com/products/docker-desktop
- Click on Mac with intel chip or if you have mac with apple chip.
- Once it is downloaded ,run it and install it.
- After installation docker will be start automatically or if it is not start then you can start it manually by searching it in launcher.
- Open your terminal to check if installation happen correctly. Run below command
- Docker -v
- this command will give you docker version like below:
docker pull mcr.microsoft.com/mssql/server:2019-latest
Output:
2019-latest: Pulling from mssql/server
a31c79f4ad: Pull complete
a039b99d1e: Pull complete
1d60c7fae0: Pull complete
b927883ade: Pull complete
120d687cdd: Pull complete
Digest: sha256:3a64da47fb2c8b4d730856b06930999af7ed4eab2d540fae2c7063da7a4fd
Status: Downloaded newer image for mcr.microsoft.com/mssql/server:2019-latest
mcr.microsoft.com/mssql/server:2019-latest
Once everything is downloaded run below command, It will run image in container:
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=Test123" -p 1433:1433 --name sqltest -h sqltest -d mcr.microsoft.com/mssql/server:2019-latest
Output:
842bb946ac6d35bb15e232e526685e416
docker ps
above command will display running containers
Congrats! You have started your container.
docker pull mcr.microsoft.com/azure-sql-edge
docker run --cap-add SYS_PTRACE -e 'ACCEPT_EULA=1' -e 'MSSQL_SA_PASSWORD=Test@123' -p 1433:1433 --name azuresqledge -d mcr.microsoft.com/azure-sql-edge
- Server: localhost,1433
- Database(optional) hit enter
- login: select sql login
- user : sa (which was given in command)
- password: test (which was given in command)
- hit enter and profile will be created.
No comments:
Post a Comment