[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Connexion distante à une base de données MySQL



Salut,

> Pour alwaysdata (mysql-base.alwaysdata.net) qui est un mutualisé sur
> lequel je test la connexion distante, avec mon script, je n'arrive pas à
> me connecter en SSH.

Moi, j'y arrive quand bien même mon tunnel SSH n'est pas sur le port 22 :

# mysql -u root -p mysql-base.alwaysdata.net
Enter password: 
ERROR 1049 (42000): Unknown database 'mysql-base.alwaysdata.net'
# mysql -u user -p mysql-base.alwaysdata.net
Enter password: 
ERROR 1045 (28000): Access denied for user 'user'@'localhost' (using password: YES)
# mysql -u user -h mysql-base.alwaysdata.net
ERROR 1045 (28000): Access denied for user 'user'@'MON IP' (using password: NO)
# mysql -u user -p -h mysql-base.alwaysdata.net
Enter password: 
ERROR 1045 (28000): Access denied for user 'user'@'MON IP' (using password: NO)
# 

Logique, puisque l'utilisateur user n'existe pas et je n'ai pas le password.

Mais le serveur mysql-base.alwaysdata.net répond ;-)

Je pense que c'est ton script qui déconne quelque part.

Bonne pioche,

Ph. Gras

Reply to: