Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all 1447 articles
Browse latest View live

Devart Released dotConnect for MySQL with a support for Visual Studio 2015 (no replies)

$
0
0
Devart released the new versions of ADO.NET data provider dotConnect for MySQL. An update adds a support of the latest version of Visual Studio - Visual Studio 2015.

Now the product is available for using in projects targeted for the newest .NET Framework 4.6 and getting benefits from the latest Visual Studio features, such as shared projects, new and updated debugging and diagnostics tools, etc.

Get more details about the new release at https://www.devart.com/news/2015/vs-2015-support.html

Problems with Connector 6.9.7 and Find / invalid SQL (no replies)

$
0
0
Hi,

Pretty new to Entity Framework but not to MySQL but I'm having problems with a simple EF operation - Find - when using MySQL (connector 6.9.7), I'm using Visual Studio 2015, with an MVC application using EF6.

This Find:

News.Find(1)

produces this invalid SQL:

SELECT
`Limit1`.`C2` AS `C1`,
`Limit1`.`C1` AS `C2`,
`Limit1`.`Heading`,
`Limit1`.`MainDetail`,
`Limit1`.`Active`,
`Limit1`.`ExpiryDate`,
`Limit1`.`EmbargoDate`,
`Limit1`.`CreatedOn`,
`Limit1`.`ModifiedOn`,
`Limit1`.`C3`,
`Limit1`.`C4`,
`Limit1`.`C5`,
`Limit1`.`C6`,
`Limit1`.`C7`,
`Limit1`.`C8`,
`Limit1`.`C9`,
`Limit1`.`C10`,
`Limit1`.`C11`
FROM (SELECT
`UnionAll2`.`ContentID` AS `C1`,
`Extent4`.`Heading`,
`Extent4`.`MainDetail`,
`Extent4`.`Active`,
`Extent4`.`ExpiryDate`,
`Extent4`.`EmbargoDate`,
`Extent4`.`CreatedOn`,
`Extent4`.`ModifiedOn`,
CASE WHEN (`UnionAll2`.`C5` = 1) THEN (@gp1) WHEN (`UnionAll2`.`C6` = 1) THEN (@gp2) ELSE (@gp3) END AS `C2`,
CASE WHEN (`UnionAll2`.`C5` = 1) THEN (`UnionAll2`.`StartDate`) WHEN (`UnionAll2`.`C6` = 1) THEN (NULL) END AS `C3`,
CASE WHEN (`UnionAll2`.`C5` = 1) THEN (`UnionAll2`.`StartTime`) WHEN (`UnionAll2`.`C6` = 1) THEN (NULL) END AS `C4`,
CASE WHEN (`UnionAll2`.`C5` = 1) THEN (`UnionAll2`.`EndDate`) WHEN (`UnionAll2`.`C6` = 1) THEN (NULL) END AS `C5`,
CASE WHEN (`UnionAll2`.`C5` = 1) THEN (`UnionAll2`.`EndTime`) WHEN (`UnionAll2`.`C6` = 1) THEN (NULL) END AS `C6`,
CASE WHEN (`UnionAll2`.`C5` = 1) THEN (`UnionAll2`.`ExernalLink`) WHEN (`UnionAll2`.`C6` = 1) THEN (NULL) END AS `C7`,
CASE WHEN (`UnionAll2`.`C5` = 1) THEN (NULL) WHEN (`UnionAll2`.`C6` = 1) THEN (`UnionAll2`.`C1`) END AS `C8`,
CASE WHEN (`UnionAll2`.`C5` = 1) THEN (NULL) WHEN (`UnionAll2`.`C6` = 1) THEN (NULL) ELSE (`UnionAll2`.`C2`) END AS `C9`,
CASE WHEN (`UnionAll2`.`C5` = 1) THEN (NULL) WHEN (`UnionAll2`.`C6` = 1) THEN (NULL) ELSE (`UnionAll2`.`C3`) END AS `C10`,
CASE WHEN (`UnionAll2`.`C5` = 1) THEN (NULL) WHEN (`UnionAll2`.`C6` = 1) THEN (NULL) ELSE (`UnionAll2`.`C4`) END AS `C11`
FROM ((SELECT
FROM ((SELECT
`Extent1`.`ContentID`,
`Extent1`.`StartDate`,
`Extent1`.`StartTime`,
`Extent1`.`EndDate`,
`Extent1`.`EndTime`,
`Extent1`.`ExernalLink`,
NULL AS `C1`,
NULL AS `C2`,
NULL AS `C3`,
NULL AS `C4`,
1 AS `C5`,
0 AS `C6`
FROM `Activities` AS `Extent1`) UNION ALL (SELECT
`Extent2`.`ContentID`,
NULL AS `C1`,
NULL AS `C2`,
NULL AS `C3`,
NULL AS `C4`,
NULL AS `C5`,
`Extent2`.`Summary`,
NULL AS `C6`,
NULL AS `C7`,
NULL AS `C8`,
0 AS `C9`,
1 AS `C10`
FROM `News` AS `Extent2`))) UNION ALL (SELECT
`Extent3`.`ContentID`,
NULL AS `C1`,
NULL AS `C2`,
NULL AS `C3`,
NULL AS `C4`,
NULL AS `C5`,
NULL AS `C6`,
`Extent3`.`StartTime`,
`Extent3`.`EndTime`,
`Extent3`.`daysOfTheWeek`,
0 AS `C7`,
0 AS `C8`
FROM `Shows` AS `Extent3`)) AS `UnionAll2` INNER JOIN `Content` AS `Extent4` ON `UnionAll2`.`ContentID` = `Extent4`.`ContentID`
WHERE `UnionAll2`.`ContentID` = @p0 LIMIT 2) AS `Limit1`

But doing this:

News.First(x => x.ContentID == 1)

Produces valid SQL of:

SELECT
`Limit1`.`C1`,
`Limit1`.`ContentID`,
`Limit1`.`Heading`,
`Limit1`.`MainDetail`,
`Limit1`.`Active`,
`Limit1`.`ExpiryDate`,
`Limit1`.`EmbargoDate`,
`Limit1`.`CreatedOn`,
`Limit1`.`ModifiedOn`,
`Limit1`.`Summary`
FROM (SELECT
`Extent1`.`ContentID`,
`Extent1`.`Summary`,
`Extent2`.`Heading`,
`Extent2`.`MainDetail`,
`Extent2`.`Active`,
`Extent2`.`ExpiryDate`,
`Extent2`.`EmbargoDate`,
`Extent2`.`CreatedOn`,
`Extent2`.`ModifiedOn`,
@gp1 AS `C1`
FROM `News` AS `Extent1` INNER JOIN `Content` AS `Extent2` ON `Extent1`.`ContentID` = `Extent2`.`ContentID`
WHERE 1 = `Extent1`.`ContentID` LIMIT 1) AS `Limit1`

And doing this:

News.ToList().Find(x => x.ContentID == 1)

Results in even better SQL of:

SELECT
@gp1 AS `C1`,
`Extent1`.`ContentID`,
`Extent2`.`Heading`,
`Extent2`.`MainDetail`,
`Extent2`.`Active`,
`Extent2`.`ExpiryDate`,
`Extent2`.`EmbargoDate`,
`Extent2`.`CreatedOn`,
`Extent2`.`ModifiedOn`,
`Extent1`.`Summary`
FROM `News` AS `Extent1` INNER JOIN `Content` AS `Extent2` ON `Extent1`.`ContentID` = `Extent2`.`ContentID`


So I can work around the problem by using either the second or third approach instead but I'd like to know why the Find isn't working, is this a bug in the connector (I'm assuming it must be since the problem does not occur when using Sql Server) and this be fixed please?

Mysql Connection is not working after upgrade to Windows 10 (no replies)

$
0
0
I am writing an application using the c# and MySql database.

Everything worked find when I was developing the application on Windows 7 however, after the upgrade to Windows 10, the MySql kept throwing an exception:



System.TypeInitializationException was unhandled by user code
HResult=-2146233036
Message=The type initializer for 'MySql.Data.MySqlClient.MySqlConnectionStringBuilder' threw an exception.
Source=MySql.Data
TypeName=MySql.Data.MySqlClient.MySqlConnectionStringBuilder
StackTrace:
at MySql.Data.MySqlClient.MySqlConnectionStringBuilder..ctor()
at MySql.Data.MySqlClient.MySqlConnection..ctor()
at MySql.Data.MySqlClient.MySqlConnection..ctor(String connectionString)
at QuickSales.Models.DBContext..ctor() in c:\Users\Sheldon\Documents\Visual Studio 2012\Projects\QuickSales\QuickSales\Models\DBContext.cs:line 22
at QuickSales.Controllers.EmployeesController..ctor() in c:\Users\Sheldon\Documents\Visual Studio 2012\Projects\QuickSales\QuickSales\Controllers\EmployeesController.cs:line 18
InnerException: System.AccessViolationException
HResult=-2147467261
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
InnerException:


Any help to resolve the error would be highly appreciated.





Sheldon.

MySQL Command Timeout 1 second takes 6 seconds to timeout (no replies)

$
0
0
I previously posted the same question under "Cluster"; and I was suggested by Jonathan Stephens to post the message under Connector.
Original question: http://forums.mysql.com/read.php?25,633118

Hi,

We are working on a production environment running MySQL cluster 5.6.15-ndb-7.3.4-cluster; and the client application (VB.Net) connects to the cluster using MySQL .Net Connector 6.9.4.

The connection string to be used is:
Server=10.0.0.xxx;User ID=xxxxxxxx;Password=xxxxxxxxx;Database=xxxxx;Port=xxxx;Connection LifeTime=600;Max Pool Size=50;Min Pool Size=10;Convert Zero Datetime=True;Connection Timeout=1;

The connection timeout of 1 seconds, ensures that the connection has to succeed in 1 second, and that works correctly. Further to this we use MySQL Command to populate MySQL DataReader.

ADO Command is used:
MySQL_Command.Connection = MySQL_Connection 'This is already connected successfully
MySQL_Command.CommandTimeout = 1 '1 second (that is correct)
MySQL_Command.CommandText = SQL_String
MySQL_DataReader = MySQL_Command.ExecuteReader 'This throws exception the following exception

[5: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.]

This is correct message as the exception kicks in 1.187 seconds, and the application does take care of this, by initiating a new connection, and re-issuing the request.

But on the same code, with the same command timeout, we are also observing an exception kicking in after 6.552 seconds, this is not acceptable with our application.

Our application is a telecom application, and response time requirements are immediate, and does handle a big number of transactions without any error or timeout. As per the application, it does handle timeout exceptions (which happens rarely); and if exception kicks in, the connection are re-connected, and the commands are called again. Everything works the way it should.

But once in a while we will hit the same exception with a timeout of 6+ seconds; which should not happen as Commandtimeout is set to 1.

Would request, if someone has noticed similar behavior and have a suggestion for the same.

Getting error "The given key was not present in the dictionary." (no replies)

$
0
0
I am using Hostgator as my host. I'm using the .net connector 6.0.7.0 and I can't seem to get the MySqlCommand.ExecuteReader() to work. It keeps giving me the error "The given key was not present in the dictionary"

_connectionString = string.Format("server={0}; database={1}; user id={2}; password={3}; charset=utf8; pooling=false",
server,
database,
username,
password);
var conn = new MySqlConnection(_connectionString)
MySqlCommand cmd = new MySqlCommand("SELECT * FROM wp_users", conn);
MySqlDataReader reader = cmd.ExecuteReader();

Any help is greatly appreciated. I tried searching through the forums for the answer but couldn't find it.

INFORMATION_SCHEMA table gets locked (no replies)

$
0
0
We use stored procedures to access data from MySql server using our .NET applications. We frequently run into issue where the INFORMATION_SCHEMA table gets locked and they are in the opening state. The problem is that we are not accessing the system tables directly, so not sure if it is a limitation of MySql or there is something to do with our configuration.

Attached is a screen for the same. There are 100s of records like this.


Using InnoDB as DB Engine.

Windows 10 Universal App - SSL error with SSL disabled (no replies)

$
0
0
I'm writing Windows 10 Universal App that operates on MySQL database.
But when I try to open connection with my database I get error:

An exception of type 'System.NotImplementedException' occurred in MySql.Data.RT.dll but was not handled in user code

Additional information: SSL not supported in this WinRT release.

I have disabled SSL in MySQL Workbench and also added skip-ssl command in my.ini file and I still get this error.
How can I fix this?

Unable to uninstall .NET Connector 6.4.4 (2 replies)

$
0
0
Hello

I'm currently trying to install .NET Connector 6.9.7 but every time I try to install it fails because of the existence on my PC of version of .NET Connector 6.4.4.

Although .NET Connector 6.4.4 is registered in the Windows Control Panel Programs and Features app and MySQL Installer 1.4.11, uninstalling, reinstallation or upgrading .NET Connector 6.4.4 fails.

There is no folder for version 6.4.4 of .NET Connector under C:\Program Files\MySQL or C:\ProgramData\MySQL but a few registry settings exist.

What follows is part of a log created by Microsoft Web Installer Platform when I tried to upgrade to .NET Connector 6.9.7.

Can you please advise?

Thanks

Martin O'Shea.

DownloadManager Information: 0 : Loading product xml from: https://go.microsoft.com/?linkid=9842185
DownloadManager Information: 0 : https://go.microsoft.com/?linkid=9842185 responded with 302
DownloadManager Information: 0 : Response headers:
HTTP/1.1 302 Moved Temporarily
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/html; charset=utf-8
Expires: -1
Location: https://www.microsoft.com/web/webpi/5.0/webproductlist.xml
Server: Microsoft-IIS/8.0
X-AspNetMvc-Version: 4.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Content-Length: 175
Date: Sat, 12 Sep 2015 14:37:46 GMT
Connection: keep-alive


DownloadManager Information: 0 : Content-Encoding header: 'gzip'
DownloadManager Information: 0 : Number of bytes downloaded over the internet: '1029769'
DownloadManager Information: 0 : Number of bytes after possible decompression: '8188398'
DownloadManager Warning: 0 : Could not resolve keyword ID 5nine
DownloadManager Warning: 0 : Could not resolve keyword ID Security
DownloadManager Warning: 0 : Could not resolve keyword ID 5nine
DownloadManager Warning: 0 : Could not resolve keyword ID Security
DownloadManager Warning: 0 : Could not resolve keyword ID Backup
DownloadManager Warning: 0 : Could not resolve keyword ID Portal
DownloadManager Warning: 0 : Could not resolve keyword ID Backup
DownloadManager Warning: 0 : Could not resolve keyword ID Portal
DownloadManager Warning: 0 : Could not resolve keyword ID Backup
DownloadManager Warning: 0 : Could not resolve keyword ID Resource Provider
DownloadManager Warning: 0 : Could not resolve keyword ID Cloud Cruiser
DownloadManager Warning: 0 : Could not resolve keyword ID Billing
DownloadManager Warning: 0 : Could not resolve keyword ID Showback
DownloadManager Warning: 0 : Could not resolve keyword ID Cloud Cruiser
DownloadManager Warning: 0 : Could not resolve keyword ID Billing
DownloadManager Warning: 0 : Could not resolve keyword ID Showback
DownloadManager Warning: 0 : Could not resolve keyword ID Terawe
DownloadManager Information: 0 : Filtering by current OS
DownloadManager Information: 0 : Loading product xml from: https://www.microsoft.com/web/webpi/5.0/webapplicationlist.xml
DownloadManager Information: 0 : Content-Encoding header: 'gzip'
DownloadManager Information: 0 : Number of bytes downloaded over the internet: '113206'
DownloadManager Information: 0 : Number of bytes after possible decompression: '445834'
DownloadManager Warning: 0 : Could not resolve keyword ID MicrosoftAzure
DownloadManager Information: 0 : Filtering by current OS
DownloadManager Information: 0 : Sucessfully loaded the feed 'https://www.microsoft.com/web/webpi/5.0/webapplicationlist.xml' after preprocessing, location on disk: 'C:\Users\Martin O'Shea\AppData\Local\Microsoft\Web Platform Installer\preprocessor\-97141593.xml'
DownloadManager Information: 0 : Loading product xml from: https://www.microsoft.com/web/webpi/5.0/mediaproductlist.xml
DownloadManager Information: 0 : https://www.microsoft.com/web/webpi/5.0/mediaproductlist.xml responded with 304
DownloadManager Information: 0 : Response headers:
HTTP/1.1 304 Not Modified
Content-Type: text/xml
Last-Modified: Thu, 08 May 2014 18:42:31 GMT
ETag: "26a51545ed6acf1:0"
Cache-Control: max-age=540
Date: Sat, 12 Sep 2015 14:37:53 GMT
Connection: keep-alive
X-CCC: GB
X-CID: 2


DownloadManager Information: 0 : Remote file has not changed, using local cached file: C:\Users\Martin O'Shea\AppData\Local\Microsoft\Web Platform Installer\-230948881.xml.temp
DownloadManager Information: 0 : Filtering by current OS
DownloadManager Information: 0 : Sucessfully loaded the feed 'https://www.microsoft.com/web/webpi/5.0/mediaproductlist.xml' after preprocessing, location on disk: 'C:\Users\Martin O'Shea\AppData\Local\Microsoft\Web Platform Installer\preprocessor\-230948881.xml'
DownloadManager Information: 0 : Loading product xml from: https://www.microsoft.com/web/webpi/5.0/ToolsProductList.xml
DownloadManager Information: 0 : https://www.microsoft.com/web/webpi/5.0/ToolsProductList.xml responded with 304
DownloadManager Information: 0 : Response headers:
HTTP/1.1 304 Not Modified
Content-Type: text/xml
Last-Modified: Mon, 02 Feb 2015 17:50:31 GMT
ETag: "1a5deabc103fd01:0"
Cache-Control: max-age=322
Date: Sat, 12 Sep 2015 14:37:53 GMT
Connection: keep-alive
X-CCC: GB
X-CID: 2


DownloadManager Information: 0 : Remote file has not changed, using local cached file: C:\Users\Martin O'Shea\AppData\Local\Microsoft\Web Platform Installer\-1135381691.xml.temp
DownloadManager Information: 0 : Filtering by current OS
DownloadManager Information: 0 : Sucessfully loaded the feed 'https://www.microsoft.com/web/webpi/5.0/ToolsProductList.xml' after preprocessing, location on disk: 'C:\Users\Martin O'Shea\AppData\Local\Microsoft\Web Platform Installer\preprocessor\-1135381691.xml'
DownloadManager Information: 0 : Loading product xml from: https://www.microsoft.com/web/webpi/5.0/enterpriseproductlist.xml
DownloadManager Information: 0 : https://www.microsoft.com/web/webpi/5.0/enterpriseproductlist.xml responded with 304
DownloadManager Information: 0 : Response headers:
HTTP/1.1 304 Not Modified
Content-Type: text/xml
Last-Modified: Thu, 08 May 2014 18:42:32 GMT
ETag: "8285645ed6acf1:0"
Cache-Control: max-age=580
Date: Sat, 12 Sep 2015 14:37:53 GMT
Connection: keep-alive
X-CCC: GB
X-CID: 2


DownloadManager Information: 0 : Remote file has not changed, using local cached file: C:\Users\Martin O'Shea\AppData\Local\Microsoft\Web Platform Installer\-1877981721.xml.temp
DownloadManager Information: 0 : Filtering by current OS
DownloadManager Information: 0 : Sucessfully loaded the feed 'https://www.microsoft.com/web/webpi/5.0/enterpriseproductlist.xml' after preprocessing, location on disk: 'C:\Users\Martin O'Shea\AppData\Local\Microsoft\Web Platform Installer\preprocessor\-1877981721.xml'
DownloadManager Information: 0 : Sucessfully loaded the feed 'https://go.microsoft.com/?linkid=9842185' after preprocessing, location on disk: 'C:\Users\Martin O'Shea\AppData\Local\Microsoft\Web Platform Installer\preprocessor\1343597488.xml'
DownloadManager Information: 0 : Getting ratings file from http://go.microsoft.com/?linkid=9752395
DownloadManager Information: 0 : http://go.microsoft.com/?linkid=9752395 responded with 302
DownloadManager Information: 0 : Response headers:
HTTP/1.1 302 Moved Temporarily
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/html; charset=utf-8
Expires: -1
Location: http://www.microsoft.com/web/handlers/WebPI.ashx?command=getatomfeedwithavgratingquery
Server: Microsoft-IIS/8.0
X-AspNetMvc-Version: 4.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Content-Length: 203
Date: Sat, 12 Sep 2015 14:37:53 GMT
Connection: keep-alive


DownloadManager Information: 0 : Content-Encoding header: 'gzip'
DownloadManager Information: 0 : Number of bytes downloaded over the internet: '23286'
DownloadManager Information: 0 : Number of bytes after possible decompression: '77396'
DownloadManager Warning: 0 : Error getting last-modified header, error code: 12150
DownloadManager Warning: 0 : HttpQueryInfoWithRetry for HTTP_QUERY_LAST_MODIFIED failed.
DownloadManager Information: 0 : Ratings file loaded successfully
DownloadManager Error: 0 : WebClient download error. Uri: http://i.expression.microsoft.com/cc265059.100web(en-us,MSDN.10).png, Error: System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.WebClient.DownloadFile(Uri address, String fileName)
at Microsoft.Web.PlatformInstaller.UI.DownloadServiceImplementation.DownloadFile(Uri uri, String filePath)
DownloadManager Error: 0 : WebClient download error. Uri: http://i.expression.microsoft.com/cc265059.100web(en-us,MSDN.10).png, Error: System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.WebClient.DownloadFile(Uri address, String fileName)
at Microsoft.Web.PlatformInstaller.UI.DownloadServiceImplementation.DownloadFile(Uri uri, String filePath)
DownloadManager Information: 0 : http://i.expression.microsoft.com/cc265059.100web(en-us,MSDN.10).png responded with 404
DownloadManager Information: 0 : Response headers:
HTTP/1.1 404 Not Found
Content-Type: text/html
Server: Microsoft-IIS/7.5
P3P: CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"
X-Powered-By: ASP.NET
Date: Sat, 12 Sep 2015 14:38:28 GMT
Cteonnt-Length: 1245
Content-Encoding: gzip
Content-Length: 795


DownloadManager Information: 0 : http://i.expression.microsoft.com/cc265059.100web(en-us,MSDN.10).png responded with 404
DownloadManager Information: 0 : Response headers:
HTTP/1.1 404 Not Found
Content-Type: text/html
Server: Microsoft-IIS/7.5
P3P: CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"
X-Powered-By: ASP.NET
Date: Sat, 12 Sep 2015 14:38:28 GMT
Cteonnt-Length: 1245
Content-Encoding: gzip
Content-Length: 795


DownloadManager Error: 0 : WinInet download error. Uri: http://i.expression.microsoft.com/cc265059.100web(en-us,MSDN.10).png, Error: System.Net.WebException: Url 'http://i.expression.microsoft.com/cc265059.100web(en-us,MSDN.10).png' returned HTTP status code: 404
at Microsoft.Web.PlatformInstaller.ManagedWinInet.OpenUrlAndFollowRedirects(Uri& uri, IntPtr& hInetFile)
at Microsoft.Web.PlatformInstaller.ManagedWinInet.DownloadFile(Uri uri, String fileName, String& contentDispositionFileName)
at Microsoft.Web.PlatformInstaller.UI.DownloadServiceImplementation.DownloadFile(Uri uri, String filePath)
DownloadManager Error: 0 : WinInet download error. Uri: http://i.expression.microsoft.com/cc265059.100web(en-us,MSDN.10).png, Error: System.Net.WebException: Url 'http://i.expression.microsoft.com/cc265059.100web(en-us,MSDN.10).png' returned HTTP status code: 404
at Microsoft.Web.PlatformInstaller.ManagedWinInet.OpenUrlAndFollowRedirects(Uri& uri, IntPtr& hInetFile)
at Microsoft.Web.PlatformInstaller.ManagedWinInet.DownloadFile(Uri uri, String fileName, String& contentDispositionFileName)
at Microsoft.Web.PlatformInstaller.UI.DownloadServiceImplementation.DownloadFile(Uri uri, String filePath)
DownloadManager Information: 0 : Adding product MySQL Connector/Net (MySQLConnector) to cart
DownloadManager Information: 0 : Adding product 'MySQLConnector'
DownloadManager Information: 0 : Setting current install to 1
DownloadManager Information: 0 : Starting install sequence
DownloadManager Information: 0 : Downloading file 'http://dev.mysql.com/get/Downloads/Connector-Net/mysql-connector-net-6.9.7.msi' to: C:\Users\Martin O'Shea\AppData\Local\Temp\tmp7982.tmp
DownloadManager Information: 0 : http://dev.mysql.com/get/Downloads/Connector-Net/mysql-connector-net-6.9.7.msi responded with 302
DownloadManager Information: 0 : Response headers:
HTTP/1.1 302 Found
Date: Sat, 12 Sep 2015 14:39:24 GMT
Server: Apache/2.2
Set-Cookie: MySQL_S=tfh16cq5fa2u26fhsn19gqcbls0vtb80; path=/; domain=mysql.com; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Location: http://cdn.mysql.com/Downloads/Connector-Net/mysql-connector-net-6.9.7.msi
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 122
Content-Type: text/html; charset=UTF-8


DownloadManager Information: 0 : Number of bytes downloaded over the internet: '12177408'
DownloadManager Information: 0 : Number of bytes after possible decompression: '12177408'
DownloadManager Information: 0 : Moving downloaded file 'C:\Users\Martin O'Shea\AppData\Local\Temp\tmp7982.tmp' to: C:\Users\Martin O'Shea\AppData\Local\Microsoft\Web Platform Installer\installers\MySQLConnector\E60C34146B08E8044B531E92EBC7431F75D6E1CF\mysql-connector-net-6.9.7.msi
DownloadManager Information: 0 : Starting EXE command for product 'MySQL Connector/Net'. Commandline is: 'C:\Windows\system32\msiexec.exe /x {5FD88490-011C-4DF1-B886-F298D955171B} /qn'. Process Id: 4792
DownloadManager Information: 0 : Install exit code for product 'MySQL Connector/Net' is '1605'
DownloadManager Information: 0 : Ignoring exit code '1605' for product 'MySQL Connector/Net'
DownloadManager Information: 0 : Starting EXE command for product 'MySQL Connector/Net'. Commandline is: 'C:\Windows\system32\msiexec.exe /x {2DDC7E93-29AB-4260-A9DB-697F7FA88157} /qn'. Process Id: 3628
DownloadManager Information: 0 : Install exit code for product 'MySQL Connector/Net' is '1603'
DownloadManager Information: 0 : Ignoring exit code '1603' for product 'MySQL Connector/Net'
DownloadManager Information: 0 : Starting MSI install for msi 'C:\Users\Martin O'Shea\AppData\Local\Microsoft\Web Platform Installer\installers\MySQLConnector\E60C34146B08E8044B531E92EBC7431F75D6E1CF\mysql-connector-net-6.9.7.msi', commandline: 'ACTION=INSTALL REBOOT=ReallySuppress'
DownloadManager Information: 0 : MSI install return value for product 'MySQL Connector/Net' is '1603'
DownloadManager Error: 0 : Install return code for product 'MySQL Connector/Net' is Failure (A previous version of Connector/Net is installed that cannot be automatically uninstalled. You will need to remove it manually first.)
DownloadManager Information: 0 : Product MySQL Connector/Net done install completed
DownloadManager Information: 0 : Increasing current install to 2
DownloadManager Information: 0 : MySQL Connector/Net installation log: C:\Users\Martin O'Shea\AppData\Local\Microsoft\Web Platform Installer\logs\install\2015-09-12T15.39.35\mysql-connector-net-6.9.7.txt
DownloadManager Information: 0 : Product: MySQLConnector, Install Status: InstallCompleted-Failure, Install Time: 00:00:04.0662326

Authentication error / Reading from the stream has failed (no replies)

$
0
0
Using MySql 5.6.19 and .NET Connector 6.9.7.0 I get a connection/authentication error when a client application is trying to connect to MySql server running on the same machine (Windows Server 2008 x64 SP2).

Error message:

Authentication to host <ip-adres> for user <user> using method 'mysql_native_password' failed with message: Reading from the stream has failed.

Where of course <ipadres> and <user> contain the actual data used. This error does NOT occur when running the same executable and same credentials from another computer on the same LAN and connecting to this server.

The funny thing is that using the mysql command-line client the login works perfectly. So I know it's the combination of the MySql server and the .NET connector when running client + server on the same machine.

Changing ip-address to 127.0.0.1 or using a domain name does not matter; same error.

This error has already been reported as a bug for the server, but I suspect it's got something to do with the combination with the .NET connector (see also https://bugs.mysql.com/bug.php?id=76597).

So far no solution has been reported.

6.9.7.0 causes MySql syntax error in param query (no replies)

$
0
0
Switching from 6.9.5.0 to 6.9.7.0 has caused a parametrised update query to fail; removing then a newline character from the query suddenly makes it work again - which is clearly not how it's supposed to work.

Here's the code that used to work under older Connector .NET versions but fails with a 'You have an error in your SQL syntax; ..... at line 1' error using 6.9.7.0:

command.CommandText = @"
update
meter_stand
set
status=@status
,invoer=@invoer
where
id=@id";

pars.Clear();
pars.AddWithValue("@id", msId);
pars.AddWithValue("@status", 2);
pars.AddWithValue("@invoer", 1);
command.ExecuteNonQuery();

(where meter_stand is a table where the columns mentioned are integer, and pars is the command object's parameter collection, note that i'm using tab's instead of spaces for the query lines)

Now just changing the query (by just removing a newline) to the following makes the error disappear using 6.9.7.0; I'm quite sure that's not how it is supposed to work:

command.CommandText = @"
update
meter_stand
set
status=@status
,invoer=@invoer
where id=@id"; /* just removing the newline gets rid of the syntax error !! */

Now what to make of this behaviour? Using the latest MySql server btw.

Using local PFX file fails (no replies)

$
0
0
When trying to set up an SSL secured connection using a locally stored PFX file, the follwing error is thrown when executing the Open() method of the MySqlConnection:
"Received an unexpected EOF or 0 bytes from the transport stream".

The PFX file has been generated from the server's SSL certificate, and is not expired. My connection string reads "server=123.45.67.89; database=name-of-db; username=name-of-user; password=secret; SSL Mode=Required; CertificateFile=C:\client.pfx; CertificatePassword=secret; use compression=true"

The stack trace in the VS studio debugger reads:
at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count)
at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
at System.Net.Security.SslStream.AuthenticateAsClient(String targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, Boolean checkCertificateRevocation)
at MySql.Data.MySqlClient.NativeDriver.StartSSL()
at MySql.Data.MySqlClient.NativeDriver.Open()
at MySql.Data.MySqlClient.Driver.Open()
at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
at MySql.Data.MySqlClient.MySqlPool.GetConnection()
at MySql.Data.MySqlClient.MySqlConnection.Open()

I would greatly appreciate any thought or hints.
Thanks, Thomas

DataSet null exception (no replies)

$
0
0
Hi there,

Can anyone give me a "hand" with this problem? I am making a C# app with mysql database server. The aplication has to process 12000 records by day (more or less). My real problem is not the amount of data to process but a strange problem with the adapter of the datatable on the main dataset.


here is the command collection used by the below method:
this._commandCollection[2] = new global::MySql.Data.MySqlClient.MySqlCommand();
this._commandCollection[2].Connection = this.Connection;
this._commandCollection[2].CommandText = @"SELECT `id` FROM `process_roll_parts` WHERE roll_id =@roll_id AND part_id =@part_id";
this._commandCollection[2].CommandType = global::System.Data.CommandType.Text;
param = new global::MySql.Data.MySqlClient.MySqlParameter();
param.ParameterName = "@roll_id";
param.DbType = global::System.Data.DbType.Int64;
param.MySqlDbType = global::MySql.Data.MySqlClient.MySqlDbType.Int64;
param.IsNullable = true;
param.SourceColumn = "roll_id";
this._commandCollection[2].Parameters.Add(param);
param = new global::MySql.Data.MySqlClient.MySqlParameter();
param.ParameterName = "@part_id";
param.DbType = global::System.Data.DbType.Int32;
param.MySqlDbType = global::MySql.Data.MySqlClient.MySqlDbType.Int32;
param.IsNullable = true;
param.SourceColumn = "part_id";
this._commandCollection[2].Parameters.Add(param);

this is the method that I invoque to access the data and get it back:

[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual long GetProcessRollPartsDataByID2(long roll_id, int part_id)
{
this.Adapter.SelectCommand = this.CommandCollection[2];
this.Adapter.SelectCommand.Parameters[0].Value = ((long)(roll_id));
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(part_id));
global::System.Data.ConnectionState previousConnectionState = this.Adapter.SelectCommand.Connection.State;
if (((this.Adapter.SelectCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open))
{
this.Adapter.SelectCommand.Connection.Open();
}
try
{
int returnValue = int.Parse(this.Adapter.SelectCommand.ExecuteScalar().ToString());
return returnValue;
}
finally
{
if ((previousConnectionState == global::System.Data.ConnectionState.Closed))
{
this.Adapter.SelectCommand.Connection.Close();
}
}
}


The is that in run time the line "this.Adapter.SelectCommand = this.CommandCollection[2];" returns SystemNullNxception, so used the debug and what I find out is that just after the debugger enter this method the "this.CommandCollection[2]" is NULL but if I wait for 2 second it will be not NULL. Anyone has came accross this problem? .Net 4, MySql Connector 6.9.7.0, VS 2013 Community.

Any idear how to repair this issue?

Best regards,
Pedro Dias

Which connector to be used for .net4.5.2 and mysql 5.6.25 (no replies)

$
0
0
Please suggest which mysqlconnector i should used for my application which have .net 4.5.2 and mysql 5.6.25.
Previously my application having .net 3.5 with mysql 5.5 were using mysql-connector-net-6.4.6
I want's to used as advanced connector as possible

Is Oracle staff still attending this forum? (no replies)

$
0
0
Given the amount of questions on this forum without any reaction whatsoever from Oracle staff dealing with the MySql .NET Connector, I wonder whether the staff is still there?

Entity framework returns entity which doesn't exist in database (no replies)

$
0
0
I got a very strange behavior with EF6. I have an entity which insertion failed, but when i enumerate the entities, the first time after that, I retrieve the entity, even if i create a new context
Here a sample code in C#


MyDbContext ctx = new MyDbContext();
Category category = new Category()
{
Name = "TEST INSERTION FAILED",
TranslationCategories = new List<TranslationCategory>()
{
new TranslationCategory()
{
LangId = "FR",
Name= "FR translation"
}
}
};
try
{
ctx.Categories.Add(category);
await ctx.SaveChangesAsync();
}
catch(Exception ex)
{
Console.WriteLine(ex.Message);
// throw exception because "TranslationCategory" table doesn't exist in DB
}
MyDbContext ctx2 = new MyDbContext();
foreach(var o in ctx2.Categories.ToList())
{
Console.WriteLine(o.Name);
//output : "TEST INSERTION FAILED" + categories stored in DB
// Why category "TEST INSERTION FAILED" in ctx2.Categories ?
}
Console.WriteLine("****************");
foreach (var o in ctx2.Categories.ToList())
{
Console.WriteLine(o.Name);
// ouput : only categories stored in DB
}


The same code, with same schema in sql server, doesn't reproduce this bug.

DateTime ambiguity (no replies)

$
0
0
I'm getting the following error in Visual Studio 2015 when trying to add a dataset.

BC31429 'DateTime' is ambiguous because multiple kinds of members with this name exist in enum 'MySqlDbType'.

MYSQL net connector 6.9.7
MYSQL for VS 1.2.4

Any ideas?

Workbench Connects/Auths to Database but Application Fails (no replies)

$
0
0
A puzzling problem to me.

I can connect to my database using mySQL Workbench and manipulate the data however my .NET app using the same credentials is denied.

---Authentication to host '(server FQDN)' for user 's_user' using method 'mysql_native_password' failed with message: Access denied for user 's_user'@'us00020324.company.se' (using password: YES)---

The DBA's explanation was not clear to me, the mySQL log shows:

--- log: 2015-10-08 13:47:24 12996 [Warning] IP address 'x.x.x.x' could not be resolved: Name or service not known ->> where x.x.x.x is a real IP. ---

Then she said something about no PTR but did not say if that mattered.

So my app only has 'username' specified for the DB connection NOT user@domain.

The SQL server error appears to append the domain, which is my PC name and company domain.

I dont know what the problem is.. the username should be different or the SQL server is doing a reverse lookup??? But why does it work with Workbench.

Nothing is ever easy. Thoughts.. Thanks!

MySQL + Windows 10 IoT core (no replies)

$
0
0
I tried to add MySQL.NET connector via NuGet in UWP project for RPi and Win10IoT core and got errors:

MySQL.NET 6.6.4 is not compatible with UAP,Version=v10.0.
Some packages are not compatible with UAP,Version=v10.0.
MySQL.NET 6.6.4 is not compatible with UAP,Version=v10.0 (win10-arm).
Some packages are not compatible with UAP,Version=v10.0 (win10-arm).
MySQL.NET 6.6.4 is not compatible with UAP,Version=v10.0 (win10-arm-aot).
Some packages are not compatible with UAP,Version=v10.0 (win10-arm-aot).
MySQL.NET 6.6.4 is not compatible with UAP,Version=v10.0 (win10-x86).
Some packages are not compatible with UAP,Version=v10.0 (win10-x86).
MySQL.NET 6.6.4 is not compatible with UAP,Version=v10.0 (win10-x86-aot).
Some packages are not compatible with UAP,Version=v10.0 (win10-x86-aot).
MySQL.NET 6.6.4 is not compatible with UAP,Version=v10.0 (win10-x64).
Some packages are not compatible with UAP,Version=v10.0 (win10-x64).
MySQL.NET 6.6.4 is not compatible with UAP,Version=v10.0 (win10-x64-aot).
Some packages are not compatible with UAP,Version=v10.0 (win10-x64-aot).

Also I tried to add linq2db and got the same errors.

Could anyone help me? Or MySQL doesn't work with Win10 IoT core now?

Connector/NET 6.9.8 Install rolls back (no replies)

$
0
0
The Connector Installer (even the MySQL Installer Tool) Fails with an error during installing web Providers.

Atfer deselecting the web Providers in the NET Connector Installer the Installation works like a charm.

The Problem occours on serverel Systems (this one is a Win 2012 R2 System with NEt 3.5 and 4.5.2 ) both Frameworks removed and reinstalled to clearify that the Frameworks installed correctly and nothing is damagaed.


Action 23:28:42: InstallFiles. Copying new files
InstallFiles: File: MySql.Web.dll, Directory: C:\Program Files (x86)\MySQL\MySQL Connector Net 6.9.8\Assemblies\v2.0\, Size: 147456
InstallFiles: File: MySql.Web.v20.dll, Directory: C:\Program Files (x86)\MySQL\MySQL Connector Net 6.9.8\Assemblies\v2.0\, Size: 155648
InstallFiles: File: MySql.Web.dll, Directory: C:\Program Files (x86)\MySQL\MySQL Connector Net 6.9.8\Assemblies\v4.0\, Size: 175104
InstallFiles: File: MySql.Web.dll, Directory: C:\Program Files (x86)\MySQL\MySQL Connector Net 6.9.8\Assemblies\v4.5\, Size: 175104
InstallFiles: File: MySql.Web.dll, Directory: , Size: 147456
InstallFiles: File: MySql.Web.dll, Directory: , Size: 175104
Action 23:28:43: ManagedWebInstall. Registering web providers in machine.config
CAQuietExec: Microsoft (R) .NET Framework-Installationsprogramm, Version 4.0.30319.33440
CAQuietExec: Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
CAQuietExec:
CAQuietExec: Fehler bei der Installation, und der Rollback wurde ausgefhrt.
CAQuietExec: Error 0xffffffff: Command line returned an error.
CAQuietExec: Error 0xffffffff: QuietExec Failed
CAQuietExec: Error 0xffffffff: Failed in ExecCommon method
CustomAction ManagedWebInstall returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
10/23/2015 23:28:43.587 [20472]: Assembly Install: Failing with hr=80070005 at RemoveDirectoryAndChildren, line 396

10/23/2015 23:28:43.587 [20472]: Detailed info about C:\Windows\assembly\tmp\BV3QKOS7\MySql.Web.dll

10/23/2015 23:28:43.590 [20472]: File attributes: 00000080

10/23/2015 23:28:43.712 [20472]: Restart Manager Info: 1 entries

10/23/2015 23:28:43.713 [20472]: App[0]: (20472) Windows Installer (msiserver), type = 3

10/23/2015 23:28:43.713 [20472]: Security info:

10/23/2015 23:28:43.714 [20472]: Owner: S-1-5-18

10/23/2015 23:28:43.714 [20472]: Group: S-1-5-18

10/23/2015 23:28:43.714 [20472]: DACL information: 4 entries:

10/23/2015 23:28:43.714 [20472]: ACE[0]: Type = 0x00, Flags = 010, Mask = 001f01ff, SID = S-1-5-18

10/23/2015 23:28:43.715 [20472]: ACE[1]: Type = 0x00, Flags = 010, Mask = 001f01ff, SID = S-1-5-32-544

10/23/2015 23:28:43.715 [20472]: ACE[2]: Type = 0x00, Flags = 010, Mask = 001200a9, SID = S-1-5-32-545

10/23/2015 23:28:43.715 [20472]: ACE[3]: Type = 0x00, Flags = 010, Mask = 001200a9, SID = S-1-15-2-1

10/23/2015 23:28:43.719 [20472]: Assembly Install: Failing with hr=80070005 at RemoveDirectoryAndChildren, line 396

10/23/2015 23:28:43.720 [20472]: Detailed info about C:\Windows\assembly\tmp\0IN1U0SD\MySql.Web.dll

10/23/2015 23:28:43.720 [20472]: File attributes: 00000080

10/23/2015 23:28:43.832 [20472]: Restart Manager Info: 1 entries

10/23/2015 23:28:43.832 [20472]: App[0]: (20472) Windows Installer (msiserver), type = 3

10/23/2015 23:28:43.833 [20472]: Security info:

10/23/2015 23:28:43.833 [20472]: Owner: S-1-5-18

10/23/2015 23:28:43.834 [20472]: Group: S-1-5-18

10/23/2015 23:28:43.834 [20472]: DACL information: 4 entries:

10/23/2015 23:28:43.834 [20472]: ACE[0]: Type = 0x00, Flags = 010, Mask = 001f01ff, SID = S-1-5-18

10/23/2015 23:28:43.835 [20472]: ACE[1]: Type = 0x00, Flags = 010, Mask = 001f01ff, SID = S-1-5-32-544

10/23/2015 23:28:43.835 [20472]: ACE[2]: Type = 0x00, Flags = 010, Mask = 001200a9, SID = S-1-5-32-545

10/23/2015 23:28:43.835 [20472]: ACE[3]: Type = 0x00, Flags = 010, Mask = 001200a9, SID = S-1-15-2-1

Action ended 23:28:43: InstallFinalize. Return value 3.
Action 23:28:43: Rollback. Rolling back action:
Rollback: Registering web providers in machine.config
Rollback: Copying new files
Rollback: Unregistering data provider from machine.config
Rollback: Updating component registration

Try to connect to MySql via SSL from .net, and gets error. (no replies)

$
0
0
I following the solution from the link. and get error: Received an unexpected EOF or 0 bytes from the transport stream

http://dev.mysql.com/doc/connector-net/en/connector-net-tutorials-ssl.html?acf=1#add-comment

Anyone help?

I test to remove CertificateFile and CertificatePassword. It works. However, I don't think this is secured under SSL.

using (MySqlConnection connection = new MySqlConnection(
"server=xxx.com;port=3306;database=test;user=test;pwd=testpass;" +
"CertificateFile=C:\\xxxx\\client.pfx" +
";CertificatePassword=xxxxx;" +
"SSL Mode=Required"))
{
connection.Open();
}
Viewing all 1447 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>