MySQL and Unity android build

Hi guys,

My company making an app for android and iOS and I need to make connection to mySQL for now and I read a lot of posts and I import MySQL.Data.dll and System.Data to Assets folder and make a script but I can’t build it for android.

I get

Error building Player: SystemException: ‘System.Net.Sockets’
are supported only with Unity Android
Pro. Referenced from assembly
‘Mono.Data.Tds’.

Is there any chance to get working build for android and iOS with mySQL dll?

Make a WWW request to a PHP script (passing it variables via the URL) hosted on a remote server where the database exists. Make the PHP script return a string and parse it in Unity.

any solution?