Tag

Database Administration

2 views collected around this technical thread.

Practical DevOps Architecture
Practical DevOps Architecture
May 29, 2025 · Databases

Quick Solutions for MySQL Table Locks

This guide outlines a step‑by‑step method to diagnose and release MySQL table locks by checking open tables, inspecting running processes, querying InnoDB transaction and lock tables, and generating KILL statements to terminate blocking sessions.

Database AdministrationMySQLSQL
0 likes · 3 min read
Quick Solutions for MySQL Table Locks
Aikesheng Open Source Community
Aikesheng Open Source Community
Apr 22, 2025 · Databases

Implementing a MySQL Configuration Comparison Script: Key Considerations and Common Pitfalls

This article explains how to build a MySQL configuration comparison script by retrieving runtime variable values, parsing my.cnf and mysqld-auto.cnf files, handling formatting and case issues, and accurately comparing values while addressing typical challenges such as unit conversion, boolean representation, and legacy variable names.

Database AdministrationMySQLawk
0 likes · 8 min read
Implementing a MySQL Configuration Comparison Script: Key Considerations and Common Pitfalls
IT Xianyu
IT Xianyu
Apr 15, 2025 · Databases

What Does a DBA Do? A Beginner’s Guide to Database Administration, Core Skills, and Career Path

This article explains the role of a DBA using a library analogy, outlines essential database fundamentals, Linux commands, hardware choices, common pitfalls, cloud‑era advantages, intelligent operations, and provides a detailed career roadmap with salary insights for aspiring database administrators.

Cloud DatabasesDatabase AdministrationLinux Commands
0 likes · 6 min read
What Does a DBA Do? A Beginner’s Guide to Database Administration, Core Skills, and Career Path
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 23, 2024 · Databases

Resolving MySQL Replication Failure Caused by Host Field Mismatch in mysql.user

This article reproduces a MySQL replication error triggered by an incorrect host entry in the mysql.user table, analyzes the version‑specific host field differences, and provides a step‑by‑step fix using the slave_type_conversions parameter and proper user‑renaming practices.

Database AdministrationHost FieldMySQL
0 likes · 12 min read
Resolving MySQL Replication Failure Caused by Host Field Mismatch in mysql.user
Top Architect
Top Architect
Dec 5, 2024 · Databases

Database Monitoring and Slow Query Log Management Guide

This article explains how database administrators can monitor system resource usage with commands like top, iostat, and vmstat, and configure MySQL slow query logging, including enabling the log, setting thresholds, viewing logs, and applying best‑practice recommendations for analysis and issue resolution.

Database AdministrationLinux CommandsMySQL
0 likes · 8 min read
Database Monitoring and Slow Query Log Management Guide
Aikesheng Open Source Community
Aikesheng Open Source Community
Aug 26, 2024 · Databases

Understanding and Managing MySQL Undo Tablespaces

This article explains the purpose, evolution, configuration parameters, and step‑by‑step maintenance procedures for MySQL Undo tablespaces, covering versions from pre‑5.6 to 8.0 and providing practical commands for viewing, creating, truncating, and dropping Undo tablespaces.

Database AdministrationInnoDBMySQL
0 likes · 11 min read
Understanding and Managing MySQL Undo Tablespaces
Aikesheng Open Source Community
Aikesheng Open Source Community
Aug 8, 2024 · Databases

Understanding LOG_DISK Resource Limits and Tenant Memory Allocation in OceanBase

This article analyzes why creating a resource pool with 4C12G fails in an OceanBase single‑node cluster despite sufficient CPU and memory, explains the relationship between LOG_DISK size and tenant memory, provides calculation formulas, verification steps, and practical recommendations to avoid LOG_DISK resource shortages.

Database AdministrationLOG_DISKOceanBase
0 likes · 11 min read
Understanding LOG_DISK Resource Limits and Tenant Memory Allocation in OceanBase
Aikesheng Open Source Community
Aikesheng Open Source Community
Jul 15, 2024 · Databases

Analysis of MySQL GRANT Failure in Replication and Its Non‑Atomic Behavior

This article investigates why a MySQL replication slave stops when a GRANT statement fails after directly updating the mysql.user table, explains the implicit privilege reload mechanism, demonstrates the issue with a reproducible test, and concludes that GRANT is not an atomic operation.

Database AdministrationMySQLPrivileges
0 likes · 8 min read
Analysis of MySQL GRANT Failure in Replication and Its Non‑Atomic Behavior
Aikesheng Open Source Community
Aikesheng Open Source Community
May 8, 2024 · Databases

OceanBase DBA from Beginner to Practice: Comprehensive Tutorial and Learning Path

The OceanBase community offers a detailed, eight‑session DBA tutorial covering the platform’s architecture, deployment, migration, performance tuning, diagnostic tools, and ecosystem components, complemented by live streaming, hands‑on exercises, certification incentives, and real‑world user testimonials to help developers and DBAs master this distributed database.

Database AdministrationDistributed DatabaseMigration
0 likes · 9 min read
OceanBase DBA from Beginner to Practice: Comprehensive Tutorial and Learning Path
Aikesheng Open Source Community
Aikesheng Open Source Community
May 7, 2024 · Databases

Why Expanding a MySQL VARCHAR Column from 63 to 64 Characters Takes Much Longer

The article investigates why altering a MySQL VARCHAR column from a length that fits within 255 bytes to one that exceeds this limit (e.g., VARCHAR(63) to VARCHAR(64) in utf8mb4) triggers a costly copy operation, analyzes the storage mechanics, reproduces the issue, and provides practical recommendations to avoid performance penalties.

Database AdministrationMySQLVARCHAR
0 likes · 13 min read
Why Expanding a MySQL VARCHAR Column from 63 to 64 Characters Takes Much Longer
Aikesheng Open Source Community
Aikesheng Open Source Community
Apr 1, 2024 · Databases

Understanding MySQL Instant DDL: What DBAs Should Know

The article explains MySQL 8.0's INSTANT DDL algorithm, its default behavior, limitations such as the 64‑change cap, and provides practical recommendations for always specifying the algorithm, monitoring instant changes via INFORMATION_SCHEMA, and safely rebuilding tables when needed.

Database AdministrationInnoDBInstant DDL
0 likes · 7 min read
Understanding MySQL Instant DDL: What DBAs Should Know
Aikesheng Open Source Community
Aikesheng Open Source Community
Feb 20, 2024 · Databases

Understanding and Testing Space Requirements for MySQL Online DDL Operations

This article explains the space requirements of MySQL Online DDL operations, analyzes temporary log, sort, and intermediate files, provides step‑by‑step test preparation, demonstrates failure and recovery scenarios, and summarizes best practices for avoiding space‑related errors.

Database AdministrationInnoDBMySQL
0 likes · 9 min read
Understanding and Testing Space Requirements for MySQL Online DDL Operations
Aikesheng Open Source Community
Aikesheng Open Source Community
Jan 30, 2024 · Databases

Troubleshooting VARCHAR Column Expansion Issues with MySQL Online DDL

This article analyzes why ALTER TABLE operations that extend VARCHAR columns sometimes fail in MySQL, explains the underlying Online DDL constraints, presents several real‑world problems such as default‑value handling, indexed columns, and hidden table‑rebuild quirks, and offers practical solutions for each case.

ALTER TABLEDatabase AdministrationMySQL
0 likes · 17 min read
Troubleshooting VARCHAR Column Expansion Issues with MySQL Online DDL
Aikesheng Open Source Community
Aikesheng Open Source Community
Jan 23, 2024 · Databases

Changing a Primary Key to a Composite Key in TDSQL for MySQL: Dealing with sql_require_primary_key

This article explains why TDSQL for MySQL refuses to drop a primary key when the sql_require_primary_key variable is ON, analyzes the underlying parameter behavior, and provides two practical solutions—temporarily disabling the variable or combining drop and add statements—to safely convert a single‑column primary key into a composite key.

Database AdministrationMySQLTDSQL
0 likes · 7 min read
Changing a Primary Key to a Composite Key in TDSQL for MySQL: Dealing with sql_require_primary_key
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 20, 2023 · Information Security

MySQL User Security Hardening: Password Policy, Connection Control, and Password Change Strategies

This article details how to strengthen MySQL user security by implementing comprehensive password complexity requirements, connection control policies, and password change strategies, including configuration of the validate_password component, connection_control plugin, and password expiration settings for MySQL 5.7 and 8.0, with practical examples and code snippets.

Connection ControlDatabase AdministrationMySQL
0 likes · 21 min read
MySQL User Security Hardening: Password Policy, Connection Control, and Password Change Strategies
Aikesheng Open Source Community
Aikesheng Open Source Community
Nov 30, 2023 · Databases

Step‑by‑Step In‑Place Upgrade Guide for MySQL 8.0 (MGR Cluster)

This article provides a comprehensive, step‑by‑step guide for performing an in‑place upgrade of MySQL 8.0 (including MGR clusters) from earlier versions, covering pre‑upgrade checks, backup procedures, configuration changes, data dictionary upgrade, server upgrade, verification, rollback, and common pitfalls.

Database AdministrationIn-Place UpgradeMGR
0 likes · 15 min read
Step‑by‑Step In‑Place Upgrade Guide for MySQL 8.0 (MGR Cluster)
Aikesheng Open Source Community
Aikesheng Open Source Community
Oct 23, 2023 · Databases

Using CLONE INSTANCE with DATA DIRECTORY on Replicas When Disk Space Is Limited

This article explains how to safely run MySQL's CLONE INSTANCE command with the DATA DIRECTORY option on a replica that lacks enough disk space for both source and target data sets, offering step‑by‑step strategies, SQL examples, and a final recommendation.

Clone InstanceDATA DIRECTORYDatabase Administration
0 likes · 8 min read
Using CLONE INSTANCE with DATA DIRECTORY on Replicas When Disk Space Is Limited
Aikesheng Open Source Community
Aikesheng Open Source Community
Oct 16, 2023 · Databases

The Evolving Role of Database Administrators: Challenges, Changes, and Future Trends (2023)

The article examines how the responsibilities of database administrators are shifting due to massive data volumes, heightened security concerns, cloud adoption, DevOps integration, and emerging AI and IoT technologies, outlining current challenges, recent changes, and key trends shaping the DBA profession.

Artificial IntelligenceDBAData Security
0 likes · 7 min read
The Evolving Role of Database Administrators: Challenges, Changes, and Future Trends (2023)
Aikesheng Open Source Community
Aikesheng Open Source Community
Sep 12, 2023 · Databases

Understanding MySQL 8.0 Password Policy Options and Common Misunderstandings

This article analyzes MySQL 8.0 password‑related parameters, explains the meaning of NULL values in the mysql.user table, demonstrates how global settings interact with per‑user attributes, and clarifies the priority rules between password_history and password_reuse_interval through practical test scenarios.

ALTER USERCREATE USERDatabase Administration
0 likes · 9 min read
Understanding MySQL 8.0 Password Policy Options and Common Misunderstandings
Aikesheng Open Source Community
Aikesheng Open Source Community
Aug 14, 2023 · Databases

Using MySQL 8.0.34 validate_password.changed_characters_percentage to Enforce Password Change Requirements

MySQL 8.0.34 adds the validate_password.changed_characters_percentage variable, allowing administrators to require a minimum percentage of different characters when users change passwords, and the article demonstrates how to enable the policy, set up a test environment, and verify behavior with various password change scenarios.

Database AdministrationMySQLchanged_characters_percentage
0 likes · 11 min read
Using MySQL 8.0.34 validate_password.changed_characters_percentage to Enforce Password Change Requirements