Fading Coder

One Final Commit for the Last Sprint

Exploiting MySQL User-Defined Functions for Privilege Escalation

User-Defined Functions (UDFs) in MySQL enable the creation of custom functions for use in SQL queries, allowing users to perform specialized operations within the database. Prerequisites for exploitasion: Access to a MySQL account with CREATE, INSERT, and DELETE privileges. The secure_file_priv syst...

Practical MySQL Logical Backup and Recovery Techniques for Data Protection

Reliable data protection is essential in database operations, particularly under high-scale workloads. MySQL supports physical and logical backup strategies; logical backups are widely adopted due to their flexibility and zero cost. The primary tool for logical backups is mysqldump, which can export...

MySQL 8.0 Lexer State Transitions for Identifier Parsing

Identifier Tokenization Logic in MySQL's SQL Lexer Source file: router/src/routing/src/sql_lexer.cc (MySQL 8.0.37) The MY_LEX_IDENT state handles identifier recognition, including support for multi-byte character sets and special prefix forms like _charsetname. Its behavior adapts dynamically based...

Preventing SQL Injection in Node.js and MySQL Applications

Overview While it is rare to build backends directly using raw Node.js today, understanding SQL injection attacks is still valuable. This article uses Node.js and MySQL to explain SQL injection vulnerabilities and how to mitigate them. SQL injection is an ancient attack that has existed since the ad...

Setting Up MySQL on macOS via Installer and Homebrew

Deploying via Official DMG Archive Retrieve the latest Comunity Server build from the official distribution portal. During the setup wizard, explicitly select Legacy Password Encryption when prompted for the root credential to ensure backward compatibility with older client utilities. Resolving PATH...

Understanding How GRANT Operations Affect MySQL Replication

A replication issue can occur in MySQL when a GRANT operation fails due to mismatched user information between the in-memory privilege cache and the mysql.user table. This can lead to SQL thread stoppage on replicas. Replication Error Scenario When checking replica status with SHOW SLAVE STATUS\G, a...

MySQL Basic Operations: Insert and Query Data

1. INSERT Statement (Creating Data) The INSERT statement is used to add new records to a table. Basic Syntax CREATE TABLE employees ( id INT, name VARCHAR(50) ); INSERT INTO employees VALUES (1, 'John'); INSERT INTO employees VALUES (2, 'Alice'); In SQL, both single quotes and double quotes can be u...

Persisting MySQL Data on Local Host for Docker and Kubernetes

Persist MySQL Data to Local Directory with Docker To store MySQL data on your local host filesystem instead of an ephemeral container volume, simply bind mount a local directory to the container's default data path. See the official MySQL Docker image documentation for additional configuration detai...

Mastering MySQL Fundamentals: A Comprehensive Guide to Core Concepts and Best Practices

Structured Query Language (SQL) is a standardized programming language designed for managing relational databases. It enables users to define, query, manipulate, and control data within database management systems. The term SQL can be pronounced either letter by letter (/ˌɛsˌkjuːˈɛl/) or as a single...

Hospital Outpatient Registration System Architecture and Implementation

The system employs a layered architecture designed to menage outpatient appointments efficiently. It integrates a robust backend capable of handling concurrent requests with a responsive frontend interface, ensuring seamless interaction for both medical staff and patients. Backend Framework: Spring...