GithubHelp home page GithubHelp logo

uncle-uee / mysql-unity Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 2.0 6.29 MB

Getting MySQL to work with Unity using ODBC or the MySQL .Net Connector Plugin

License: MIT License

C# 100.00%
mysql mysql-database unity unity2d unity3d unity3d-plugin

mysql-unity's Introduction

Hi 👋, I am Uee

  • 🔭 I’m currently working on [pending]
  • 🌱 I’m currently focusing on my Job and Campus work!
  • ⚡ Qoute: “Surely in the remembrance of Allah do hearts find comfort” [Quran 13:28]

Anurag's GitHub stats

mysql-unity's People

Contributors

uncle-uee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

kanzaky scarffy

mysql-unity's Issues

TlsException: Handshake failed - error code: UNITYTLS_INTERNAL_ERROR

Hi, I got this error when I run the example code, how do I fix it?

TlsException: Handshake failed - error code: UNITYTLS_INTERNAL_ERROR, verify result: 4294936704
Mono.Unity.Debug.CheckAndThrow (Mono.Unity.UnityTls+unitytls_errorstate errorState, Mono.Unity.UnityTls+unitytls_x509verify_result verifyResult, System.String context, Mono.Security.Interface.AlertDescription defaultAlert) (at <b33672c2670a41d3b6cd2c30c98a2bed>:0)
Mono.Unity.UnityTlsContext.ProcessHandshake () (at <b33672c2670a41d3b6cd2c30c98a2bed>:0)
Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncOperationStatus status, System.Boolean renegotiate) (at <b33672c2670a41d3b6cd2c30c98a2bed>:0)
(wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake(Mono.Net.Security.AsyncOperationStatus,bool)
Mono.Net.Security.AsyncHandshakeRequest.Run (Mono.Net.Security.AsyncOperationStatus status) (at <b33672c2670a41d3b6cd2c30c98a2bed>:0)
Mono.Net.Security.AsyncProtocolRequest.ProcessOperation (System.Threading.CancellationToken cancellationToken) (at <b33672c2670a41d3b6cd2c30c98a2bed>:0)
Rethrow as AuthenticationException: Authentication failed, see inner exception.
Mono.Net.Security.MobileAuthenticatedStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) (at <b33672c2670a41d3b6cd2c30c98a2bed>:0)
(wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream.AuthenticateAsClient(string,System.Security.Cryptography.X509Certificates.X509CertificateCollection,System.Security.Authentication.SslProtocols,bool)
System.Net.Security.SslStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) (at <b33672c2670a41d3b6cd2c30c98a2bed>:0)
MySql.Data.MySqlClient.NativeDriver.StartSSL () (at <8051f3898298485d9e8510b51445dcd7>:0)
MySql.Data.MySqlClient.NativeDriver.Open () (at <8051f3898298485d9e8510b51445dcd7>:0)
MySql.Data.MySqlClient.Driver.Open () (at <8051f3898298485d9e8510b51445dcd7>:0)
MySql.Data.MySqlClient.Driver.Create (MySql.Data.MySqlClient.MySqlConnectionStringBuilder settings) (at <8051f3898298485d9e8510b51445dcd7>:0)
MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection () (at <8051f3898298485d9e8510b51445dcd7>:0)
MySql.Data.MySqlClient.MySqlPool.GetPooledConnection () (at <8051f3898298485d9e8510b51445dcd7>:0)
MySql.Data.MySqlClient.MySqlPool.TryToGetDriver () (at <8051f3898298485d9e8510b51445dcd7>:0)
MySql.Data.MySqlClient.MySqlPool.GetConnection () (at <8051f3898298485d9e8510b51445dcd7>:0)
MySql.Data.MySqlClient.MySqlConnection.Open () (at <8051f3898298485d9e8510b51445dcd7>:0)
Example.MySql.DatabaseManager.Connect () (at Assets/Scripts/MySQL/DatabaseManager.cs:42)
Example.MySql.DatabaseManager.Start () (at Assets/Scripts/MySQL/DatabaseManager.cs:22)

Here's the code I used:

MySqlConnectionStringBuilder builder = new MySqlConnectionStringBuilder();
            builder.Server = Host;
            builder.Port = 3306;
            builder.UserID = User;
            builder.Password = Password;
            builder.Database = Database;

            try
            {
                using (MySqlConnection connection = new MySqlConnection(builder.ToString()))
                {
                    Debug.Log("TEST");
                    connection.Open();
                }
            }
            catch (MySqlException exception)
            {
                print(exception.Message);
            }

WebGL support

WebGL doesn't support it. any idea or alternative solution?

WebGL support

WebGL doesn't support it. any idea or alternative solution?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.