Digikam/Check Database/uk: Difference between revisions

    From KDE UserBase Wiki
    (Updating to match new version of source page)
    Line 4: Line 4:
    Створено на основі допису у блозі Дмітрія Попова (Dmitri Popov), 19 грудня 2011 року
    Створено на основі допису у блозі Дмітрія Попова (Dmitri Popov), 19 грудня 2011 року


    Типово, для зберігання важливих даних '''digiKam''' використовує дві бази даних ''SQLite'': ''digikam4.db'' і ''thumbnails-digikam.db''. Щоб програма працювала швидко і без проблем, варто регулярно перевіряти і оптимізувати ці бази даних. Для цього вам варто встановити пакунок <tt>sqlite3</tt> за допомогою програми для керування пакунками. Після встановлення пакунка створіть резервні копії баз даних digikam4.db і thumbnails-digikam.db. Після цього відкрийте вікно термінала і перемкніться на каталог, у якому зберігаються бази даних. Спочатку перевірте цілісність обох баз даних за допомогою таких команд:
    By default, '''digiKam''' uses two ''SQLite databases'' for storing essential data: ''digikam4.db'' and ''thumbnails-digikam.db''. And to make the application run fast and smoothly, it’s a good idea to check and optimize the databases every now and then. To do this on Ubuntu or its derivatives, you need to install the <tt>sqlite3</tt> package using the <code>sudo apt-get install sqlite3</code> command. Once you’ve done that, back up the digikam4.db and thumbnails-digikam.db databases. Open then the terminal and switch to the directory where the databases are stored. First off, you should check the integrity of both databases using the following commands:


    {{Input|1=sqlite3 -line digikam4.db 'pragma integrity_check;'
    {{Input|1=sqlite3 -line digikam4.db 'pragma integrity_check;'

    Revision as of 13:00, 4 July 2019

    Other languages:

    Перевірка та оптимізація баз даних digiKam

    Створено на основі допису у блозі Дмітрія Попова (Dmitri Popov), 19 грудня 2011 року

    By default, digiKam uses two SQLite databases for storing essential data: digikam4.db and thumbnails-digikam.db. And to make the application run fast and smoothly, it’s a good idea to check and optimize the databases every now and then. To do this on Ubuntu or its derivatives, you need to install the sqlite3 package using the sudo apt-get install sqlite3 command. Once you’ve done that, back up the digikam4.db and thumbnails-digikam.db databases. Open then the terminal and switch to the directory where the databases are stored. First off, you should check the integrity of both databases using the following commands:

    sqlite3 -line digikam4.db 'pragma integrity_check;'
    sqlite3 -line thumbnails-digikam.db 'pragma integrity_check;'

    Якщо проблем у цілісності не буде виявлено ви побачите таке повідомлення:

    integrity_check = ok

    Щоб оптимізувати бази даних, віддайте дві наведені нижче команди:

    1-sqlite3 -line digikam4.db 'vacuum;'
    sqlite3 -line thumbnails-digikam.db 'vacuum;'

    Повторіть перевірку цілісності, щоб переконатися, що всі проблеми усунуто. Ось і все.