How to give an aceess to the seperate datbase by the created plugin?

Am developing a plugin and that needs an access to the databse. But  i don't know how to integrate the datbase with plugin.

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking