ConnectMySQL() { mysql_log(LOG_ERROR | LOG_WARNING, LOG_TYPE_TEXT); mysql = mysql_connect(...); if (!mysql_errno(mysql)) printf("[MYSQL]: Connected to `%s`.",SQL_DB); else printf("[MYSQL]: Failed to connect to `%s`.",SQL_DB); }
ConnectMySQL();