go to bug id or search bugs for
Building mysqli with Connector/C 6.0.2 can fail with the error:
mysqli.c: In function ‘zm_startup_mysqli’:
mysqli.c:842: error: ‘MYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDS’ undeclared (first use in this function)
This is because of mysqli.c's use of:
#if MYSQL_VERSION_ID >= 50611 || defined(MYSQLI_USE_MYSQLND)
REGISTER_LONG_CONSTANT("MYSQLI_OPT_CAN_HANDLE_EXPIRED_PASSWORDS", MYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDS, CONST_CS | CONST_PERSISTENT);
In Connector/C, the value of MYSQL_VERSION_ID is 60000 however the constant MYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDS is not defined.
Add a Patch
Add a Pull Request
Please, build against libmysql(client) from your distribution or from official packets from Oracle. Connector/C is currently unsupported by mysqli, as mysqli supports libmysql, which has the expired passwords feature.
Fix will be in 5.5RC2
Vamos as alterações..