Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Edit sqlite file from terminal Mac

I can not find any documents where I can open existing sqlite database file that I made from the terminal on Mac. I want to add some additional rows to the existing database. I probably search for the wrong things, so anything that points me in the right direction is much appriciated.

like image 746
LuckyLuke Avatar asked Jun 13 '26 14:06

LuckyLuke


2 Answers

If you want to remain in the Terminal, you can open a sqlite3 database using the command sqlite3 [databasename]. From here, you can select rows or insert new ones using SQL commands. If you prefer a GUI, there are many to choose from, including the free Firefox plugin, sqlite-manager.

like image 89
Greg Glockner Avatar answered Jun 15 '26 05:06

Greg Glockner


Whenever you work with Mac built-in sqlite3 it saves the files in the current folder where your Terminal is and the way you can access them is the reversed story, open sqlite3 while you are at the folder where your database is.

like image 43
Kex Avatar answered Jun 15 '26 03:06

Kex



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!