0
I have this site using Entity framework running normally in mysql localhost database, now I want to put on a server, I have tried to change several times the conneciton string, but it gives two errors that I will list below, I imagine that these errors have to do with the password, since in localhost there is no password, I tried to put the password with "password='password'" and "pwd='password'"
MISTAKES
Mysqlexception: Access denied for user 'meuusario'@'ipdobanco' (using password: NO)
Mysqlexception: Authentication to host 'den1.mysql1.gear.host' for user 'meuusario' using method 'mysql_native_password' failed with message: Access denied for user 'meuusario'@'ipdobanco' (using password: NO)
Current connection
<add name="kiccConnectionString" connectionString="server=localhost;user id=root;persistsecurityinfo=False;database=kicc" providerName="MySql.Data.MySqlClient" />
<add name="kiccEntities" connectionString="metadata=res://*/ModelProduto.csdl|res://*/ModelProduto.ssdl|res://*/ModelProduto.msl;provider=MySql.Data.MySqlClient;provider connection string="server=localhost;user id=root;database=kicc"" providerName="System.Data.EntityClient" />
<add name="kiccEntitiesBanco" connectionString="metadata=res://*/ModelProduto.csdl|res://*/ModelProduto.ssdl|res://*/ModelProduto.msl;provider=MySql.Data.MySqlClient;provider connection string="server=localhost;user id=root;persistsecurityinfo=False;database=kicc"" providerName="System.Data.EntityClient" />
<add name="kiccEntitiesProjeto" connectionString="metadata=res://*/ModelBanco.csdl|res://*/ModelBanco.ssdl|res://*/ModelBanco.msl;provider=MySql.Data.MySqlClient;provider connection string="server=localhost;user id=root;database=kicc"" providerName="System.Data.EntityClient" />
the first is the one that works, right ? what are the 3 others ?
– Rovann Linhalis
I believe it’s from the Entity framework.
– joão Coppula