CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2002
    Posts
    9

    Checking if database exists

    I am working on an application that will need to create a database in MySql. I have not been able to find any reference on how to check to see if a database name exists before I go creating it. I did find the syntax CREATE IF NOT EXIST db_name but if I am creating the database for the firs time then I also need to create several tables in the database.

    What functions can I call to send the command and get a result letting me know if a database exists?

  2. #2
    Join Date
    Mar 2003
    Posts
    9
    Try SHOW DATABASES;

  3. #3
    Join Date
    Nov 2002
    Posts
    9
    What C++ Function do I use to send "SHOW DATABASES;" and how do I get a result back?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured