diff --git a/tools/src/wikipediaImage.cpp b/tools/src/wikipediaImage.cpp
index ff38f50..df5191b 100644
--- a/tools/src/wikipediaImage.cpp
+++ b/tools/src/wikipediaImage.cpp
@@ -31,7 +31,7 @@ void dump_file()
 	MYSQL mysql;
 	if (!mysql_init(&mysql))
 		return;
-	if (!mysql_real_connect(&mysql, CONN_HOST , CONN_USER , CONN_PASS, NULL , MYSQL_PORT, NULL, 0))
+	if (!mysql_real_connect(&mysql, CONN_HOST , CONN_USER , CONN_PASS, NULL , MARIADB_PORT, NULL, 0))
 		return;
 	if (mysql_select_db(&mysql, CONN_DB))
 		return;
