Re: Create mysql database using mysql command
Posted by: Rick James
Date: May 30, 2013 08:59PM

What language are you using?

AddWithValue is probably adding quotes, which would lead to a syntax error. In the catch{} clause, print out the error message. It will probably say something like
syntax error near ''fancydb''
The outer quotes come from the error message; the inner ones from AddWithValue.

If you need to fill in database or table names, use your language's string concatenation operator or sprintf function.

Options: ReplyQuote


Subject
Written By
Posted
Re: Create mysql database using mysql command
May 30, 2013 08:59PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.