--- /dev/null
+#ifndef _MySQLConn_h
+#define _MySQLConn_h
+
+#include "main.h"
+#include <mysql.h>
+#include <mysql/errmsg.h>
+
+#define MYSQLMAXLEN 1024
+
+extern MYSQL *mysql_conn;
+
+void check_mysql();
+MYSQL_RES *mysql_use();
+void mysql_free();
+void init_mysql();
+void free_mysql();
+void show_mysql_error();
+void printf_mysql_query(const char *text, ...) PRINTF_LIKE(1, 2);
+char* escape_string(const char *str);
+
+#endif
\ No newline at end of file