How to vacuum sqlite database?

前端 未结 3 2073
醉话见心
醉话见心 2021-02-02 08:27

I want to know how to vacuum sqlite database. I tried a syntax MANUAL VACUUM command for the whole database from command prompt:

 $sqlite3 database_name \"VACUU         


        
3条回答
  •  -上瘾入骨i
    2021-02-02 08:53

    Run the command:

    VACUUM;
    

    if you use DB Browser for Sqlite or

    open Sqlite from command prompt:

    cd C:\your_folder
    C:\Users\your_user\AppData\Local\Android\Sdk\platform-tools\sqlite3.exe  -line your_db_name.db
    

    and run

    VACUUM;
    

提交回复
热议问题