Yes it is possible to create a new instance of the wpdb class and have it access other databases, or use other PHP code and libraries to do the same.
However possibly this is not necessary, on many projects I have created completely independent database tables within my WordPress database, WordPress neither knows nor cares about them, I access them from my own plugin.
I want to create a connection between WordPress and OrientDB database, and use this database instead of MySql.
So, Should I use wpdb class to do this?
Should I use wpdb class in wp-config.php file or another place?
WordPress talks only to mysql/mariadb databases. You’ll have to write your own connector classes to an OrientDB database — you can’t use wpdb .
Thanks,
How can I write connector classes? This is possible for me?
Can you help me?
Only experienced developers would take this on.
I think a good question at this stage is to ask why you want to connect to an “OrientDB” in the first place. This could be something these support forums can assist with.