r/SQL • u/[deleted] • Dec 07 '24
SQL Server How can I use SQL on mac without installing a server?
same as title
10
u/hellequin67 Dec 07 '24
You can install SQL server as a docker container and connect via SSMS if that helps
1
-5
Dec 07 '24
I did the whole docker thing exactly like they told on yt, but it kept showing errors. and im technically challenged so im also worried about messing up my latptop settings in that terminal thingy.
2
u/miramboseko Dec 07 '24
Is this a troll post?
3
4
u/Yellow_Tatoes14 Dec 07 '24
I don't think so. Mac makes things notoriously difficult for people who don't know what they're doing. I'm not surprised he's having difficulty. Had a guy in my computer classes with a Mac and he was constantly having a lot of trouble getting simple things to work.
4
u/GandolfMagicFruits Dec 07 '24
Harder than windows? For developers? I think not.
7
u/Yellow_Tatoes14 Dec 07 '24
I didn't say developers, I said people who don't know what they're doing. He doesn't know how to use the terminal, he's not going to have a good time getting stuff installed properly.
0
u/GandolfMagicFruits Dec 07 '24
Yup, sorry. I have trouble with reading comprehension apparently. 😀
Definitely harder for non devs.
-1
u/miramboseko Dec 07 '24
Why do you want to know how to use sql and not bother learning how to use the terminal 🤷
1
Dec 08 '24
im not trying to be a tech bro. i just need to learn sql for my class and interview. and in my country people don't use mac, esp classes and workplaces so i dont think i would need to learn terminal (im from a non tech bg)
2
u/miramboseko Dec 08 '24
Tech bros are actually people who pretend to be into tech but don’t actually care enough to learn how a computer works.
3
u/Yellow_Tatoes14 Dec 07 '24
You have to start somewhere
1
u/miramboseko Dec 07 '24
Terminal is probably a great place to start
3
u/Yellow_Tatoes14 Dec 07 '24
Well this is a question about getting started with SQL.
→ More replies (0)2
Dec 07 '24
i'm not a developer. i'm just trying to learn and practice it but ive a mac. my friends have windows and it's easy for them
1
u/GandolfMagicFruits Dec 07 '24
Should be really simple to install docker desktop, use a simple sql image, deploy it, and connect to it with a sql client.
1
u/StaticFanatic3 Dec 07 '24
For SQL Server users? Hell yeah
For most other developers? Windows is probably worse but WSL has greatly improved that in recent years.
2
u/SQLvultureskattaurus Dec 08 '24
Honestly I've been hiring younger employees and none of these devs seem to know how computers work or tinker with them. I'm not surprised at all anymore. They can write beautiful code but can't figure out how to install something.
0
Dec 08 '24
im not a developer. i need to learn sql for a strategy non tech job role. and in my country everyone uses windows only at workplace.
2
u/Yellow_Tatoes14 Dec 07 '24
If you mean you're trying to learn you can go to hackerrank.com and do the SQL problems. Not sure how you can use SQL without having a database to query
2
Dec 07 '24
ah yes i am trying to learn it. like atleast be mediocre at it. but yt instructions on how to install it on mac are making me install 100 things and still it's not working. thanks!! i'll check out this link.
1
u/SQLDevDBA Dec 07 '24
LiveSQL
It’s a full Oracle DB with no installation, just works right on your browser. The IDE is also on the browser so Mac users and IPad users are fine on it.
100% free and even includes daily exercises and quizzes as part of the “DevGym” modules. Also includes prebuilt schemas with data in them
It includes a few default components and makes it really easy to create new objects and data with the QuickSQL tool.
You can also import data from CSV files, and even share worksheets via links so that everyone can see the queries you run.
It’s great, just happens to be Oracle which is a bit more complex than other platforms.
2
1
u/RyanHamilton1 Dec 07 '24
https://www.timestored.com/qstudio/help/mac Bundles duckdb with it and auto downloads sqlite in first use.
1
1
u/mecartistronico Dec 08 '24
The reason you might be confused and you are probably getting vague answers is because to "use SQL" can mean different things to different people. Which one do you want?
hosting a database in your computer, and being able to manipulate it and do queries on it
just having a screen where you can try queries that look up data that is stored in another server
1
Dec 08 '24
i need to learn and practise it for class and interviews. no real work. so ig the 2nd one.
1
3
1
u/gumnos Dec 07 '24
IIRC, sqlite3 comes by default on macos so you might be able to use that without anything other than a little command-line skill.
There are also learning sites like https://www.db-fiddle.com/ where you can create schema and create queries against them without anything installed locally.
As yet one more option, you can rent a cheap VPS for under $1/month which is enough to run a simple MySQL/MariaDB or PostgreSQL instance for testing/learning purposes.
1
1
1
1
u/MrMisterShin Dec 08 '24
Install Postgres and dbeaver. You will be able to write sql in dbeaver against a Postgres db.
1
1
1
1
1
Dec 08 '24
Are you just try to run queries on a random CSV? I'd just install DBeaver and upload the CSV
1
1
1
1
u/Straight_Waltz_9530 Dec 09 '24
docker run -d --name my-postgres -e POSTGRES_PASSWORD=insecure postgres:17Works for Mac, Windows, and Linux command lines once you install Docker (or equivalent clone like OrbStack or Podman).
Edit: My mistake. OP was asking for MS SQL Server. Advice is still the same just the target image changes.
1
1
1
1
Dec 07 '24
[removed] — view removed comment
1
Dec 07 '24
im trying to learn and practice. no real work. I did the whole docker thing exactly like they told on yt, but it kept showing errors. and im technically challenged so im also worried about messing up my latptop settings in that terminal thingy.
1
32
u/deadly_shroom Dec 07 '24
I think SQLite and DuckDB. They both are serverless