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",