0

I have a website using PHP and MySQL Database that hosting ready. I want to upload data to website by using windows application using VB.net but I cannot connect to database. I try this code to connect to Mysql database:

    Dim conn As MySqlConnection
    conn = New MySqlConnection()
    conn.ConnectionString = "Host=www.mydomain.com; user=test; password=****; database=test;pooling=false"
    Try
        conn.Open()
    Catch myerror As MySqlException
        MsgBox("Error connecting to database! " & myerror.Message)
    End Try

This is message error:

"Error connection to database! Access denied for user 'test'@114.134.189.135' (using password: YES)".

Please help me to solve it.

1

1 Answer 1

1
1.Verify that MySQL service is running on your target machine
2. Ensure that user 'test' having the password 'YES'<br>
2.1 Please login any MySQl UI (Eg.,SQLYog)with your username and password for confirmation
3. If not, create a new user
   CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.