Medium trust

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
cesarvegamx
Posts: 37
Joined: Tue 30 Jan 2007 07:43

Medium trust

Post by cesarvegamx » Tue 06 Feb 2007 06:07

Does your MySQL connector works in a shared hosting using medium trust?

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Tue 06 Feb 2007 06:36

Yes, broadly speaking, it does work.
Are you using direct/non-direct mode?
Are you going to install MySQLDirect .NET on a hosting providers' machine?

cesarvegamx
Posts: 37
Joined: Tue 30 Jan 2007 07:43

Post by cesarvegamx » Tue 06 Feb 2007 15:43

Not install. Just deploy an application in a hosting provider.

I don't know what exactly is that direct/non-direct mode, the idea is to just use it as any other provider, just like I use the one for SQL Server.

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Wed 07 Feb 2007 07:08

If you use direct mode, you will need SocketPermissions in addition to default medium trust settings.
If you use non-direct mode, you'll need to set UnmanagedCode flag in SecurityPermission class.
The difference in direct/non-direct modes is that in non-direct mode you use libmySQL.dll to connect to a server. For more information about this please refer to our documentation.

Post Reply