how to access 2nd Mysqli Database from different server for wordpress

You can create a new instance of the wpdb object. It is explained in many posts like this one: Using wpdb to connect to a separate database