mysqldatabasemysql-error-2003pantheon

ERROR 2003 (HY000): Can't connect to MySQL server on '....' (65)


This is the first time I am setting up a remote connection and I am doing this.

mysql -u user -password -h dbserver.dev.5bfed886-8150-4a8d-b0d5-4c7cffb5c54c.drush.in -P 11831 dbname

I get this error back.

ERROR 2003 (HY000): Can't connect to MySQL server on 'dbserver.$ENV.$SITE.drush.in' (65)

I have scoured the web I am not able to find a solution, I would appreciate any help. I apologize beforehand if any information is missing (I am a first timer).


Solution

  • Try this:

    mysql -uuser -p -hdbserver.dev.5bfed886-8150-4a8d-b0d5-4c7cffb5c54c.drush.in -P11831
    

    mysql ask you for password after running