Dbconsole exit

Problem
You are using the script/dbconsole utility in Rails (with sqlite), and you want to exit the application but the usual keystrokes/commands like quit, exit, Ctrl + C don’t work.

Solution
You have to use the following keyword, paying particular notice in the leading dot (.exit):

.exit

2 thoughts on “Dbconsole exit

  1. I accidentally left out the . on .exit and got into some text entry mode that I can’t escape from. Any hints?

  2. Dave,

    Just type any text (ie test) and then ; (test;).
    That will get you to the prompt again, where you can type .exit to quit.

Leave a Reply