Splitting Comma-Separated Values in MySQL and Performing Count Statistics
Splitting Strings Using Built-in Tables
To transform a comma-separated string into rows, the help_topic system table can be used. This approach leverages the sequential IDs present in the table.
SELECT
SUBSTRING_INDEX(
SUBSTRING_INDEX('a,b,c,d,e,f,g,h', ',', help_topic_id + 1),
',',
-1
) AS extracted_value
FROM mysql.help_top ...
Posted on Sat, 19 Sep 2026 16:18:19 +0000 by MHardeman25
Understanding MySQL Index Structures and Optimization
Index Structure
MySQL defines an index as a data structure used by the storage engine to quickly locate records. Indexes require additional space and maintenance overhead.
Indexes are stored as physical data pages in data files (e.g., .ibd files for InnoDB), utilizing data pages for storage.
Indexes speed up retrieval but slow down insert, upd ...
Posted on Sat, 19 Sep 2026 16:11:00 +0000 by markhard
Setting Up MySQL Master-Master Replication for High Availability
Network Connectivity Requirements
Ensure bidirectional network commuincation between cluster nodes using ping utility.
C:\Users\administrator>ping 192.168.100.91
Pinging 192.168.100.91 with 32 bytes of data:
Reply from 192.168.100.91: bytes=32 time=2ms TTL=64
Reply from 192.168.100.91: bytes=32 time=1ms TTL=64
Reply from 192.168.100.91: byt ...
Posted on Fri, 18 Sep 2026 16:42:44 +0000 by kaumilpatel
Anatomy of a SQL Statement Execution in MySQL
Database Connection Management
Applications communicate with MySQL databases through a dedicated MySQL driver that establishes TCP/IP connections. Rather than creating new connections for each request, connection pooling maintains reusable connections to avoid the overhead of repeated connection establishment and teardown.
Popular Java connecti ...
Posted on Fri, 18 Sep 2026 16:08:28 +0000 by DigitalExpl0it
Implementing a Role-Based Attendance System with Java Web and MyBatis
A role-based employee attendance management system was implemented using Java Servlets, MyBatis, and MySQL. The system supports login, personal information management, password updates, and attendance tracking with differentiated views for employees, department managers, and administrators.
The data model consists of two primary entities:
Staf ...
Posted on Thu, 17 Sep 2026 16:28:35 +0000 by matifibrahim
MySQL Installation, Configuration, and Uninstallation on CentOS 7
MySQL Data base Installation
To install MySQL on a CentOS 7 system, follow these steps:
[root@server ~]# wget https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
[root@server ~]# yum -y install mysql57-community-release-el7-9.noarch.rpm
[root@server ~]# cd /etc/yum.repos.d/
[root@server ~]# yum -y install mysql-server
Starti ...
Posted on Thu, 17 Sep 2026 16:27:38 +0000 by ctimmer
Understanding Core Database Concepts: Transactions, Storage Engines, and Programmability
Databases are fundamental to modern applications, providing structured ways to store and retrieve information. Beyond basic data manipulation, several advanced features ensure data integrity, optimize performance, and simplify complex operations. This article delves into critical database concepts including transactions, storage engines, views, ...
Posted on Thu, 17 Sep 2026 16:23:52 +0000 by irbrian
MySQL Replication Error Resolution Guide
Delete Operation Failure on Replica
When a record is deleted on the primary but doesn't exist on the replica, replication halts with an error.
Last_SQL_Error: Could not execute Delete_rows event on table app.users;
Can't find record in 'users',
Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND;
the event's master log mysql-bin.000008, end_lo ...
Posted on Wed, 16 Sep 2026 16:27:41 +0000 by alcapone
MySQL Minor Version Upgrade Procedure
During a recent security scan of backend components, several minor vulnerabilities were detected. To prevent issues during future deployments, I decided to upgrade the MySQL installation. The upgrade strategy involves replacing MySQL binaries only, upgrading the replica node first, promoting it to the primary, and then upgrading the original pr ...
Posted on Wed, 16 Sep 2026 16:19:13 +0000 by Lerris
Archiving Historical MySQL Data with pt-archiver Tool
Background
Starting from December 5th, a production instance began experiancing daily replica lag alerts. After investigation, the TPS during the lag period was not high, with only about 1K DML operations on the clickstream_events table. However, this table had grown to 60GB, far exceeding the recommended maximum single table size of 10GB.
This ...
Posted on Wed, 16 Sep 2026 16:05:06 +0000 by fpyontek