peewee tries to hard to connect to a data store
Where are you using sqlite3 been mentioned in your code example?
On Jul 22, 2015 11:08 PM, "Daniel Mead" notifications@github.com wrote:

> I've just had a problem were i didn't have MySQLdb installed, so peewee
> failed over to sqlite3
> 
> this was really annoying because it happened silently and without warning.
> 
> im using a statement like this to connect
> 
> db = MySQLDatabase('somedatabase', host='127.0.0.1', port=3306,
> user='user', passwd='pass')
> 
> —
> Reply to this email directly or view it on GitHub
> https://github.com/coleifer/peewee/issues/667.
 thats the point. i'm not. peewee is defaulting to write to a file called "peewee.db" every time.
 Peewee will not do this silently. Can you share your model definitions? I'm wondering if you neglected to set the db for your models.
 ``` python
from myproject import database

class BaseModel(Model):
  class Meta:
      db = database
```

i'm also using arnold to run table creation stuff, if that matters to you
 Peewee raises an exception on not installing pymysql and MySQLdb! Which
version are you using?
On Jul 22, 2015 11:13 PM, "Daniel Mead" notifications@github.com wrote:

> thats the point. i'm not. peewee is defaulting to write to a file called
> "peewee.db" every time.
> 
> —
> Reply to this email directly or view it on GitHub
> https://github.com/coleifer/peewee/issues/667#issuecomment-123822485.
 i have both installed. actually.
 Pay attention, is your code running correctly? Any old edition of code
cached and run? Can you paste your file content and describe a little about
your process of run code?
On Jul 22, 2015 11:32 PM, "Daniel Mead" notifications@github.com wrote:

> i have both installed. actually.
> 
> —
> Reply to this email directly or view it on GitHub
> https://github.com/coleifer/peewee/issues/667#issuecomment-123828265.
 Yeah, basically this doesn't add up. Peewee won't silently "fall back" to SQLite if you're trying to use MySQL. And if you don't have a mysql driver installed and try to use MySQLDatabase, it will raise an error.
 my bad.

the ref i had inside the base model was bad. it was actually falling back to sqlite but it was my fault.

I've just had a problem were i didn't have MySQLdb installed, so peewee failed over to sqlite3

this was really annoying because it happened silently and without warning.

im using a statement like this to connect

`db = MySQLDatabase('somedatabase', host='127.0.0.1', port=3306, user='user', passwd='pass')`
