Skip to content

Instantly share code, notes, and snippets.

View iamxy's full-sized avatar

iamxy iamxy

  • PingCAP
  • Beijing China
View GitHub Profile
@iamxy
iamxy / show_table_space_usage.sh
Created May 20, 2018 09:09
A shell script to get and show disk space usage of tables in specified database of TiDB
#!/usr/bin/env bash
# Copyright 2018 PingCAP, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
// Copyright 2016 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,