title: Laravel sqlite saying the database is "encrypted or is not a database"
body: <p>I have a database file on my computer called testing.sqlite, which contains a copy of me database that I want to use for testing (rather than connecting to my ordinary MySQL production server).</p>
  
  <p>I created an entry in the config/database file in laravel as instructed, setting it to access the sqlite file, and it all look right. But when I try and actually do anything, I get the error message:</p>
  
  <pre><code>[Illuminate\Database\QueryException]                                                                                                                        
  SQLSTATE[HY000]: General error: 26 file is encrypted or is not a database (SQL: select * from sqlite_master where type = 'table' and name = vendor_alerts)
  </code></pre>
  
  <p>I can access the file using <code>sqlite testing.sqlite</code> from the command line, why can't laravel read it?</p>