6

I apologize for the extremely noobish quesetion, though I could not understand the answer provided here: Where is SQLite database stored on disk?. When creating a table within the SQLite3 shell via these commands as suggested here (Bulk load data into sqlite?):

 sqlite3 myDatabase
 create table myTable (a, b, c);
 .separator ','
 .import  myFile  myTable

I was not able to determine where "myDatabase" is actually saved to. Could someone please help me understand which folder it is typically saved to on a Mac, or how I could specify a folder to save it to.

Thanks so much for your help and patience

1
  • It is saved to the "current working directory" (unless other path information is supplied in the filename). This should be the directory you were in the shell which launched sqlite3. See "cd", "cwd" and "ls" commands. Commented Jul 22, 2013 at 22:17

1 Answer 1

7

This will create the SQLite database where your terminal window currently is, which is usually your user profile folder:

enter image description here

You can go to that folder by going to :

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.