Dbquery.exe: Difference between revisions
From OuroDev
Created page with "An application for sending commands to the dbserver. Usage: bin\dbquery.exe -''query'' __TOC__ == Sample Commands == ===Exporting and Importing a character=== bin\dbquery..." |
mNo edit summary |
||
Line 1: | Line 1: | ||
An application for sending commands to the dbserver. | An application for sending commands to the dbserver. | ||
Usage: bin\dbquery.exe | Usage: bin\dbquery.exe ''[arguments]'' | ||
__TOC__ | __TOC__ | ||
== 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: Use loose files on the filesystem only; ignores pigg files. | |||
* -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 == | == Sample Commands == | ||
Line 10: | Line 32: | ||
bin\dbquery.exe -getcharacter "Name">file.txt | bin\dbquery.exe -getcharacter "Name">file.txt | ||
bin\dbquery.exe -putcharacter 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 |
Revision as of 11:10, 30 April 2019
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: Use loose files on the filesystem only; ignores pigg files.
- -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