1. When will you guys code in a way for developers to test if the MySQL connection is successfully opened?

    The codes below do not work.

    Code:
    if(connection == null)
        Puts("Unable to connect to sql server!");

    Code:
    if(connection.Con.State == ConnectionState.Closed)
        Puts("Unable to connect to sql server!");
    Code:
    try
    {
        connection = mysql.OpenDb("hostname", 3306, "database", "username", "password", this);
    }
    catch (Exception ex)
    {
         Puts("Unable to connect to MySQL server!");
    }

    Edit: I solved my issue.
     
    Last edited by a moderator: Dec 29, 2015