List all databases
-
Hi All I am useing mysql and i am able to established the connection through this code.
CDatabase database;
try
{
if(database.OpenEx(_T("Driver={MySQL ODBC 5.1 Driver};Server=localhost;Database="";User=root; Password=root;Option=3;"), CDatabase::noOdbcDialog))
{
AfxMessageBox("Connection Successfully");}
}
catch(CException *e)
{
AfxMessageBox("Connection Failed");
}Now i want to fetch list all databases is ableble.
-
Hi All I am useing mysql and i am able to established the connection through this code.
CDatabase database;
try
{
if(database.OpenEx(_T("Driver={MySQL ODBC 5.1 Driver};Server=localhost;Database="";User=root; Password=root;Option=3;"), CDatabase::noOdbcDialog))
{
AfxMessageBox("Connection Successfully");}
}
catch(CException *e)
{
AfxMessageBox("Connection Failed");
}Now i want to fetch list all databases is ableble.