Dbquery.exe

From OuroDev

An application for sending commands to the dbserver.

Usage: bin\dbquery.exe [arguments]

Arguments

  • -charactertransfer: see characterTransfer.c for some hilarious surprises!
  • -cookie
  • -db [name]: Specifies a different database
  • -dbquery [query]: Executes a query on the DBServer. Implies -noencrypt -nopigs and -silent.
  • -getcharacter "[name]": Gets a character from the DBServer and outputs it to stdout. Implies -noencrypt -nopigs and -silent.
  • -nodebug
  • -noencrypt: Do not use encryption
  • -nopigs: Don't load any pigg files; use only loose files on the filesystem when necessary.
  • -notimeout
  • -packetdebug
  • -putcharacter filename: Puts a character into the database via DBServer. Implies -noencrypt -nopigs and -slient.
  • -querysgleaders "[string]"
  • -restorecharacter
  • -silent: Produces cleaner output
  • -tcp
  • -templates
  • -tsr2
  • -tsr3
  • -udp
  • -verbose

Sample Commands

Exporting and Importing a character

bin\dbquery.exe -getcharacter "Name">file.txt
bin\dbquery.exe -putcharacter file.txt

DBQuery Entry Point

https://git.ourodev.com/CoX/Source/src/branch/develop/MapServer/svr/dbquery_init.c