Bug #74259 unable to connect to local MySQL database from Visual Studio 2013
Submitted: 8 Oct 2014 1:55 Modified: 16 Jan 2015 14:12
Reporter: Mark Dennis Furton Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Visual Studio Plugin Severity:S2 (Serious)
Version:6.2.2 OS:Windows (windows 8)
Assigned to: Assigned Account CPU Architecture:Any
Tags: MySql Connector, MySQL Workbench, visual studio 2013

[8 Oct 2014 1:55] Mark Dennis Furton
Description:
Hi..I am getting an error "The system detected an invalid pointer address in attempting to use a pointer argument in a call"

I  have a Visual Studio project that automatically connects to my mysql database when run. My project suppose to connect to database and display the data on my data grid when opened or executed. The connection was working before, but since yesterday I started getting issue. 

MySql workbench version is 6.2.2
MySQL connector_net 6.9.3
Windows Visual Studio 2013
OS is Windows 8 x64 bit

any advice or solution is appreciated.. Thanks

How to repeat:
-open Visual Studio 2013
-create new project
-create windows form
-click "add references" -select "system.data" and "MySQL.data" click add
-type "Imports MySql.Data.MySqlClient"
- then
Try

            Dim conn As String = "Database=ngp;data source=localhost; user id= root; password=*******"
            Dim connection As New MySqlConnection(conn)

            connection.Open()
            connection.Close()
            MsgBox("Database connection has been established.", MsgBoxStyle.Information)
        Catch ex As Exception
            MsgBox(ex.Message)

        End Try

-save and run for debugging
[8 Oct 2014 1:56] Mark Dennis Furton
this is the error i get

Attachment: error.JPG (image/jpeg, text), 134.19 KiB.

[8 Oct 2014 7:49] Peter Laursen
I do not understand how Workbench is involved here at all?

-- Peter
-- not a MySQL/Oracle person.
[9 Oct 2014 0:50] Mark Dennis Furton
I have a similar issue like this.--#70676 [Com]: Unable to connect to local MySQL database from Visual Studio 2012..however, I am using a newer version of MySQL and VS. So I don't know what steps do apply.
[16 Dec 2014 14:12] Chiranjeevi Battula
Hello Mark Dennis Furton,

Thank you for the bug report.
I tried to reproduce the issue at my end using Visual Studio 2013 (VB.Net), MySQL Connector/Net 6.9.5 but Couldn't trace out any issue to connect database and please find out screenshot.
Could you please list out the steps you tried out at your end? Please provide repeatable test case in order for us to confirm this issue at our end.

Thanks,
Chiranjeevi.
[16 Dec 2014 14:13] Chiranjeevi Battula
connection established screenshot

Attachment: connection established.PNG (image/png, text), 60.66 KiB.

[17 Jan 2015 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".