Servus
Basic Pleskian
Hi at all,
I want to optimize my MySQL database for example InnoDB Buffer Pool Size.
Therefor I performed this test:
But it's strictly recommended to be sure that there are no active transactions and operations!
Could you please help me to find out if there are active transactions and operations?
I don't know how to find this out.
Greets
I want to optimize my MySQL database for example InnoDB Buffer Pool Size.
Therefor I performed this test:
Code:
mysql> SELECT CONCAT(ROUND(KBS/POWER(1024,
-> IF(PowerOf1024<0,0,IF(PowerOf1024>3,0,PowerOf1024)))+0.49999),
FROM (SELECT SUM(data_length+index_length) KBS FROM information_schema.tables
-> SUBSTR(' KMG',IF(PowerOf1024<0,0,
-> IF(PowerOf1024>3,0,PowerOf1024))+1,1)) recommended_innodb_buffer_pool_size
-> FROM (SELECT SUM(data_length+index_length) KBS FROM information_schema.tables
-> WHERE engine='InnoDB') A,
-> (SELECT 3 PowerOf1024) B;
+-------------------------------------+
| recommended_innodb_buffer_pool_size |
+-------------------------------------+
| 1G |
+-------------------------------------+
1 row in set (0.20 sec)
mysql> \q
Bye
But it's strictly recommended to be sure that there are no active transactions and operations!
Could you please help me to find out if there are active transactions and operations?
I don't know how to find this out.
Greets