Jump to content
TrinityCore

MHard

Plebs
  • Posts

    5
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by MHard

  1. 11 minutes ago, Shauren said:

    @MHard we do not support using the connector library, only the lib shipped with MySQL server installation.

    Additionally LIBMYSQL_VERSION_ID define is not present in older versions of MySQL (5.5) so it cannot be used.

     
    very strange. maybe it would be more flexible?
     
    #ifdef LIBMYSQL_VERSION_ID // use MYSQL >= 5.6
                WPFatal(mysql_get_client_version() == LIBMYSQL_VERSION_ID, "Used MySQL library version (%s) does not match the version used to compile TrinityCore (%s).",
                    mysql_get_client_info(), MYSQL_SERVER_VERSION);
    #else
                WPFatal(mysql_get_client_version() == MYSQL_VERSION_ID, "Used MySQL library version (%s) does not match the version used to compile TrinityCore (%s).",
                    mysql_get_client_info(), MYSQL_SERVER_VERSION);
    #endif

     

  2. and why even compare the version of MySQL server and MySQL connector library ?

     

    maybe the condition should be different?

    WPFatal(mysql_get_client_version() == LIBMYSQL_VERSION_ID, "Used MySQL library version (%s) does not match the version used to compile TrinityCore (%s).", mysql_get_client_info(), MYSQL_SERVER_VERSION);

  3. I think this is a bug in Trinity.
    if you use the standard с connector supplied by mysql

    http://dev.mysql.com/downloads/connector/c/

    we have mysql_version.h

    #define PROTOCOL_VERSION            10
    #define MYSQL_SERVER_VERSION       "5.7.6-m16"
    #define MYSQL_VERSION_ID            50706
    #define MYSQL_PORT                  3306
    #define MYSQL_PORT_DEFAULT          0
    #define MYSQL_UNIX_ADDR            "/tmp/mysql.sock"
    #define MYSQL_CONFIG_NAME          "my"
    #define MYSQL_COMPILATION_COMMENT  "MySQL Connector/C (GPL)"
    #define LIBMYSQL_VERSION           "6.1.6"
    #define LIBMYSQL_VERSION_ID         60106

     

    as you can see this condition is not met

                WPFatal(mysql_get_client_version() == MYSQL_VERSION_ID, "Used MySQL library version (%s) does not match the version used to compile TrinityCore (%s).", mysql_get_client_info(), MYSQL_SERVER_VERSION);

     

    because  LIBMYSQL_VERSION_ID 60106     !=       MYSQL_VERSION_ID 50706

     

×
×
  • Create New...