Tábhachtach: Tá an leathanach seo ag baint úsáide as fianáin (cookies). Ag baint úsáide as an suíomh gréasáin seo gan casadh as fianáin i bhrabhsálaí, ciallaíonn sé go n-aontaíonn tú le haghaidh úsáid a bhaint as é.
Ceannaigh Anois! Gnéithe Íosluchtuithe

Thuilleamh le linn!

Más mian leat chun tús a chur tuilleamh airgid leis an Taisteal páirt a ghlacadh chun Clár Affiliate.
Torthaí 1 go 4 de 4

Snáithe: Conas a ghlacadh cúltaca de bhunachar sonraí gan ábhar cache teanga

  1. #1
    Ball
    Dáta Ballraíochta
    Deireadh Fómhair 2009
    Poist
    67

    Default Conas a ghlacadh cúltaca de bhunachar sonraí gan ábhar cache teanga

    Is féidir le caches Teanga dhéanamh ar an mbunachar sonraí suas go dtí 50 uaire níos mó. Níl aon ghá le cúltaca siúd caches ós rud é go bhfuil siad in ionad gach 14 lá ar aon nós. Seo é an chaoi a cúltaca an mbunachar sonraí ina bhfuil na táblaí i dtaisce lasta air (folamh) sa cúltaca (thástáil ar Linux CentOS): Batchjob: mysqldump-u ainm úsáideora-ppassword databasename | python dump.py> dump.sql I gcás an script python seo a leanas le Is é an t-ainm dump.py a úsáideadh:
    Code:
    #!/usr/bin/env python# -*- coding: UTF-8 -*-#import sys  line = sys.stdin.readline()ignore = Falsewhile line:if "LOCK TABLES" in line:l = line.replace("`", "")try:tname = l.split(" ")[2]sys.stderr.write(tname+"\n")if tname in ("vbenterprisetranslator_cache_medium_da",    "vbenterprisetranslator_cache_medium_ar",    "vbenterprisetranslator_cache_medium_be",    "vbenterprisetranslator_cache_medium_bg",    "vbenterprisetranslator_cache_medium_ca",    "vbenterprisetranslator_cache_medium_cs",    "vbenterprisetranslator_cache_medium_cy",    "vbenterprisetranslator_cache_medium_de",    "vbenterprisetranslator_cache_medium_el",    "vbenterprisetranslator_cache_medium_en",    "vbenterprisetranslator_cache_medium_es",    "vbenterprisetranslator_cache_medium_et",    "vbenterprisetranslator_cache_medium_fa",    "vbenterprisetranslator_cache_medium_fi",    "vbenterprisetranslator_cache_medium_fr",    "vbenterprisetranslator_cache_medium_ga",    "vbenterprisetranslator_cache_medium_gl",    "vbenterprisetranslator_cache_medium_hi",    "vbenterprisetranslator_cache_medium_hr",    "vbenterprisetranslator_cache_medium_hu",    "vbenterprisetranslator_cache_medium_id",    "vbenterprisetranslator_cache_medium_is",    "vbenterprisetranslator_cache_medium_it",    "vbenterprisetranslator_cache_medium_iw",    "vbenterprisetranslator_cache_medium_ja",    "vbenterprisetranslator_cache_medium_ko",    "vbenterprisetranslator_cache_medium_lt",    "vbenterprisetranslator_cache_medium_lv",    "vbenterprisetranslator_cache_medium_mk",    "vbenterprisetranslator_cache_medium_ms",    "vbenterprisetranslator_cache_medium_mt",    "vbenterprisetranslator_cache_medium_nl",    "vbenterprisetranslator_cache_medium_no",    "vbenterprisetranslator_cache_medium_pl",    "vbenterprisetranslator_cache_medium_pt",    "vbenterprisetranslator_cache_medium_ro",    "vbenterprisetranslator_cache_medium_ru",    "vbenterprisetranslator_cache_medium_sk",    "vbenterprisetranslator_cache_medium_sl",    "vbenterprisetranslator_cache_medium_sq",    "vbenterprisetranslator_cache_medium_sr",    "vbenterprisetranslator_cache_medium_sv",    "vbenterprisetranslator_cache_medium_sw",    "vbenterprisetranslator_cache_medium_th",    "vbenterprisetranslator_cache_medium_tl",    "vbenterprisetranslator_cache_medium_tr",    "vbenterprisetranslator_cache_medium_uk",    "vbenterprisetranslator_cache_medium_vi",    "vbenterprisetranslator_cache_medium_yi",    "vbenterprisetranslator_cache_medium_zh-CN",    "vbenterprisetranslator_cache_medium_zh-TW",    "vbenterprisetranslator_cache_da",    "vbenterprisetranslator_cache_ar",    "vbenterprisetranslator_cache_be",    "vbenterprisetranslator_cache_bg",    "vbenterprisetranslator_cache_ca",    "vbenterprisetranslator_cache_cs",    "vbenterprisetranslator_cache_cy",    "vbenterprisetranslator_cache_de",    "vbenterprisetranslator_cache_el",    "vbenterprisetranslator_cache_en",    "vbenterprisetranslator_cache_es",    "vbenterprisetranslator_cache_et",    "vbenterprisetranslator_cache_fa",    "vbenterprisetranslator_cache_fi",    "vbenterprisetranslator_cache_fr",    "vbenterprisetranslator_cache_ga",    "vbenterprisetranslator_cache_gl",    "vbenterprisetranslator_cache_hi",    "vbenterprisetranslator_cache_hr",    "vbenterprisetranslator_cache_hu",    "vbenterprisetranslator_cache_id",    "vbenterprisetranslator_cache_is",    "vbenterprisetranslator_cache_it",    "vbenterprisetranslator_cache_iw",    "vbenterprisetranslator_cache_ja",    "vbenterprisetranslator_cache_ko",    "vbenterprisetranslator_cache_lt",    "vbenterprisetranslator_cache_lv",    "vbenterprisetranslator_cache_mk",    "vbenterprisetranslator_cache_ms",    "vbenterprisetranslator_cache_mt",    "vbenterprisetranslator_cache_nl",    "vbenterprisetranslator_cache_no",    "vbenterprisetranslator_cache_pl",    "vbenterprisetranslator_cache_pt",    "vbenterprisetranslator_cache_ro",    "vbenterprisetranslator_cache_ru",    "vbenterprisetranslator_cache_sk",    "vbenterprisetranslator_cache_sl",    "vbenterprisetranslator_cache_sq",    "vbenterprisetranslator_cache_sr",    "vbenterprisetranslator_cache_sv",    "vbenterprisetranslator_cache_sw",    "vbenterprisetranslator_cache_th",    "vbenterprisetranslator_cache_tl",    "vbenterprisetranslator_cache_tr",    "vbenterprisetranslator_cache_uk",    "vbenterprisetranslator_cache_vi",    "vbenterprisetranslator_cache_yi",    "vbenterprisetranslator_cache_zh-CN",    "vbenterprisetranslator_cache_zh-TW",    "vbenterprisetranslator_cache_short_da",    "vbenterprisetranslator_cache_short_ar",    "vbenterprisetranslator_cache_short_be",    "vbenterprisetranslator_cache_short_bg",    "vbenterprisetranslator_cache_short_ca",    "vbenterprisetranslator_cache_short_cs",    "vbenterprisetranslator_cache_short_cy",    "vbenterprisetranslator_cache_short_de",    "vbenterprisetranslator_cache_short_el",    "vbenterprisetranslator_cache_short_en",    "vbenterprisetranslator_cache_short_es",    "vbenterprisetranslator_cache_short_et",    "vbenterprisetranslator_cache_short_fa",    "vbenterprisetranslator_cache_short_fi",    "vbenterprisetranslator_cache_short_fr",    "vbenterprisetranslator_cache_short_ga",    "vbenterprisetranslator_cache_short_gl",    "vbenterprisetranslator_cache_short_hi",    "vbenterprisetranslator_cache_short_hr",    "vbenterprisetranslator_cache_short_hu",    "vbenterprisetranslator_cache_short_id",    "vbenterprisetranslator_cache_short_is",    "vbenterprisetranslator_cache_short_it",    "vbenterprisetranslator_cache_short_iw",    "vbenterprisetranslator_cache_short_ja",    "vbenterprisetranslator_cache_short_ko",    "vbenterprisetranslator_cache_short_lt",    "vbenterprisetranslator_cache_short_lv",    "vbenterprisetranslator_cache_short_mk",    "vbenterprisetranslator_cache_short_ms",    "vbenterprisetranslator_cache_short_mt",    "vbenterprisetranslator_cache_short_nl",    "vbenterprisetranslator_cache_short_no",    "vbenterprisetranslator_cache_short_pl",    "vbenterprisetranslator_cache_short_pt",    "vbenterprisetranslator_cache_short_ro",    "vbenterprisetranslator_cache_short_ru",    "vbenterprisetranslator_cache_short_sk",    "vbenterprisetranslator_cache_short_sl",    "vbenterprisetranslator_cache_short_sq",    "vbenterprisetranslator_cache_short_sr",    "vbenterprisetranslator_cache_short_sv",    "vbenterprisetranslator_cache_short_sw",    "vbenterprisetranslator_cache_short_th",    "vbenterprisetranslator_cache_short_tl",    "vbenterprisetranslator_cache_short_tr",    "vbenterprisetranslator_cache_short_uk",    "vbenterprisetranslator_cache_short_vi",    "vbenterprisetranslator_cache_short_yi",    "vbenterprisetranslator_cache_short_zh-CN",    "vbenterprisetranslator_cache_short_zh-TW"):ignore = Trueexcept IndexError:sys.stderr.write(l)passif ignore and "INSERT" in line:line = sys.stdin.readline()continueif "UNLOCK TABLES" in line:ignore = False sys.stdout.write(line)line = sys.stdin.readline()
    Cuimhnigh a reáchtáil: chmod + x / root / dump.py ó fhréamh (aon am amháin roimh rith post bhaisc an chéad uair)
    Last edited by vBET; 22-10-13 ag 17:27. Cúis: Tosach cheartú le go CÓD BBCode

  2. #2
    Ball
    Dáta Ballraíochta
    Deireadh Fómhair 2009
    Poist
    67

    Default

    Eile is féidir (untested) réiteach simplí níos mó: mysqldump-u-ainm úsáideora ppassword databasename | grep-P-v "ISTEACH SAN (Tábla 1` `|` table2 `)"> dump.sql

    (Dearmad a úsáid agus ní `')
    Last edited by krisp; 24-01-10 ag 01:59.

  3. #3
    Michał Podbielski (vBET Foirne) vBET's Avatar
    Dáta Ballraíochta
    Deireadh Fómhair 2009
    Poist
    3,037

    Default

    Agus i bhfad níos simplí - ach a leagtar ar úsáid vBET bunachar sonraí seachtrach do taisce
    Tá sé seo sported agus configurable ag Riarachán CP (Admin CP -> vBET Cache -> External DB Cache).

    Sa chaoi seo beidh táblaí taisce a bheith sa bhunachar sonraí eile agus is féidir leat cúltaca do fóram gan taisce agus gan aon cleasanna

  4. #4
    Banned
    Dáta Ballraíochta
    Aibreán 2015
    Suíomh
    3558 Locust Cúirt Santa Fe Springs, CA 90670
    Poist
    1

    Default

    Cabhair iontach anseo. Anois tá mé in ann é a dhéanamh gan aon chineál de chabhair. Go raibh maith agat

Clibeanna le haghaidh an Thread

Ríomhphostaithe

  • Leat Is féidir nach snáitheanna post nua
  • Leat Is féidir nach post freagraí
  • Leat Is féidir nach ceangaltán post
  • Leat Is féidir nach in eagar do phoist
  •