hello dear friends
i installed visual studio ( full installation)
then i got xampp from their site
i have mysql and apache running
i downloaded the connector from mysql site and i created a simple project to check if i can connect to mysql or not i have made this code so far
Imports System.Data.SqlClient
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim Connection As String = "Data source=localhost;user=root;password=;Initial Catalog=test;Integrated Security=true;"
Dim cn As New SqlConnection(Connection)
Try
cn.Open()
MessageBox.Show("success")
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub
End Class
im having trouble with an exception though it says
{"A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"}
how can i get rid of this, is it because i installed mysql 2005 with visual studio 2008? and maybe it runs with xampp's mysql and creates these problems?
thanks in advance :))))