Analyzing Taobao User Behavior with SQL

Data Source Overview We analyzed 1,048,575 behavioral records from 8,477 random users between November 18 and December 18, 2014. The dataset contains these fields: user_id: Unique user identifier item_id: Product ID behavior_type: Action type (1=pv/view, 2=fav/favorite, 3=cart/add to cart, 4=buy/purchase) user_geohash: Geographic location (cont ...

Posted on Sat, 27 Jun 2026 16:31:44 +0000 by lajkonik86

Installing and Configuring MySQL on Linux Systems

Installation Process and Initial Setup First, remove any existing MariaDB installations that might conflict: yum remove mariadb-libs.x86_64 Download the MySQL repository configuration package: cd /tmp wget https://dev.mysql.com/get/mysql80-community-release-el7-2.noarch.rpm Install the downloaded repository: yum localinstall mysql80-communi ...

Posted on Fri, 26 Jun 2026 17:00:30 +0000 by Capnstank

Creating Databases and Tables

Database Overview Throughout human evolution, numbers, text, and symbols were created to record data. However, as cognitive and creative abilities improved, the volume of data increased, making it a significant challenge to record and accurately retrieve data. With the advent of computers, data began to be stored and calculated within computer ...

Posted on Thu, 25 Jun 2026 17:44:13 +0000 by jarv

Implementing Daily Automatic Partitioning in MySQL

Creating the Test Database CREATE DATABASE partition_demo CHARACTER SET utf8 COLLATE utf8_unicode_ci; Creating the Table Note: The column used for partitioning must be part of the primary key. USE partition_demo; CREATE TABLE event_logs ( id BIGINT(20) NOT NULL AUTO_INCREMENT, event_time DATETIME NOT NULL, message VARCHAR(200), ...

Posted on Wed, 24 Jun 2026 18:20:23 +0000 by irishprogrammin

Automating MySQL Operations with Shell Scripts

MariaDB Installation yum install mariadb mariadb-server mariadb-libs -y systemctl start mariadb netstat -tnlp | grep :3306 MariaDB runs without a default password, allowing direct access via the mysql command. Database Setup CREATE DATABASE school DEFAULT CHARACTER SET utf8; Table Definitions CREATE TABLE student ( s_id VARCHAR(20), s ...

Posted on Tue, 23 Jun 2026 17:47:34 +0000 by IAK

MySQL Stored Procedures: Definition, Creation, and Parameterized Usage

Definition A predefined, reusable set of SQL statements tailored to a specific task that executes when explicitly invoked. Creation and Execution Syntax 2.1 Create a Stored Procedure Lowercase syntax example: create procedure proc_name([parameters]) begin -- SQL statements block end; Uppercase syntax example: CREATE PROCEDURE proc_name([parame ...

Posted on Mon, 22 Jun 2026 18:52:56 +0000 by skyturk

Deploying KnowStreaming Kafka Management Platform with Docker

Install Docker following the official documentation for you're operating system. Docker Compose Setup Install Docker Compose according to the offciial installation guide. Service Configuration # docker-compose.yml configuration version: "3.8" services: kafka-manager: image: knowstreaming/knowstreaming-manager:latest co ...

Posted on Sun, 21 Jun 2026 18:02:51 +0000 by davidmuir

Installation and Basic Configuration of MySQL 5.7 on Linux

Introduction Data is stored in various formats including text, images, and video, which computers interpret as binary or hexadecimal machine language. Depending on the importance and complexity of the information, different management strategies are required. Databases are best suited for storing critical data with complex relationships. Datab ...

Posted on Sun, 21 Jun 2026 16:51:12 +0000 by misterph

Efficient Multiple Count Queries in MySQL

Performing Multiple Count Operations in MySQL Database Connection Setup import mysql.connector db_connection = mysql.connector.connect( host="db_server", user="db_user", password="secure_password", database="inventory_db" ) Executing Count Queries db_cursor = db_connection.cursor() # Count prod ...

Posted on Sat, 20 Jun 2026 17:41:51 +0000 by jdc44

Database Sharding and User Registration Implementation for a Train Booking System

User Table Structure The original table structure is designed as follows. Due to the large user base, database sharding becomes necessary. Sharding Strategy Design Based on the system design assumptions, the 12306 system needs to support approximately 1 billion registered users, with roughly 10 million new users annually. Before implementing da ...

Posted on Sat, 20 Jun 2026 16:47:10 +0000 by ari_aaron