--- dist/examples/pthreads.cpp	2017-05-10 12:14:59.000000000 -0400
+++ macports/examples/pthreads.cpp	2018-03-03 00:59:58.000000000 -0500
@@ -69,17 +69,13 @@
 */
 #include "mysql_connection.h"
 #include "mysql_driver.h"
+#include "examples.h"
 
 #include <cppconn/driver.h>
 #include <cppconn/exception.h>
 #include <cppconn/resultset.h>
 #include <cppconn/statement.h>
 
-#define EXAMPLE_HOST "localhost"
-#define EXAMPLE_USER "root"
-#define EXAMPLE_PASS ""
-#define EXAMPLE_DB "test"
-
 struct st_worker_thread_param {
 	sql::Driver *driver;
 	sql::Connection *con;
