This is my connection class for C#, but it doesn't work:
class DB
{
MySqlConnection connection;
//Baglanti adında bir bağlantı oluşturdum
public bool baglanti_kontrol()
{
connection = new MySqlConnection("Server=93.89.xx.xx:3306;Database=database_database;Uid=database_userid;Pwd='password';");
connection.Open();
return true;
}
}
I tried to every solution in the same topic.
My server gives permission for my IP address.
I am getting the following exception:
'x.x.x.x' for user 'xx_xx' using method 'mysql_native_password' failed with message: Access denied for user 'xx_xx'@'x.x.x.x' (using password: YES)'