dbaccess 0.22a
==============

Installing: 
- unpack the contents of this archive along with the dbaccess folder to your
  pol/pkg/

- recompile the package with your version of ecompile
- rename dbproxy.conf.default to dbproxy.conf
- edit dbproxy.conf with notepad(windows) or gedit(linux):

  DB_HOST = 'YOUR_MYSQL_SERVER_ADDRESS_HERE'
  DB_NAME = 'YOUR_DATABASE_NAME' ## within mySQL
  DB_USER = 'YOUR_DB_USER_NAME' ## with full acess to the above db
  DB_PASSWD = 'YOUR_DB_PASSWD'

  HOST = 'YOUR_POL_SERVER_IP' ## usually 127.0.0.1 if on the same machine
  PORT = 'dbaccess_AUX_port' ## you don't need to change this one

- save your file (dbproxy.conf)
- start pol server
- after it fully loads, start dbproxy.py

in your script use:

  include ":dbaccess:zhsql";

You can try this simple script to check if your db setup is working
properly:

  use uo;
  include ":dbaccess:zhsql";
  
  program test_sql( user )
    // not that this should only be used once ..
    // to create tables ..
 	ZhSQLCreateTables(); 

    ZhSQLSetProp( user, "testsql", "Hello, world .." );
	print(ZhSQLGetProp( user, "testsql"));
  endprogram

