Changed to use DB defines from zmcfg.h
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@15 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
3c59a9a34d
commit
8c40dac6e8
|
@ -48,12 +48,12 @@ void main( int argc, const char *argv[] )
|
|||
fprintf( stderr, "Can't initialise structure: %s\n", mysql_error( &dbconn ) );
|
||||
exit( mysql_errno( &dbconn ) );
|
||||
}
|
||||
if ( !mysql_connect( &dbconn, "", "zmuser", "zmuserzm" ) )
|
||||
if ( !mysql_connect( &dbconn, "", ZM_DB_USERB, ZM_DB_PASSB ) )
|
||||
{
|
||||
fprintf( stderr, "Can't connect to server: %s\n", mysql_error( &dbconn ) );
|
||||
exit( mysql_errno( &dbconn ) );
|
||||
}
|
||||
if ( mysql_select_db( &dbconn, "polycam" ) )
|
||||
if ( mysql_select_db( &dbconn, ZM_DATABASE ) )
|
||||
{
|
||||
fprintf( stderr, "Can't select database: %s\n", mysql_error( &dbconn ) );
|
||||
exit( mysql_errno( &dbconn ) );
|
||||
|
|
|
@ -91,12 +91,12 @@ void main( int argc, char *argv[] )
|
|||
fprintf( stderr, "Can't initialise structure: %s\n", mysql_error( &dbconn ) );
|
||||
exit( mysql_errno( &dbconn ) );
|
||||
}
|
||||
if ( !mysql_connect( &dbconn, "", "zmuser", "zmuserzm" ) )
|
||||
if ( !mysql_connect( &dbconn, "", ZM_DB_USERB, ZM_DB_PASSB ) )
|
||||
{
|
||||
fprintf( stderr, "Can't connect to server: %s\n", mysql_error( &dbconn ) );
|
||||
exit( mysql_errno( &dbconn ) );
|
||||
}
|
||||
if ( mysql_select_db( &dbconn, "polycam" ) )
|
||||
if ( mysql_select_db( &dbconn, ZM_DATABASE ) )
|
||||
{
|
||||
fprintf( stderr, "Can't select database: %s\n", mysql_error( &dbconn ) );
|
||||
exit( mysql_errno( &dbconn ) );
|
||||
|
|
Loading…
Reference in New Issue