Sometimes we need to see the size of all tables in our MySql/MariaDB database.
The easiest way is to make such query:
Continue reading “How to count all tables size in MySql/MariaDB database”
DevBlog – How to solve everyday programming and administration problems
How to solve PHP, CSS, HTML problems, some administration tips about Linux, Apache, MySql and more…
Sometimes we need to see the size of all tables in our MySql/MariaDB database.
The easiest way is to make such query:
Continue reading “How to count all tables size in MySql/MariaDB database”
MariaDb binarny log size is depended on number of days to store on hard drive.
You can change this limit without rebooting server.
See example below how to set limit of 10 days.
First check you are satisfied with date period:
mysql> select date(now()) + interval 0 second - interval 10 day;
+---------------------------------------------------+
| date(now()) + interval 0 second - interval 10 day |
+---------------------------------------------------+
| 2016-12-20 00:00:00 |
+---------------------------------------------------+
1 row in set (0.00 sec)
mysql>
Continue reading “How to limit binary logs in MariaDB”