title: Accessing remote MySQL database with peewee
body: <p>I'm trying to connect to a MySQL database on Amazon's RDS using peewee and I can't get it to work. I'm new to databases so I'm probably doing something stupid, but this is what I'm trying:</p>
  
  <pre><code>import peewee as pw
  
  myDB = pw.MySQLDatabase(host="mydb.crhauek3cxfw.us-west-2.rds.amazonaws.com",port=3306,user="user",passwd="password",db="mydb")
  
  
  class MySQLModel(Model):
      """A base model that will use our MySQL database"""
      class Meta:
          database = myDB
  
  class User(MySQLModel):
      username = CharField()
  
  myDB.connect()
  </code></pre>
  
  <p>it hangs up on the second line, saying <code>__init__() takes at least 2 arguments (1 given)</code></p>
  
  <p>What am I missing? Why is it saying I'm only giving it one argument when I'm giving it five?</p>
  
  <p>Thanks a lot, Alex</p>