MySQL Date/Time Functions and Conditional Expressions
Date and Time Functions
MySQL provides comprehensive funcsions for extracting and manipulating date and time values.
Retrieving Current Date/Time
-- Get current date and time
SELECT NOW();
-- Returns: YYYY-MM-DD HH:MM:SS
-- Get current date only
SELECT CURDATE();
-- Returns: YYYY-MM-DD
-- Get current time only
SELECT CURTIME();
-- Returns: HH ...
Posted on Wed, 26 Aug 2026 16:11:43 +0000 by darcuss
MySQL Transactions, Isolation Levels, Concurrency Challenges, and MVCC Explained
Transactions
1.1 Transaction Basics
A transaction is a sequence of operations defined by the user in a concurrent connection scenario. It functions as an indivisible unit: either all operations execute successfully, or none do. In MySQL, transactions group multiple SQL statements to run as a single logical batch.
Purpose: Transactions transiti ...
Posted on Wed, 26 Aug 2026 16:01:08 +0000 by savingc
Getting Started with MyBatis: A Practical Guide
The Evolution of Database Access: Introducing MyBatis
In the landscape of database interaction, developers often grapple with the trade-offs between raw JDBC and full-fledged ORM solutions like Hibernate. JDBC, while offering direct control and high performance, demands significant boilerplate code for connection management and manual SQL craft ...
Posted on Tue, 25 Aug 2026 16:48:33 +0000 by judgy
Fundamentals of MySQL Query Language
Introduction to SQL
SQL (Structured Query Language) is a standard language for managing relational databases. It enables operations such as data retrieval, insertion, modification, and deletion.
SQL Syntax Basics
SQL is case-insensitive for keywords. Semicolons are used to separate statements in many database systems.
Essential SQL Commands
...
Posted on Tue, 25 Aug 2026 16:33:22 +0000 by disconne
MySQL Transaction Isolation Testing
MySQL Transaction Testing
Configure MySQL transaction settings:
-- Check autocommit status (1=on, 0=off)
SELECT @@autocommit;
-- Disable autocommit
SET autocommit = 0;
Prepare test data:
CREATE DATABASE transaction_test;
USE transaction_test;
CREATE TABLE users(id INT PRIMARY KEY, name VARCHAR(10)) ENGINE=InnoDB;
INSERT INTO users VALUES(1 ...
Posted on Tue, 25 Aug 2026 16:13:41 +0000 by zbert
Essential MySQL Commands for Database Operations
Database Operations
SHOW DATABASES;
USE database_name;
CREATE DATABASE [IF NOT EXISTS] db_name;
DROP DATABASE [IF EXISTS] db_name;
SHOW CREATE DATABASE db_name;
ALTER DATABASE db_name CHARACTER SET charset_name;
Tible Creatoin Examples
DROP TABLE IF EXISTS user_main;
CREATE TABLE `user_main` (
`user_id` varchar(10) NOT NULL,
`login_name` var ...
Posted on Sun, 23 Aug 2026 16:49:27 +0000 by vanderlay
Design and Implementation of a Warehouse Management System for Agricultural Machinery Parts Using Spring Boot and Vue.js
System Overview
A warehouse management system for agricultural machinery parts offers significant advantages in terms of operational fluidity, data consistency, and scalability. This design enables efficient handling of product catalogs, procurement, inbound/outbound logistics, and supplier relations.
Core Technologies
Primary Language: Java
Ba ...
Posted on Sun, 23 Aug 2026 16:36:37 +0000 by PHP Man
Parallel Logical Backup and Restore Strategies for MySQL using MyDumper
Traditional MySQL backup utilities like mysqldump operate using a single-threaded model, processing tables sequentially. This limitation often results in extended backup windows for large datasets. To address this, mydumper was developed as a multi-threaded logical backup tool. It allows for concurrent data extraction from tables and simultaneo ...
Posted on Sun, 23 Aug 2026 16:21:01 +0000 by riginosz
Centralized Linux Log Server Setup with rsyslog, MariaDB/MySQL, and LogAnalyzer
Core Architecture Overview
Deploy Linux’s built-in rsyslog as the primary log collection and forwarding layer, pair it with a MySQL-compatible database for structured log storage, use rsyslog templates to organize raw text logs in to a year/month/day directory tree with client IP-based filenames, and leverage LogAnalyzer for web-based log visua ...
Posted on Sun, 23 Aug 2026 16:17:13 +0000 by sohdubom
Managing MySQL Replication User Password Updates
Reviewing Current Replica Configuration
To begin the process of updating replication credentials, you should first inspect the current configuration stored on the replica server. This can be done by querying the mysql.slave_master_info table to identify the host, user, and existing password metadata.
SELECT
Host,
User_name,
User_ ...
Posted on Sun, 23 Aug 2026 16:10:35 +0000 by lupes