replacing mysql with mariadb brought me to the php
documentation and they (also dev.mysql.com) recommend
compiling php with mysqlnd instead of libmysqlclient.
i see that in openbsd mysqlnd is enabled, however
compiled with libmysqlclient, so as far as i can
say, it is not used (as it seems to be a compile
time option). have any heavy mysql users
tested mysqlnd is production?
something like this? (untested)
Index: Makefile.inc
===================================================================
RCS file: /cvs/ports/lang/php/Makefile.inc,v
retrieving revision 1.56
diff -u -p -r1.56 Makefile.inc
--- Makefile.inc 13 Sep 2014 18:09:21 -0000 1.56
+++ Makefile.inc 17 Sep 2014 15:09:38 -0000
@@ -197,16 +197,14 @@ WANTLIB-mcrypt= mcrypt ltdl>=1 pthread
# mysql
MULTI_PACKAGES+= -mysql
COMMENT-mysql= mysql database access extensions for php5
-CONFIGURE_ARGS+= --with-mysql=shared,${LOCALBASE}
-LIB_DEPENDS-mysql= databases/mariadb
-WANTLIB-mysql= pthread lib/mysql/mysqlclient
+CONFIGURE_ARGS+= --with-mysql=mysqlnd
+WANTLIB-mysql= pthread
# mysqli
MULTI_PACKAGES+= -mysqli
COMMENT-mysqli= mysql database access extensions for php5
-CONFIGURE_ARGS+= --with-mysqli=shared,${LOCALBASE}/bin/mysql_config
-LIB_DEPENDS-mysqli= databases/mariadb
-WANTLIB-mysqli= crypto m pthread ssl z lib/mysql/mysqlclient
+CONFIGURE_ARGS+= --with-mysqli=mysqlnd
+WANTLIB-mysqli= crypto m pthread ssl z
# odbc
MULTI_PACKAGES+= -odbc
@@ -218,9 +216,8 @@ WANTLIB-odbc= iodbcinst iodbc>=2 pthrea
# pdo-mysql
MULTI_PACKAGES+= -pdo_mysql
COMMENT-pdo_mysql= PDO mysql database access extensions for php5
-CONFIGURE_ARGS+= --with-pdo-mysql=shared,${LOCALBASE}
-LIB_DEPENDS-pdo_mysql= databases/mariadb
-WANTLIB-pdo_mysql= crypto m pthread ssl z lib/mysql/mysqlclient
+CONFIGURE_ARGS+= --with-pdo-mysql=mysqlnd
+WANTLIB-pdo_mysql= crypto m pthread ssl z
# pdo-pgsql
MULTI_PACKAGES+= -pdo_pgsql
-f
--
the best armor is to keep out of range.