$table_prefix is not used any more $wpdb->prefix is the same thing just the new way of getting this information.
So replace $wpdb->prefix with the prefix you used in your other blog. example:
$wpdb->users = 'wp_' . 'users';
If you used the default wp_ in your first blog.