V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
kisshere
V2EX  ›  程序员

为什么 phpmyadmin 显示的数据库大小远大于 mysql 中该数据库文件夹实际占用的大小?

  •  
  •   kisshere · Aug 20, 2020 · 1808 views
  •   You need to sign in to view this topic
    This topic created in 2084 days ago, the information mentioned may be changed or developed.

    phpmyadmin 该数据库“my_db”的最后一行:InnoDB utf8_general_ci 57GB,然后我进入 mysql8.0 的数据文件夹下面的“my_db”文件夹,du -sh my_db,显示 81G,这是怎么回事?

    2 replies    2020-08-20 10:39:04 +08:00
    Xusually
        1
    Xusually  
       Aug 20, 2020   ❤️ 1
    data_length with or without index_length ?
    wmgx
        2
    wmgx  
       Aug 20, 2020 via Android
    h 是以 1000 为单位计数的,PHPmyadmin 应该是用 1024,你用 k 参数试试
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   755 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 21:18 · PVG 05:18 · LAX 14:18 · JFK 17:18
    ♥ Do have faith in what you're doing.