We use the 'databases' schema of the DevArt's ado.net provider to obtain all databases on a MySQL server. (MySqlConnection.GetSchema("databases")
)
As that's DevArt's schema query we don't know the exact SQL but I can assume it'll try to obtain the metadata from MySQL's own metadata tables. You can reproduce this by doing something like:
using(var con = new MySqlConnection("... connection string"))
{
con.Open();
var schema = con.GetSchema("databases"); // this likely gives the same error
}
So if you want to connect and obtain the metadata of database Foo on the server, it still needs to be able to obtain meta data of the server itself, namely which databases there are.