I’m using Rails in a development environment. I’m trying to run simple INSERT commands via the command line, but I can’t seem to connect to the SQLite database. Other database-related commands are working fine (e.g. rake db:migrate). I’m using the following command:
rails dbconsole
But I’m getting the following error:
Couldn't find database client: sqlite3. Check your $PATH and try again.
I’m still learning Rails and I’m hoping you rails Rails experts out there will be able to spot the issue.
Sqlite3 isn’t installed on your computer, go to the sqlite site and install the command line utility according to whichever operating system your using.