Open() 공개 메소드

public Open ( ) : void
리턴 void
예제 #1
0
        public static Driver Create(MySqlConnectionStringBuilder settings)
        {
            Driver d = new Driver(settings);

            //this try was added as suggested fix submitted on MySql Bug 72025, socket connections are left in CLOSE_WAIT status when connector fails to open a new connection.
            //the bug is present when the client try to get more connections that the server support or has configured in the max_connections variable.
            try
            {
                d.Open();
            }
            catch
            {
                d.Dispose();
                throw;
            }
            return(d);
        }
예제 #2
0
        public static Driver Create(MySqlConnectionStringBuilder settings)
        {
            Driver d = new Driver(settings);

            //this try was added as suggested fix submitted on MySql Bug 72025, socket connections are left in CLOSE_WAIT status when connector fails to open a new connection.
            //the bug is present when the client try to get more connections that the server support or has configured in the max_connections variable.
            try
            {
                d.Open();
            }
            catch
            {
                d.Dispose();
                throw;
            }
            return d;
        }