ucscGenomeBrowser / kent

UCSC Genome Browser source tree. Stable branch: "beta".
http://genome.ucsc.edu/
Other
219 stars 89 forks source link

Wait on mysql server start and stop. #78

Closed DailyDreaming closed 1 year ago

DailyDreaming commented 1 year ago

The startmysql function often returns before the server is fully operational and you get an error like:

Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111 "Connection refused") when trying to connect

This PR solves that issue by waiting for a maximum of 10 seconds before continuing.

DailyDreaming commented 1 year ago

Will re-open after some changes.