Port Mapping and Container Linking in Docker
Port Mapping
When running containers that need to be accessed from outside the host machine—such as a private Docker registry—it's common to use the -p flag. For example:
docker run -d -p 5000:5000 -v /opt/data/registry:/tmp/registry registry
This maps port 5000 on the host to port 5000 inside the container. Without such a mapping, external sy ...
Posted on Sat, 25 Jul 2026 16:09:36 +0000 by luanne
Managing Users and Modifying Password Encryption in MySQL 8.0
In MySQL 8.0, user creation and password management have seen some changes compared to earlier versions.
User Creation and Authorization Directly creating a user and granting privileges simultaneous using the GRANT statement is no longer supported. You must first create the user and then grant them permissions.
-- Attempting to create and grant ...
Posted on Sat, 25 Jul 2026 16:06:51 +0000 by scottybwoy
Resolving MySQL Host Access Denied Error via Permission Bypass
Identifying the Connection IssueWhen setting up a fresh MySQL instance on a test server, connection attempts may fail with the following error:ERROR 1130 (HY000): Host 'node-01' is not allowed to connect to this MySQL serverThis indicates that the server's host-based access control does not permit connections from the specific hostname. Since c ...
Posted on Fri, 24 Jul 2026 16:24:53 +0000 by delmardata
Configuring Entity Models with IEntityTypeConfiguration in EF Core
Entity Framework Core (EF Core) provides a flexible way to configure your entity models. One of the recommended approaches is to use the IEntityTypeConfiguration<T> interface, which allows you to separate your entity configurations into dedicated classes. This promotes cleaner code and better organization, especially in larger application ...
Posted on Thu, 23 Jul 2026 16:56:34 +0000 by danf_1979
Configuring Hive, MySQL, and Sqoop for a Big Data Development Lab
This guide walks through setting up MySQL, Hive, and Sqoop on a single Hadoop node (Hadoop01). The steps assume a CentOS 7 environment with Hadoop 2.7.4 already deployed. All operations are performed on Hadoop01 only.
1. MySQL Installation & Configuration
1.1 Remove Existing MariaDB
yum remove mysql-libs -y
1.2 Upload and Extract RPM Bund ...
Posted on Thu, 23 Jul 2026 16:43:23 +0000 by Mindwreck
Design and Implementation of a Smart Campus Management System Based on WeChat Mini Program
The rapid evolution of internet technologies has enabled efficient, secure, and scalable solutions for managing institutional data. In higher education environments, traditional methods of handling student records, assignments, announcements, and forum discussions often suffer from inefficiencies such as high error rates, weak data security, an ...
Posted on Thu, 23 Jul 2026 16:30:27 +0000 by SapAuthor
Connecting PHP to MySQL Database and Basic Operations
Connecting PHP to MySQL Dataabse
<?php
$serverName = "localhost";
$userName = "root";
$password = "root";
$databaseName = "mysql";
// Create connection
$connection = new mysqli($serverName, $userName, $password, $databaseName);
// Check connection
if ($connection->connect_error) {
die("Co ...
Posted on Thu, 23 Jul 2026 16:06:47 +0000 by ErnesTo
MySQL 5.7 Selective Replication: Parameters Not Recommended for Production
MySQL Selective Replication
It is strongly advised against using the parameters mentioned in this article for selective replication in MySQL environments. This document serves only as a testing reference and is not recommended for production use.
Test Environment: MySQL 5.7.26, Note: MySQL 5.6 behavior may differ!
Note: All conclusions below re ...
Posted on Wed, 22 Jul 2026 17:02:08 +0000 by flyersman
Pagination Techniques in Oracle, MySQL, and SQL Server
SQL Server
SQL Server supports multiple approaches for pagination:
Nested TOP Queries (common in older versions):
SELECT TOP (@pagesize) *
FROM (
SELECT TOP ((@pageindex + 1) * @pagesize) *
FROM tbl
ORDER BY sortcolumn ASC
) AS sub
ORDER BY sortcolumn DESC;
ROW_NUMBER() with CTE (requires SQL Server 2005 SP2 or later):
WITH Pag ...
Posted on Wed, 22 Jul 2026 16:46:51 +0000 by alfmarius
Implementing Custom Metrics for MySQL in Zabbix via Percona Plugins
While the standard Percona Monitoring Plugins provide a robust baseline, they often omit critical database performance indicators such as Queries Per Second (QPS), Transactions Per Second (TPS), and Input/Output Operations Per Second (IOPS). To maintain comprehensive observability, the monitoring configuration must be extended to include these ...
Posted on Wed, 22 Jul 2026 16:34:58 +0000 by loveranger