if size of database “xyz_db” is to be find. perform following steps:

1. Whereis mysql
2. navigate each result and get where does xyz_db exists
3. enter that directory and run the command
# du -h xyz_db
4. It will give you size of database in MBs.
like 20M xyz_db

Tags: , , ,