Difference between revisions of "MariaDB"

From InfiniteERP Wiki
Jump to: navigation, search
Line 2: Line 2:
  
 
= Database Maintenance and Monitoring script =
 
= Database Maintenance and Monitoring script =
 +
 +
== Backup & Restore ==
 +
<pre>
 +
sudo mariabackup --backup \
 +
      --user=root \
 +
      --password=P@ssw0rdINDO7Kali \
 +
      --target-dir=/home/backup/db
 +
 +
sudo mariabackup --prepare \
 +
      --target-dir=/home/backup/db
 +
</pre>
  
 
== Monitor Index status dan size for optimization ==
 
== Monitor Index status dan size for optimization ==

Revision as of 05:32, 17 April 2022

Introduction

Database Maintenance and Monitoring script

Backup & Restore

sudo mariabackup --backup \
      --user=root \
      --password=P@ssw0rdINDO7Kali \
      --target-dir=/home/backup/db

sudo mariabackup --prepare \
      --target-dir=/home/backup/db

Monitor Index status dan size for optimization

Monitor Cache Hit Ratio

Monitoring Database Query Performance

Locks held by Open Transactions

Check Trigger Status

How to