mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 14:37:44 +00:00
Add missing --pass param
This commit is contained in:
parent
63ecd9a3c9
commit
73bce03040
1 changed files with 12 additions and 9 deletions
|
@ -102,6 +102,7 @@ int main( int32_t argc, char* argv[] )
|
|||
std::string user;
|
||||
std::string host;
|
||||
std::string database;
|
||||
std::string pass;
|
||||
|
||||
g_log.setLogPath( "log/SapphireDbm" );
|
||||
g_log.init();
|
||||
|
@ -129,6 +130,8 @@ int main( int32_t argc, char* argv[] )
|
|||
host = val;
|
||||
else if( arg == "database" )
|
||||
database = val;
|
||||
else if( arg == "pass" )
|
||||
pass = val;
|
||||
else if( arg == "sfile" )
|
||||
sFile = val;
|
||||
else if( arg == "ifile" )
|
||||
|
@ -146,7 +149,7 @@ int main( int32_t argc, char* argv[] )
|
|||
return 0;
|
||||
}
|
||||
|
||||
auto dbm = DbManager( host, database, user, "", 3306 );
|
||||
auto dbm = DbManager( host, database, user, pass, 3306 );
|
||||
|
||||
if( !sFile.empty() && !iFile.empty() )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue