Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Databases

Andras Andras
Andras Andras
8,230 Points

Do we need to create "env" environment to run Sqlite? Can we do it without that and just run?

Do we need to create "env" environment to run Sqlite? Can we do it without that and just run?

1 Answer

Where are you trying to run sqlite? I'm running sqlite3 on OSX Darwin without any env configuration

SQLite version 3.39.4 2022-09-07 20:51:41
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite> 

This is using the default settings for a sqlite database though, so it's connecting to the one running on my laptop with the default user. If you wanted to connect to a different database as a different user you would have to set environment configuration.