-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
RequestRequest for image modification or featureRequest for image modification or feature
Description
Currently, the startup scripts tries to connect to MySQL for 30 seconds:
wordpress/php7.2/apache/docker-entrypoint.sh
Lines 255 to 266 in acd229d
| $maxTries = 10; | |
| do { | |
| $mysql = new mysqli($host, $user, $pass, '', $port, $socket); | |
| if ($mysql->connect_error) { | |
| fwrite($stderr, "\n" . 'MySQL Connection Error: (' . $mysql->connect_errno . ') ' . $mysql->connect_error . "\n"); | |
| --$maxTries; | |
| if ($maxTries <= 0) { | |
| exit(1); | |
| } | |
| sleep(3); | |
| } | |
| } while ($mysql->connect_error); |
On older hardware, that's not always enough, especially if MySQL starts from a clean state (no volume created).
It would be great to have a way to configure the timeout, or maybe just prolong it: it would not affect the majority of users and those with slower hardware would just wait a bit longer.
Metadata
Metadata
Assignees
Labels
RequestRequest for image modification or featureRequest for image modification or feature