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”
If you want to make copy of all messages sent through email accout then create file /etc/postfix/sender_bcc with contents:
#emails from #BCC to
from@domain.com bcc@domain.com
Then edit /postfix/main.cf file and add at the end of file
Continue reading “How to make email copy of all sent messages (auto BCC) in Postfix”
Sometimes we struggle with slow or broken repository.
First make sure that the yum-fastestmirror plugin is enabled.
Then clear cache with:
Continue reading “How to disable yum repository”
First genarate RSA private key.
Use 2048 bit or even better 4096 bit key
openssl genrsa 2048 > host.key
Now generate signing request.
enter *.domain.com for the Common Name
openssl req -new -x509 -nodes -sha256 -days 3650 -key host.key > host.crt
Continue reading “How to generate self signed wildcard ssl certificate”
Connect to the XenServer via SSH.
Create designed directory, e.g.:
mkdir /iso
Then run following command:
Put in “location=” param correct path
Continue reading “XenServer create local ISO Storage Repository”
First enable auto-start on XenServer:
# xe pool-list
uuid ( RO) : XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Copy UUID and use command:
# xe pool-param-set uuid=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX other-config:auto_poweron=true
Continue reading “How to Setup XenServer 7 to enable Auto-Start Virtual Machines”
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”