Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

after moving a spatialite-database to another directory, qspatialite says "Can't connect to Database" / Error unable to open database file. Even no project is open or I try to create a new project. In Qgis browser it lists the spatialite-database but says "database does not exist". I scanned all Qgis project files for the according database, but it does not show up.

The questions are:

  • where are these settings stored?
  • how to change these settings to the correct path?
share|improve this question
What operating system are you using? – Simbamangu Jun 20 '12 at 14:25

Either in the [spatialite] section of ~/.config/QuantumGIS/QGIS.conf in Linux/Unix (perhaps also on OSX) or on Windows in the registry HKEY_CURRENT_USER\Software\QuantumGIS\qgis\SpatiaLite\connections (Windows)

share|improve this answer
Thank's a lot this answers my question – adrian Jun 26 '12 at 6:10
On 2.8.2 (Windows) is under HKEY_CURRENT_USER\Software\QGIS\QGIS2\SpatiaLite\connections ... if you delete all connections, qspatialite will remind you of the strange GUI way to make database connections by creating a new Spatialite layer and ignoring the "Replace" warning. – Ben Mearns Oct 30 '15 at 18:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.