[Unity] MMO Tutorial #001 – MySQL Connection




Download MySQl-Package: http://ul.to/g2o3a3h1 —————————————————————————————————— ▻ If you enjoyed, please like :)…

source


26 responses to “[Unity] MMO Tutorial #001 – MySQL Connection”

  1. Hi, @Yatego! When I tried make the LoginGUI.cs script I got an error-
    Assets/Scripts/LoginGUI.cs(8,9): error CS0246: The type or namespace name `DatabaseHandler' could not be found. Are you missing an assembly reference?

    Do I need to reference another dll?

  2. It's very dangerous to give complete host info to Unity without taking info from a web page. Because C# is very ez to decompile and everyone can get host info from it. And think that you are doing this game for android. Easier to decompile…

  3. The type or namespace name `MySQLConnection' could not be found. Are you missing a using directive or an assembly reference? Solution 'My Game' ‎(loading…) Assets/Scripts/DatabaseHandler.cs 34

    Type `MySql.Data.MySqlClient.MySqlConnection' does not contain a definition for `state' and no extension method `state' of type `MySql.Data.MySqlClient.MySqlConnection' could be found (are you missing a using directive or an assembly reference?) Solution 'My Game' ‎(loading…) Assets/Scripts/DatabaseHandler.cs 53

    Any help fixing??

  4. I'm sure it's a good tutorial, but if somebody where to decompile your game (.net games are easy to decompile) Your database info would be available for everybody to see. This is very bad security wise (obviously), I'd suggest having a PHP script on your website and preparing sql statements to prevent sql injection, and use a WWWForum instead to send data to your webserver.

  5. Hi, I got a problem:

    1.- using System.Data; says "Uknown resolve error"
    2.- con.Dispose (); say "MySql.Data.MySqlClient.MySqlConnection does not not contain a definition for 'Dispose' "
    3.- con.State.ToString() … ToString() its marked red.
    4.- On LoginGUI this line public DatabaseHandler _mysqlHolder; says DatabaseHandler does not exist on the current context.

  6. You can't do ANY of this…Your game CLIENT is making a direct connection to your database which shouldn't even be accessible. You're storing your entire connection string in the client executable, which means you're performing all of your authoritative logic on the client as well.

    You need to go back to the drawing board.

  7. help. This tutorial does not work. I made all like in tutorial but in error log i see
    "NullReferenceException: Object reference not set to an instance of an object
    DatabaseHandler.GetConnectionState () (at Assets/scripts/DatabaseHandler.cs:52)
    LoginGUI.OnGUI () (at Assets/scripts/LoginGUI.cs:9)"

    I'm trying to labeling con.ToString() but it null. What i do wrong?

Leave a Reply