Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Resolved Can't connect to MySQL

Discussion in 'Asset Database' started by croquetitutoriais, Apr 26, 2023.

  1. croquetitutoriais

    croquetitutoriais

    Joined:
    Apr 26, 2023
    Posts:
    2
    I already have done everything I know and I find to try to solve this problem. I think its not MySQL(MySQL Workbench) problem because I tried on a C# Console script and it work with the same code I have on Unity. I think it's because of MySQL.Data.dll file that probably don't match the version of something. My Unity version is Unity 2020.3.24f1 and my MySQL version is 8.0.32. I have changed a lot of versions of MySQL.Data.dll but it normally gives me errors like this upload_2023-4-26_21-17-32.png

    and even with all the files that MySQL.Data.dll folder bring still some references missing.
     
  2. croquetitutoriais

    croquetitutoriais

    Joined:
    Apr 26, 2023
    Posts:
    2
    I already find the solution. Was in fact, the MySQL.Data.dll file. For those who have the same problem, I just start to put random versions like 6.0.4 and 5.0.6 and 8.0.19 and one of the random versions work. Great! :)
    I used the official mysql website to download this files and just download the ".NET & Mono" .zip files and not the .msi and only put this MySQL.Data.dll and not the others on the folder. Something will end up working. Hope this can help someone. Thank you.