OVH Community, votre nouvel espace communautaire.

Erreur de connexion MySQL depuis C#


maitredede
21/05/2014, 18h43
Quand je mets comme indiqué dans le mail, le host : "teammcaecastor.mysql.db" => SocketException (voir premier post).
Par contre, si je mets celui indiqué sur le site : "mysql51-122.perso", ça fonctionne...

Bon au moment de la rédaction du post, j'ai des erreurs dans mon code que je dois encore expliquer, mais pour la BDD, ça a l'air de marcher, sous réserve qu'on mettre le nom réel du host, et pas son alias propre à l'hébergement.
Peut-être est-ce une entrée DNS interne manquante ?

En tout cas, merci pour l'aide

maitredede
21/05/2014, 14h24
Ca a l'air de fonctionner. Le temps de corriger mon code (pas avant ce soir), mais déjà le nouveau message d'erreur est encourageant

Merci

pilly52
21/05/2014, 13h17
tu peux retenter ?

maitredede
21/05/2014, 07h43
Dans le mail que j'ai reçu : j'ai comme serveur FTP/WebDav "team-mca.eu ou winweb2.ovh.net"

Dans l'interface web, j'ai "srv-web002".

pilly52
20/05/2014, 15h33
sur quel server se trouve ton site ?

maitredede
19/05/2014, 19h05
Bonjour,

J'ai un site web en asp.net MVC, et j'ai eu erreur de
Code:
[SocketException (0x2afc): Le nom demandé est valide, mais aucune donnée du type requise n’a été trouvée]
   System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6) +8767461
   System.Net.Dns.GetHostEntry(String hostNameOrAddress) +191
   MySql.Data.Common.MyNetworkStream.CreateStream(MySqlConnectionStringBuilder settings, Boolean unix) +119
   MySql.Data.Common.StreamCreator.GetTcpStream(MySqlConnectionStringBuilder settings) +11
   MySql.Data.MySqlClient.NativeDriver.Open() +101

[MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
   MySql.Data.MySqlClient.NativeDriver.Open() +1529
   MySql.Data.MySqlClient.Driver.Open() +260
   MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) +269
   MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection() +18
   MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() +403
   MySql.Data.MySqlClient.MySqlPool.TryToGetDriver() +228
   MySql.Data.MySqlClient.MySqlPool.GetConnection() +106
   MySql.Data.MySqlClient.MySqlConnection.Open() +1579
   System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch(TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed) +207
   System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext) +438
   System.Data.Entity.Core.EntityClient.EntityConnection.Open() +432
Lien : http://team-mca.eu/

Ma chaine de connexion est :
Code:
server=mysql51-122.perso;user id=******;password=******;persist security info=False;database=******;Protocol=tcp
J'ai vérifié les identifiants, changé le serveur (avant, un truc du genre : mabdd.mysql.db), même problème.

Une idée ?