DB & SQL - SQLite3::CantOpenException

Posted by Marco

8 months ago

0

sql sqlite3 db

Error message:

unable to open database file (SQLite3::CantOpenException) from ...


 If you are getting error 'unable to open database file SQLite3::CantOpenException ' when trying to access the db use:

DB = SQLite3::Database.new(File.expand_path("db/jukebox.sqlite", __dir__))