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

Connexion string connector NET 6.8.3 / vbnet (1 reply)

$
0
0
Hi,

I'm using connextor NET 6.8.3 and framework .NET 4. I wich to connect to a mysql database, I try this :

Imports System.Data.Sql
Imports System.Data.SqlClient
Imports MySql.Data
Imports MySql.Data.MySqlClient


Public Class Test
Public Sub Connexion()
Dim connStr As String = "SERVER=localhost;DATABASE=GestionDuPersonnel;UID=test;PASSWORD=test"
Dim connection As New MySqlConnection(connStr)
connection.Open()
End Sub
End Class

But I have an error message which is : "Authentication to host 'localhost' for user 'test' using method 'mysql_native_password' failed with message: Access denied for user 'test'@'localhost' (using password: YES)"

But I put a password in connexion string so what happend ?

Thanks

Viewing all articles
Browse latest Browse all 1451

Trending Articles