4

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.

6
  • Is rails console working fine ? Commented Nov 20, 2012 at 16:50
  • Yep, rails console is working. Commented Nov 20, 2012 at 16:56
  • Do you have sqlite3 installed on the computer? To test this you should be able to just go to your command line and type sqlite3 and it should load you into the sqlite> prompt Commented Nov 20, 2012 at 16:59
  • 1
    It looks like you do not have the sqlite3 command installed ? could you give use your operating system details ? Commented Nov 20, 2012 at 17:01
  • 1
    Ha, how silly of me. You're right, I didn't have sqlite3 installed. Installed it and worked. Thanks! Commented Nov 20, 2012 at 17:03

1 Answer 1

5

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.

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.