Skip to content

Instantly share code, notes, and snippets.

@den-crane
Last active February 22, 2019 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save den-crane/d6e0f1c7849a0bc44c27eab2de51c911 to your computer and use it in GitHub Desktop.
Save den-crane/d6e0f1c7849a0bc44c27eab2de51c911 to your computer and use it in GitHub Desktop.
# cat /etc/metrika.xml
<yandex>
<dictmysql1>
<port>3306</port>
<connect_timeout>3600</connect_timeout>
<rw_timeout>3600</rw_timeout>
<user>userx</user>
<password>passwordx</password>
<host>hostx</host>
<priority>1</priority>
<db>dbx</db>
</dictmysql1>
</yandex>
# cat dict/dict1.xml
<dictionaries>
<dictionary>
<name>dict1</name>
<source>
<mysql incl="dictmysql1">
<table>dict1</table>
<where>dict1key>=0</where>
<invalidate_query>SELECT max(updated_date) FROM dict1</invalidate_query>
</mysql>
</source>
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment