Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-1

Error 2058 connecting to MySQL 5.0.90

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Microsoft Windows 7 x64, Embarcadero C++ Builder 2010, MySQL 5.0.90 (32 bit)

    Description

      Using libmariadb.dll (win32) the following code results in error 2058 connecting to MySQL 5.0.90:

      MYSQL *mysql = mysql_init( NULL );
      if( !mysql_real_connect( mysql, "localhost", "root", "", "", 3306, NULL, 0 ) )
      {
      int errorNumber = mysql_errno( mysql );
      char *errorString = ( char * ) mysql_error( mysql );

      //errorNumber=2058
      //errorString = Can't connect twice. Already connected
      }

      Also, it seems that error codes 2058 and 2059 are reversed.

      errmsg.h:
      #define CR_AUTH_PLUGIN_CANNOT_LOAD 2058
      #define CR_ALREADY_CONNECTED 2059

      errmsg.c:
      /* 2058 */ "Can't connect twice. Already connected",
      /* 2059 */ "Plugin %s could not be loaded: %s",

      Attachments

        Activity

          People

            georg Georg Richter
            adrian_sru Adrian Matlack
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.