Import Drupal Database, Excluding Database Connection Parameters
I've actually never heard of database settings being stored in the database. Are you sure you aren't updating your site's settings.php-file as well?

Do you have different database prefixes?

Could it be related to some stale cache?