Skip to content
darvid edited this page Dec 30, 2012 · 3 revisions

Welcome to the Trine wiki!

Quickstart

  1. For those unfamiliar with installing Python packages with pip, follow the Installation guide.

  2. You need to setup a working directory now. This is where all your .yml files go. By default, Trine looks in ~/.trine/ for these files, but you may choose to store them elsewhere (next to your core directory, for example).

  3. Drop a config.yml in your preferred working directory, and enter your database details:

    db:
      type: mysql
      username: trinity
      password: password
      host: localhost
      world_db: world
  4. Start creating schemas for your mall, custom items, or whatever else you need that's going to be database-bound. Once you're done, run trine -w /path/to/working/dir <filename without extension|all> [dml|execute].

    The dml argument outputs the SQL to stdout, while execute naturally executes all queries on the database.