Skip to main content

Posts

Showing posts from May, 2017

Monitoring MySQL with Percona Monitoring and Management

In this blog post we will see how to monitor MySQL databases using the open source monitoring tool provided by Percona, referred as Percona Monitoring and Management (PMM). About PMM: Percona Monitoring and Management (PMM) is an open-source platform for managing and monitoring MySQL and MongoDB performance. It is developed by Percona in collaboration with experts in the field of managed database services, support and consulting. PMM is a free and open-source solution that you can run in your own environment for maximum security and reliability. It provides thorough time-based analysis for MySQL and MongoDB servers to ensure that your data works as efficiently as possible. Basic Requirements: 1. Need at least one Linux server to install PMM Client and PMM Server. 2. Need Operating System - root user credentials 3. Default port's(80) have to be open if using to or more servers. 4. A MySQL user is required to capture the Queries in the Database. 5. A Docker se...

Installing,Starting,Stopping PostgreSQL Server on Linux OS

In this post, we will see how to Install and Run PostgreSQL on Linux machines. There are three ways to installation procedures to download the software. 1. Binary Installation 2. Yum Installation 3. RPM Installation In this post, will see how to install PostgreSQL using Binary installation. 1. Download the binaries from the official website. $ wget https://get.enterprisedb.com/postgresql/postgresql-9.6.2-4-linux-x64-binaries.tar.gz 2. Untar the downloaded binaries. $ tar -xvzf postgresql-9.6.2-4-linux-x64-binaries.tar.gz 3. Create appropriate data directories and permissions with root user to run PostgreSQL Server. # mkdir -p /var/lib/pgsql/data # chown -R psql /var/lib/pgsql/data # su psql 4. Now change the directory path to the downloaded software path $ cd /home/psql/softwares/pgsql 5. Initialize the data directories required for PostgreSQL to run, there are two ways to initialize the directories. $ initdb -D /usr/local/pgsql/data Alternatively, we ...

Installing and Using JSON on MySQL 5.7

As we know that MySQL come up with JSON datatype equivalent(but not completely) to MongoDB's Document Store Database. In this post, we are going to see how to Install and Use MySQL's new JSON datatype. Installing MySQL - JSON Plugin: 1. In order to use JSON datatype in MySQL, we need to have MySQL 5.7.12 or higher versions. Download the latest version of MySQL 5.7.12 or higher from here. 2. Installing the X Plugin A non-root user will have access to install the X Plugin on MySQL database, since he have to perform INSERT operations on the database. There are 3 types of Plugin installations available.  Using MySQL installer for Windows: Launch MySQL Installer for Windows. Click the Reconfigure option. Use Next and Back to configure for following actions: In Accounts and Roles , confirm the current root account password In Plugin and Extensions , check mark the Enable X Protocol/MySQL as a Document Store check box. In Apply Server Configuration , click...