<div dir="ltr"><div>Hello;<br><br></div>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:<br><br><br>Traceback (most recent call last):<br>
File "wmcounter.py", line 40, in <module><br>
conn = MySQLdb.connect(host='s3.<div id=":1qr" class="">labsdb', db='meta_p', read_default_file='~/replica.my.cnf', use_unicode=True)<br>
File "/usr/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 81, in Connect<br>
return Connection(*args, **kwargs)<br>
File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 187, in __init__<br>
super(Connection, self).__init__(*args, **kwargs2)<br>
_mysql_exceptions.OperationalError: (2005, "Unknown MySQL server host 's3.labsdb' (0)")<br><br><br></div><div id=":1qr" class="">Why? The tool is wmcounter.<br><br></div><div id=":1qr" class="">Thanks<br>
</div><br></div>