DB 관련 명령어

2017. 6. 30. 16:06

cybertramp Computer

용량보기(mysql로 접속 후 아래 쿼리를 입력하면 각 데이터베이스의 용량이 출력된다.)


SELECT table_schema "Database Name", SUM(data_length + index_length) / 1024 / 1024 "Size(MB)" FROM information_schema.TABLES GROUP BY table_schema;