VS 2008 - How to connect to Embedded MySQL database?
VS 2008 - How to connect to Embedded MySQL database?
How can I do it?
Please refer to http://www.devart.com/dotconnect/mysql/ ... erver.html.
Doesn't help
Wrote the following connection string:
Got the following error:
"Unknown connection string parameter --datadir."
What's wrong with my connection string?
Code: Select all
Public Const CONNECTION_STRING_TEMPLATE As String = "User ID=root; Server Parameters=\""--basedir=c:/mysql/;--datadir=c:/mysql/data/;\""; Embedded=True;"
"Unknown connection string parameter --datadir."
What's wrong with my connection string?
In C# and VB, double quote (") marks a start/end of a string literal. If you want to tell the compiler to consider " as a part of string itself, it is necessary to use \" (additional backslash) in C# and "" (additional double quote) in VB.
Please try the following connection string:
We will add a sample for Visual Basic to the Using Embedded Server article.
Please try the following connection string:
Code: Select all
Public Const CONNECTION_STRING_TEMPLATE As String = "User ID=root; Server Parameters=""--basedir=c:/mysql/;--datadir=c:/mysql/data/;""; Embedded=True;"
Doesn't help at all
Throws "Unknown connection string parameter Embedded." What's wrong with it?
Here's my project with MYSQL data folders
http://zalil.ru/29687643
DevArt COnnect with the same version, 5.80.152.0
http://zalil.ru/29687643
DevArt COnnect with the same version, 5.80.152.0
I can reproduce the "Unknown connection string parameter Embedded." error only using Express Edition of dotConnect for MySQL. Please refer to dotConnect for MySQL edition matrix: the Embedded Server support is available only in the Developer, Professional, and Standard editions.