المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : List all databases



C++ Programming
06-29-2009, 12:20 PM
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.