gurock / testrail-docker

Official repo for TestRail docker support.
Apache License 2.0
54 stars 35 forks source link

How do I access the DB remotely? #23

Open sipani909 opened 2 years ago

sipani909 commented 2 years ago

I cannot access the testrail DB inside the container remotely. Keep getting sock errors or can't connect to SQL DB Error 61.

abhijit.sipani@ASipani ~ % mysql -u root -h 10.110.0.25 -p -P 33060
Enter password: 
ERROR 2003 (HY000): Can't connect to MySQL server on '10.110.0.25:33060' (61)
abhijit.sipani@ASipani ~ % mysql -u root -h 10.110.0.25 -p
Enter password: 
ERROR 2003 (HY000): Can't connect to MySQL server on '10.110.0.25:3306' (61)

Local access fails as well

[ec2-user@ip-10-110-0-25 testrail-docker-master]$ mysql -u root -p 
Enter password: 
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)