How to set your innodb_pool size, what is the size of your DB

Want to know how much is your DB big, what value to set for innodb_pool in your mysql settings? Use this function

mysql -u root -p -Bse "SELECT ENGINE,SUM(DATA_LENGTH),COUNT(ENGINE) FROM information_schema.TABLES WHERE TABLE_SCHEMA NOT IN ('information_schema','mysql') AND ENGINE IS NOT NULL GROUP BY ENGINE ORDER BY ENGINE ASC;"

and you will get numbers that you can use to set your my,cnf