VB.NET mysql_native_password Access denied

0

What can be failing?

The user has the password: 8vQ3roQMyLAIgcws

I tried changing the password and re-entering but nothing ...

I put the code to make it easier for you to copy:

Imports MySql.Data.MySqlClient

Public Class Form1
    Private cnx As New MySqlConnection
    Private cmd As New MySqlCommand
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Try
            cnx.ConnectionString = "Server=localhost;Port=3306;Database=prueba;Uid=root;Pwd=8vQ3roQMyLAIgcws"
            cnx.Open()
            MsgBox("Conexion OK.")
            cnx.Close()
        Catch ex As Exception
            MsgBox(ex.ToString)
        End Try
    End Sub
End Class

Greetings and thanks!

    
asked by Adrian Hernando Solanas 24.05.2018 в 23:55
source

1 answer

0

Testing I discovered that I had to edit this file:

/xampp/PhpMyadmin/config.inc

And add the password

    
answered by 25.05.2018 / 00:21
source