DanBrother 發表在 痞客邦 留言(0) 人氣(12)
DanBrother 發表在 痞客邦 留言(0) 人氣(12)
MariaDB IP Address Conversion Functions:
########
# IPV4:
########
-- Address To Number:
MariaDB [test]> select inet_aton('10.0.2.15');
+------------------------+
| inet_aton('10.0.2.15') |
+------------------------+
| 167772687 |
+------------------------+
1 row in set (0.001 sec)
DanBrother 發表在 痞客邦 留言(0) 人氣(6)
MariaDB Unix Time Conversion Functions:
MariaDB [test]> select unix_timestamp('2019-05-21 09:00:00');
+---------------------------------------+
| unix_timestamp('2019-05-21 09:00:00') |
+---------------------------------------+
| 1558400400 |
+---------------------------------------+
1 row in set (0.001 sec)
DanBrother 發表在 痞客邦 留言(0) 人氣(2)
MariaDB Audit Plugin - Installation Procedures
######################################
# Check the plugin library directory
######################################
MariaDB [(none)]> show global variables like 'plugin_dir';
+---------------+--------------------------+
| Variable_name | Value |
+---------------+--------------------------+
| plugin_dir | /usr/lib64/mysql/plugin/ |
+---------------+--------------------------+
1 row in set (0.001 sec)
DanBrother 發表在 痞客邦 留言(0) 人氣(41)
MariaDB Backup & Restore Using Percona XtraBackup
** Note: Percona XtraBackup 8.0 and onward, the deprecated "innobackupex" script was removed
######################################################
# Download the Percona XtraBackup RPM file & libev
######################################################
# wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.4.9/binary/redhat/7/x86_64/percona-xtrabackup-24-2.4.9-1.el7.x86_64.rpm
# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libev-4.15-3.el7.x86_64.rpm
DanBrother 發表在 痞客邦 留言(0) 人氣(50)
MariaDB 10.2 Installation Procedure on Oracle Linux 7
#####################################
# Creatiing the MariaDB YUM repository
#####################################
vi /etc/yum.repos.d/MariaDB.repo
>>
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.2.12/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
DanBrother 發表在 痞客邦 留言(0) 人氣(1,408)