Fading Coder

One Final Commit for the Last Sprint

Admissions Promotion Management System Using Java, Spring Boot, and MySQL

Technology Stack The system is developed using Java with the Spring Boot framework. The frontend utilizes JavaScript libraries such as jQuery and Ajax for dynamic interactions. MySQL serves as the backend database for storing all application data. Functional Overview Administrator Features Authentic...

Core Database Concepts and Optimization Techniques

Core Database Concepts and Optimization Techniques
Transactions Transaction Definition and ACID Properties Definition: A sequence of database operations that must either all succeed or all fail, serving as an indivisible unit of work. ACID Properties: Atomicity: All operations within a transaction are completed successfully; otherwise, none are appl...

Oracle Implicit vs Explicit Joins and MySQL One-to-Many Aggregation

In Oracle, the queries SELECT * FROM a, b WHERE a.id = b.id and SELECT * FROM a INNER JOIN b ON a.id = b.id are functionally equivalent. Both produce the same result set by matching rows from tables a and b where the id values are equal. However, they differ in syntax style and clarity. The comma-ba...

Concurrency Control Strategies in MySQL: Pessimistic and Optimistic Locking

Concurrency control mechanisms are essential for maintaining data integrity when multiple transactions attempt to modify shared resources simultaneously. These mechanisms serialize access, ensuring that conflicting operations do not lead to inconsistent states. While read operations generally procee...

MySQL Data Manipulation: From Conditional Updates to Index Optimization

Conditional modifications allow precise control over data changes. To reduce ages for users with four-character usernames: UPDATE user_profiles SET age = age - 3 WHERE handle REGEXP '^.{4}$'; Update only the first three records, or apply ordering before limiting: UPDATE user_profiles SET age = age +...

Working with MySQL C API: Core Functions for Database Interaction

Initializing a MySQL Connection The first step in using the MySQL C API is initializing a connection handle: MYSQL *conn = mysql_init(NULL); This allocates and initializes a MYSQL structure used throughout the session. Establishing a Database Connection After initialization, connect to the database...

Deploying FineBI 6 on openEuler with MySQL 8 and Tomcat 9

System Preparation and Package Updates sudo yum upgrade -y sudo yum install -y vim tar net-tools wget sudo systemctl reboot MySQL 8 Database Configuraton sudo yum install -y https://repo.mysql.com/mysql84-community-release-el9-1.noarch.rpm sudo yum repolist enabled | grep mysql sudo yum install -y m...

MySQL Architecture, Indexing Strategies, and Performance Optimization

Database Normalization Principles Relational database design follows progressive normalization rules to eliminate redundancy and insure data integrity: First Normal Form (1NF) requires that each column contains atomic, indivisible values. No repeating groups or arrays should exist within a single fi...

Installing and Configuring MySQL 5.7 on Windows

1. Donwload the Distribution Obtain the MySQL 5.7 ZIP archive from the official site: https://cdn.mysql.com/archives/mysql-5.7/mysql-5.7.33-winx64.zip 2. Extract the Archive Unzip the downloaded file into a directory without spaces (for example, C:\mysql). The folder structure should contain bin, da...

Automated Remote MySQL Database Backup with Shell Script

Prerequisite Setup First, create a dedicated backup user on the source MySQL server (192.168.1.1) with the minimum required permissions for consistent backup: mysql> GRANT SELECT, LOCK TABLES ON *.* TO 'backup_operator'@'192.168.%.%' IDENTIFIED BY 'BackupPass123456'; FLUSH PRIVILEGES; Next, verif...