|
-
April 2nd, 2003, 04:13 PM
#1
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?
-
April 3rd, 2003, 10:41 AM
#2
-
April 3rd, 2003, 12:06 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|