I inherited a really old codebase in C++ that is communicating with MySQL database part of which is shown below. The question what library defines functions such as mysql_init and the ones mentioned in the subject line.
MYSQL *hnd=NULL; // mysql connection handle
MYSQL_RES *res=NULL; // result of querying for all rows in table
MYSQL_ROW row; // one row returned
// START :: Get user's and company's profile from Awning Manager's DBs
hnd = mysql_init(NULL);
if (NULL == mysql_real_connect(hnd,DBServerName,DBUsername,DBPassword,"amlicensing",0,NULL,0))
MessageBox (NULL, "problem connecting..\n"
"Please ensure that you're connected to the internet and that your\n"
, "Error", MB_OK|MB_ICONERROR);
else
{
if (!mysql_query(hnd,"select * from users where username=\"" + s_LocalLoggedInAs + "\""))
{
res = mysql_use_result(hnd);
if (res)
{
MYSQL *hnd=NULL; // mysql connection handle
MYSQL_RES *res=NULL; // result of querying for all rows in table
MYSQL_ROW row; // one row returned
// START :: Get user's and company's profile from Awning Manager's DBs
hnd = mysql_init(NULL);
if (NULL == mysql_real_connect(hnd,DBServerName,DBUsername,DBPassword,"amlicensing",0,NULL,0))
MessageBox (NULL, "problem connecting..\n"
"Please ensure that you're connected to the internet and that your\n"
, "Error", MB_OK|MB_ICONERROR);
else
{
if (!mysql_query(hnd,"select * from users where username=\"" + s_LocalLoggedInAs + "\""))
{
res = mysql_use_result(hnd);
if (res)
{