Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Spidlee · Dec 24, 2014 at 11:41 AM · c#errorcompilermysqlosx

MySql compiler error help~ (OSX)

Hi guys,

I'm trying to setup mysql database access via c# on OSX, and thus far getting stuck on compiler errors. Files I've added thus far to my project folder are: - MySql.Data.dll - System.Drawing.dll - I18N.dll - I18N.West.dll

The compiler error (first few lines): Unhandled Exception: System.TypeLoadException: Could not load type 'System.Threading.Tasks.Task`1' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

I'm new to databases, so with regards to the mysql connector, i downloaded the zip, and just grabbed the MySql.Data.dll file and placed it into my project folder. couldn't figure out what to do with all the rest of the files...

Any help would be greatly appreciated!! Thanks!!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Spidlee · Dec 27, 2014 at 06:03 AM

Update: decided to go with accessing the database via the php layer instead. (supposed to be safer for security reasons, and well... i couldn't figure out how to get past the compiler errors lol..) here's a good reference: http://wiki.unity3d.com/index.php?title=Server_Side_Highscores

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image syscrusher · Jul 20, 2015 at 01:33 AM 0
Share

I have this error also. Unlike the OP, I do not want to use a PHP layer, for several reasons:

  1. The security of $$anonymous$$ySQL connectivity is not applicable here, because my app will run only on an isolated, trusted network, and because the $$anonymous$$ySQL connections will be done only by a dedicated server on the same physical host using UNIX sockets, not TCP. I'm building an intranet app, not an online $$anonymous$$$$anonymous$$O.

  2. Although Unity newbies (like me) are often advised to deploy a PHP layer for security, PHP is not magically secure. Unless you know what you're doing, PHP wrappers can be very vulnerable to SQL injection attacks and other vulnerabilities. I'm new to Unity, but I've programmed PHP for well over a decade.

  3. A PHP layer and HTTP request/response overhead will perform poorly compared to native SQL socket connections when looping back to the same host.

  4. I don't want to have to deal with Apache (or equivalent) plus PHP on the dedicated host just to run a wrapper. Yes, I know how to configure them, but I don't need or want the overhead.

I'd appreciate any advice here on how to work around this problem. The error message doesn't say what DLL or script was at fault here; I finally found this match with a Google search, and verified that the errors disappear if I remove the $$anonymous$$ySQL DLLs (and code using them) from my test project.

Has anyone solved this before, and if so, which versions of which DLLs are you using? A pointer to an online source would be very helpful. I've spent a lot of time searching, and I keep hitting the same advice to just use PHP but no real answer to the original question.

Thanks for any suggestions, URL pointers, or advice.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Compiler error - wrong target 1 Answer

c# 6 not recognize after project upgrade from 2017 to 2019 version. 0 Answers

C# Getting "Cannot cast from source type to destination type" even though it's working. 1 Answer

Compiler errors while switching to android 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges