Dbquery.exe: Difference between revisions
mNo edit summary |
Added table template for the command line arguments. |
||
Line 6: | Line 6: | ||
== Arguments == | == Arguments == | ||
{{CommandLineTable| | |||
{{CLArg|-charactertransfer|See characterTransfer.c for some hilarious surprises!}} | |||
{{CLArg|-cookie|}} | |||
{{CLArg|-db <host>|Specifies a remote host the DBServer is running on. Accepts DNS name or IP address. Default: localhost.}} | |||
{{CLArg|-dbquery <query>|Implies {{ms|-noencrypt}}, {{ms|-nopigs}} and {{ms|-silent}}. See list of [[DBquery.exe\-dbquery_Arguments|arguments]].}} | |||
{{CLArg|-getcharacter "<name>"|Gets a character from the DBServer and outputs it to stdout. Implies {{ms|-noencrypt}}, {{ms|-nopigs}} and {{ms|-silent}}.}} | |||
{{CLArg|-nodebug|}} | |||
{{CLArg|-noencrypt|Do not use encryption}} | |||
{{CLArg|-nopigs|Don't load any pigg files; use only loose files on the filesystem when necessary.}} | |||
{{CLArg|-notimeout|}} | |||
{{CLArg|-packetdebug|}} | |||
{{CLArg|-putcharacter <file>|Puts a character into the database via DBServer. Implies {{ms|-noencrypt}}, {{ms|-nopigs}} and {{ms|-silent}}.}} | |||
{{CLArg|-querysgleaders <string>|Probably queries to display the list of super group leaders when the supergroup is loaded.}} | |||
{{CLArg|-restorecharacter "<name>"|Probably restores a character from backup?}} | |||
{{CLArg|-silent|Produces cleaner output}} | |||
{{CLArg|-tcp [number]|Specify TCP port when connecting to DBServer, default 6997}} | |||
{{CLArg|-templates|}} | |||
{{CLArg|-tsr2|}} | |||
{{CLArg|-tsr3|}} | |||
{{CLArg|-udp [number]|Specify UDP port when connecting to DBServer, default 6997}} | |||
{{CLArg|-verbose|}} | |||
}} | |||
== Sample Commands == | == Sample Commands == |
Revision as of 12:32, 30 April 2019
An application for sending commands to the DBServer. DBServer listens on port 6997 by default.
Usage: bin\dbquery.exe [arguments]
Arguments
|
See characterTransfer.c for some hilarious surprises! |
|
|
|
Specifies a remote host the DBServer is running on. Accepts DNS name or IP address. Default: localhost. |
|
Implies |
|
Gets a character from the DBServer and outputs it to stdout. Implies |
|
|
|
Do not use encryption |
|
Don't load any pigg files; use only loose files on the filesystem when necessary. |
|
|
|
|
|
Puts a character into the database via DBServer. Implies |
|
Probably queries to display the list of super group leaders when the supergroup is loaded. |
|
Probably restores a character from backup? |
|
Produces cleaner output |
|
Specify TCP port when connecting to DBServer, default 6997 |
|
|
|
|
|
|
|
Specify UDP port when connecting to DBServer, default 6997 |
|
|
Sample Commands
Exporting and Importing a character
dbquery.exe -getcharacter "Name">file.txt dbquery.exe -putcharacter file.txt
Retrieving a character from a remote DBServer
dbquery -db 10.5.0.144 -getcharacter "Aleena"
DBQuery Entry Point
https://git.ourodev.com/CoX/Source/src/branch/develop/MapServer/svr/dbquery_init.c