How to Change location Of MariaDB Data Directory

mysql data directory change

How to change location Of MariaDB Data Directory Safely. Here is the steps to follow migrate data directory to another server. read more: How to check partition details of MySQL table Know more about Change default MySQL Data Directory in Linux You may require to change the MySQL data directory due to insufficient partition space … Read more

How to check partition details of MySQL table

Here, We can check the partition details of the MySQL table, like how many partitions are there in a table and storage size of each partition? Know more about MYSQL Partitioning : What is and HOW To ? RANGE Partitioning in MySQL We can check this from the below query needs to run on any … Read more

How to set up multi-master slave in MySQL

Today, We will see how to set up a multi-master slave in the MySQL replication process. Read more: Replication with Different Master and Slave Storage Engines Also Read: Reset ( Re-Sync ) MySQL Master-Slave Replication MariaDB 10 supports multi-source replication, and each MariaDB Galera node can have up to 64 masters connected to it. So … Read more

MySQL: How to ignore errors when importing data?

Recently, I faced an issue while importing data to MySQL. Here are the steps that help me to solve and ignore the error. Read more: show progress on MySQL DB Import Use the –force (-f) flag on your MySQL import. Rather than stopping on the offending statement, MySQL will continue and just log the errors … Read more

How to create Expense Management System PHP and MySQL

Today, We will learn how to create an expense management system in PHP and MySQL. Read: How to Live Search using PHP MySQL and Ajax Expense management systems are web-based applications to manage their income and expenses. The users are allowed to log in system and manage their income and expenses and view the report … Read more

SQL DEFAULT Constraint : add Default Value Into a Column

The DEFAULT constraint is used to set a default value for a column. In the below example City column has the default value Sandnes CREATE TABLE Persons (    ID int NOT NULL,    LastName varchar(255) NOT NULL,    FirstName varchar(255),    Age int,    City varchar(255) DEFAULT ‘Sandnes’); The default value will be added to all new records if no other value is specified. Example of default constraint Example … Read more

Heuristic in Query optimization

Heuristic optimization often includes making transformations to the query tree by moving operators up and down the tree so that the transformed tree is equivalent to the tree before the transformations. Before we discuss these heuristics, it is necessary to discuss the following rules governing the manipulation of relational algebraic expressions: 1. Joins and Products … Read more

Query Processing

In most database systems, queries are posed in a non-procedural language like SQL and as we have noted earlier such queries do not involve any reference to access paths or the order of evaluation of operations. The query processing of such queries by a DBMS usually involves the following four phases: 1. Parsing 2. Optimization … Read more