Skip to main content

Posts

How to Configure MySQL Master/Slave replication on CentOS 7

MySQL replication is a process that allows you to easily maintain multiple copies of MySQL data by having them copied automatically from a master to a slave database. This post assumes that you have a user with sudo privileges and have not installed MySQL. If you do have MySQL installed, then you can skip the installation step and move to the configuration of master/slave database: MySQL installation on the MASTER server Install MySQL server and MySQL client: # yum install mysql-community-server Connect to MySQL shell in order to create the new user “dbuser” and the database “testdb”: # mysql -u root -p mysql> create database testdb; mysql> grant usage on *.* to dbuser@localhost identified by ‘password’; mysql> grant all privileges on testdb.* to dbuser@localhost; mysql> exit; Edit the MySQL configuration file to allow remote connections to this server: # vi /etc/mysql/my.cnf Find the line “bind-address = 127.0.0.1” and comment it if it’s not...

Installation and Configuration of MySQL Cluster on CentOS 7

MySQL Cluster is designed to provide a MySQL compatible database with high availability and low latency. The MySQL Cluster technology is implemented through the NDB (Network DataBase) and NDBCLUSTER storage engines and provides shared-nothing clustering and auto-sharding for MySQL database systems. To implement a MySQL Cluster, we have to install three types of nodes. Each node type will be installed on its own server. The components are: 1. Management Node - NDB_MGMD/MGM     The Cluster management server is used to manage the other node of the cluster. We can create and configure new nodes, restart, delete, or backup nodes on the cluster from the management node. 2. Data Nodes - NDBD/NDB     This is the layer where the process of synchronizing and data replication between nodes happens. 3. SQL Nodes - MySQLD/API     The interface servers that are used by the applications to connect to the database cluster. We will configure the management node, tw...

Installing MySQL on Linux Using Yum Repos

This installation is done on a CentOS 7 box, but the same steps can be used for Linux servers which provides RPM packages for installing the MySQL server. Follow the steps below to install MySQL 5.6 with the MySQL Yum repository: 1. Adding the MySQL Yum Repository Add the MySQL Yum repository to your system's repository list. Follow these steps: Go to the  Download MySQL Yum Repository  page in the MySQL Developer Zone. Select and download the release package for your platform. Install the downloaded release package with the following command # yum localinstall mysql80-community-release-el7-3.noarch.rpm The installation command adds the MySQL Yum repository to your system's repository list and downloads the GnuPG key to check the integrity of the software packages. You can check that the MySQL Yum repository has been successfully added by the following command # yum repolist enabled | grep "mysql.*-community.*" 2. Selecting a Release Seri...

Oracle Audit Vault and Database Firewall Installation (Oracle Audit Vault Server 12.2.0.4)

Installation of Oracle Audit Vault and Database Firewall (AVDF) 12.2.0.4 comprises of installing Audit Vault Server first and then Database Firewall. Oracle Audit Vault and Database Firewall come in different installation media. This post deals with the installation of Audit Vault Server only. In coming posts, I will discuss installing a database firewall and integrating Oracle Audit Vault and Database Firewall. Briefly, the Oracle Audit Vault and Database Firewall installation steps are: Understand the Oracle Audit Vault and Database Firewall components to be installed. Plan the system configuration that best suits your needs. Ensure that your system meets the pre-install requirements. Install the Oracle Audit Vault and Database Firewall software. Do the post-install configuration tasks. NOTE!!      The Audit Vault Server and Database Firewall server are software appliances. You must not make any changes to the Linux operating system through the comma...

Oracle Certification Program Overview

Oracle has developed an extensive certification program which includes six certification levels that span nine different categories with more than 200 individual credentials. Oracle certification exams are divided into two:- proctored and non-proctored. However, most of Oracle certification exams are proctored, cost $245, and contain a mix of scored and unscored multiple-choice questions. Candidates may take proctored exams at Pearson VUE , although some exams are offered at Oracle Testing Centers in certain locations. Non-proctored exams cost $125. Some exams such as Oracle Database 12c: SQL Fundamentals (1Z0-061) and Oracle Database 11g: SQL Fundamentals (1Z0-051), are also available non-proctored and may be taken online. Check the Oracle University Certification website  for details on specific exams. Oracle's six certification levels include:- Junior Associate Associate Professional Master Expert Specialist The certification program for Oracle is divided int...

Oracle Database 18cR3 Silent Installation on Oracle Linux 7.6

This blog post describes the installation of Oracle Database 18c 64-bit on Oracle Linux 7 (OL7). An example of the Linux installation can be seen  HERE We will begin by downloading and installing the software required before we can create an Oracle database. This process involves several steps. Before we begin with the installation we need to verify and configure the required OS components: Memory and swap space System architecture(processor) Free disk space ( Oracle now takes almost 15GB of space to install) Operating system version and kernel Operating system software (required packages and patches) -- Check Physical RAM. # grep MemTotal /proc/meminfo    { We need at least 3192 MB of physical RAM. } -- Check Swap Space. # grep SwapTotal /proc/meminfo/* RAM up to 1024MB then swap = 2 times the size of RAM RAM between 2049MB and 8192MB then swap = equal to the size of RAM -- Check space available in /tmp # df -h /tmp/* We need to have at least ...