[Labs-l] MySQL server error
Emilio J. RodrÃguez-Posada
emijrp at gmail.com
Wed May 14 18:11:40 UTC 2014
Hello;
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:
Traceback (most recent call last):
File "wmcounter.py", line 40, in <module>
conn = MySQLdb.connect(host='s3.
labsdb', db='meta_p', read_default_file='~/replica.my.cnf',
use_unicode=True)
File "/usr/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 81, in
Connect
return Connection(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 187,
in __init__
super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (2005, "Unknown MySQL server host
's3.labsdb' (0)")
Why? The tool is wmcounter.
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/labs-l/attachments/20140514/92e4198b/attachment.html>
More information about the Labs-l
mailing list