diff --git a/src/zms.cpp b/src/zms.cpp index 8878ad072..aed65a18a 100644 --- a/src/zms.cpp +++ b/src/zms.cpp @@ -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 ) ); diff --git a/src/zmu.cpp b/src/zmu.cpp index 9e95c88c8..74f1f744a 100644 --- a/src/zmu.cpp +++ b/src/zmu.cpp @@ -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 ) );