Hi
Suppose I wanted to connect to a database like so:
Which will connect to the database "cms" regardless of the fact that it's a Login query (normally auth)
Suppose I wanted to use this on a completely different hosted database that isn't defined in the worldserver.conf, is such a thing even possible?
Where would I define the Hostname, user, pass, etc?
Suppose I wanted to connect to a database like so:
Code:
LoginDatabase.PQuery("SELECT `vp`, `dp` FROM `cms`.`account_data` where `id`=%u", player->GetSession()->GetAccountId());
Which will connect to the database "cms" regardless of the fact that it's a Login query (normally auth)
Suppose I wanted to use this on a completely different hosted database that isn't defined in the worldserver.conf, is such a thing even possible?
Where would I define the Hostname, user, pass, etc?