[Labs-l] MySQL server error
Jeremy Baron
jeremy at tuxmachine.com
Wed May 14 18:16:09 UTC 2014
On Wed, May 14, 2014 at 6:11 PM, Emilio J. RodrÃguez-Posada
<emijrp at gmail.com> wrote:
> I coded a script that uses several wiki databases and servers. When I
> manually execute it, it works fine, but after adding it to cron, it returns
> this error:
[...]
> _mysql_exceptions.OperationalError: (2005, "Unknown MySQL server host
> 's3.labsdb' (0)")
Sounds like whatever host you end up running on is missing /etc/hosts entries.
See https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Help#Connecting_to_the_database_replicas_from_other_Labs_instances
-Jeremy
More information about the Labs-l
mailing list