Building RESTful CRUD Services with Spring Boot and MyBatis
Environment Setup
Database Schema
Create a MySQL database named springboot and a table t_user to hold user records.
CREATE DATABASE `springboot`;
USE `springboot`;
DROP TABLE IF EXISTS `t_user`;
CREATE TABLE `t_user` (
`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary Key',
`name` VARCHAR(10) DEFAULT NULL COMMENT 'User name',
`age` ...
Posted on Fri, 04 Sep 2026 16:48:03 +0000 by krishnam1981
MySQL Index Management and Query Optimization Techniques
MySQL indexes are auxiliary data structures that accelerate row retrieval by minimizing scan scope. Rather than reading every row, the storage engine traverses the index to locate qualifying records quickly, trading additional disk space and write-time maintenance for faster reads.
Index Categories
The InnoDB and MyISAM engines support several ...
Posted on Fri, 04 Sep 2026 16:12:54 +0000 by keithh0427
Automating MySQL Backups on Ubuntu Systems
Creating Backup Directories
Begin by establishing a dedicated directory for backups:
mkdir -p /home/apps/backup/mysqllive
Securing Database Credentials
For enhanced security, store database credentials in a configuration file instead of embedding them in scripts.
Create and edit the MySQL dump configuration file:
sudo vim /etc/mysql/conf.d/mys ...
Posted on Thu, 03 Sep 2026 16:54:06 +0000 by FireDrake
Setting Up Redis, MySQL, and Nginx on Ubuntu 20.04
Installing Redis from Source
To deploy Redis, download the source code from the official Redis website. Extract the archive and prepare the build enviroment:
tar -xvf redis-x.x.x.tar.gz
cd redis-x.x.x
sudo apt update
sudo apt install build-essential pkg-config
Compile the source code using the provided makefile:
make MALLOC=libc
sudo make inst ...
Posted on Thu, 03 Sep 2026 16:49:47 +0000 by mforan
MySQL SQL Fundamentals and Query Operations
SQL Overview
SQL (Structured Query Language) serves as the standard communication protocol for relational database systems. It provides a comprehensive command set specifically designed for database operations, enabling users to issue declarative instructions without worrying about implementation details.
SQL Syntax Standards
SQL keywords are ...
Posted on Thu, 03 Sep 2026 16:01:25 +0000 by BrianWald
Core SQL Operations for Record Management and Table Structure Modification
Data Insertion Principles
When populating relational tables, observe the following storage and syntax behaviors:
Integer Display Width: The width parameter for INT columns controls display padding when ZEROFILL is applied. The underlying storage consistently consumes four bytes regardless of the specified width.
Date Parsing: Database engines ...
Posted on Thu, 03 Sep 2026 15:59:21 +0000 by Jamz
Analysis of Replication Lag in a Database System
A business system recently experienced significant lag on its replica databases, failing to catch up with the primary database, posing considerable operational risks. Despite low CPU, IO, and network usage on the replica servers, indicating no resource bottlenecks, parallel replay was enibled. The SHOW PROCESSLIST command showed continuous repl ...
Posted on Wed, 02 Sep 2026 16:07:07 +0000 by slindstr
Comprehensive SQL Syntax Guide: Oracle vs MySQL/OBMySQL
Table of Contents
Basic Query Statements
Data Manipulation Statements
Table Structure Operations
Index Operations
View Operations
Stored Procedures and Functions
Transaction Control
Permission Management
Data Type Differences
Common Function Comparisons
Basic Query Statements
SELECT Queries
Oracle
-- Basic query
SELECT col_a, col_b FROM tar ...
Posted on Tue, 01 Sep 2026 16:32:01 +0000 by ricoche
Integrating MySQL Databases with Python
Setting Up MySQL Connectivity
To interact with MySQL databases from Python 3, the mysqlclient library serves as the standard interface. Ensure your system environment has the necesary development headers before installation:
# Debian/Ubuntu systems
sudo apt-get update
sudo apt-get install python3-dev libmysqlclient-dev
# Install the driver
pip ...
Posted on Tue, 01 Sep 2026 16:18:16 +0000 by PupChow
MySQL Master-Slave Replication Setup
Before configuring MySQL master-slave replication, ensure both servers run the same MySQL version and have compatible system configurations.
Configure the Master Server
Edit the MySQL configuration file /etc/my.cnf on the master node:
[mysqld]
log-bin=mysql-bin
server-id=101
log-bin enables binary logging, required for replication.
server-id ...
Posted on Tue, 01 Sep 2026 16:00:14 +0000 by dcace