diff -U3 -r /usr/ports/databases/mysql51-server/Makefile mysql51-server/Makefile
--- /usr/ports/databases/mysql51-server/Makefile	2008-09-23 00:43:45.000000000 -0500
+++ mysql51-server/Makefile	2008-09-29 14:39:43.000000000 -0500
@@ -29,7 +29,8 @@
 		--with-mysqlfs \
 		--with-low-memory \
 		--with-comment='FreeBSD port: ${PKGNAME}' \
-		--enable-thread-safe-client
+		--enable-thread-safe-client \
+		--with-embedded-server
 
 .ifdef USE_MYSQL
 .error You have `USE_MYSQL' variable defined either in environment or in make(1) arguments. Please undefine and try again.
@@ -126,7 +127,7 @@
 	@${ECHO} ""
 
 post-patch:
-	@${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @docs_dirs@ sql-common @sql_server_dirs@ storage scripts @sql_server@ @man_dirs@ support-files|g" ${WRKSRC}/Makefile.in
+	@${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @docs_dirs@ sql-common @sql_server_dirs@ storage scripts @sql_server@ libmysql @libmysqld_dirs@ @man_dirs@ support-files|g" ${WRKSRC}/Makefile.in
 	@${REINPLACE_CMD} -e "s|bin_SCRIPTS =|bin_SCRIPTS = @server_scripts@|g" ${WRKSRC}/scripts/Makefile.in
 	@${REINPLACE_CMD} -e "s|dist_pkgdata_DATA =|dist_pkgdata_DATA = fill_help_tables.sql mysql_system_tables.sql mysql_system_tables_data.sql|g" ${WRKSRC}/scripts/Makefile.in
 	@${REINPLACE_CMD} -e "s|man1_MANS =|man1_MANS = ${MAN1}|g" ${WRKSRC}/man/Makefile.in
diff -U3 -r /usr/ports/databases/mysql51-server/pkg-plist mysql51-server/pkg-plist
--- /usr/ports/databases/mysql51-server/pkg-plist	2008-04-23 00:49:10.000000000 -0500
+++ mysql51-server/pkg-plist	2008-09-29 14:50:59.000000000 -0500
@@ -9,6 +9,8 @@
 bin/mysql_tzinfo_to_sql
 bin/mysql_waitpid
 bin/mysqld_safe
+bin/mysql_client_test_embedded
+bin/mysqltest_embedded
 %%NDB%%bin/ndb_config
 %%NDB%%bin/ndb_delete_all
 %%NDB%%bin/ndb_desc
@@ -65,6 +67,7 @@
 lib/mysql/libheap.a
 lib/mysql/libmyisam.a
 lib/mysql/libmyisammrg.a
+lib/mysql/libmysqld.a
 lib/mysql/libmystrings.a
 lib/mysql/libmysys.a
 %%NDB%%lib/mysql/libndbclient.a
Only in /usr/ports/databases/mysql51-server: work
