Comments - Licensing in non embedded solution
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
In case 1, you are not affected by the GPL because:
The fact that the user can use a GPL program like MariaDB with your application doesn't in any way put any restrictions or license requirements on your application.
In case 2, you are not distributing any GPL code and thus you are not affected by the GPL in any way.
Note that in many cases like this you would be probably be fine even if you would distribute the MySQL/MariaDB connectors and MariaDB with your application. See licensing FAQ for details or contact me if you need to know more.