How to get size of mysql database?

前端 未结 9 1962
栀梦
栀梦 2020-11-27 08:43

How to get size of a mysql database?
Suppose the target database is called \"v3\".

9条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-27 09:29

    mysqldiskusage  --server=root:MyPassword@localhost  pics
    
    +----------+----------------+
    | db_name  |         total  |
    +----------+----------------+
    | pics     | 1,179,131,029  |
    +----------+----------------+
    

    If not installed, this can be installed by installing the mysql-utils package which should be packaged by most major distributions.

提交回复
热议问题