Search

Discover articles.

Search across authors, categories, and technical themes. The layout mirrors the editorial references while staying responsive and fast.

Results

Matches for “mysql”

1000 results
Backend Development Apr 17, 2025 php中文网 Courses

How to Use PHP's mysqli_num_rows to Get the Row Count of a Result Set

This article explains how to use PHP's mysqli_num_rows function to retrieve the number of rows returned by a MySQL query, providing a step‑by‑step example that connects to the database, executes a SELECT statement, checks for errors, and outputs the row count.

DatabaseBackend DevelopmentMySQLPHPmysqli
Databases Apr 16, 2025 Aikesheng Open Source Community

Troubleshooting MySQL Transaction Lock Waits: Diagnosis and Resolution

This article explains how to reproduce a MySQL InnoDB lock‑wait scenario, use system tables such as information_schema.processlist, innodb_trx, sys.innodb_lock_waits and performance_schema to locate the blocking transaction, and finally resolve the issue by killing the offending session, while also providing quick‑check queries and parameter tuning advice.

SQLTransactionInnoDBMySQLDatabase TroubleshootingLock Wait
Artificial Intelligence Apr 16, 2025 Java Captain

Building an AI‑Powered MySQL Query Assistant with MaxKB and Alibaba Cloud Bailei Model

This guide explains how to connect an Alibaba Cloud Bailei large language model to a MySQL database using MaxKB, create semantic‑to‑SQL nodes, define system roles, and build an AI assistant that can answer operational questions with natural‑language responses and SQL queries.

SQLAIDatabaseMySQLChatbotMaxKB
Backend Development Apr 16, 2025 php中文网 Courses

Using PHP mysqli_query to Perform MySQL Queries

This article explains how the PHP mysqli_query function works with MySQL, provides a complete example for executing SELECT queries, and discusses its use for INSERT, UPDATE, DELETE operations along with result handling and related fetching functions.

BackendDatabaseMySQLPHPmysqli_query
Backend Development Apr 14, 2025 php中文网 Courses

How to Use PHP mysqli_num_rows to Get the Number of Rows in a Result Set

This article demonstrates how to use PHP's mysqli_num_rows function to retrieve the number of rows returned by a MySQL query, including a complete example that connects to the database, executes a SELECT statement, checks for errors, obtains the row count, and outputs the result.

DatabaseBackend DevelopmentMySQLphpmysqli
Databases Apr 11, 2025 Architecture Digest

Performance Issues of Using UUID as Primary Key in MySQL and Optimization Strategies

The article explains why using UUIDs as primary keys in MySQL large tables leads to poor index efficiency, slower inserts and queries, and costly index refreshes on updates, and then presents practical optimization techniques such as ordered UUIDs, binary storage, hybrid auto‑increment keys, and table partitioning.

OptimizationMySQLDatabase DesignUUIDPrimary KeyIndex Performance
Databases Apr 11, 2025 macrozheng

Why MySQL count() Slows Down on Large Tables and How to Speed It Up

This article explains how MySQL's count() works across storage engines, why InnoDB scans rows and can time out on massive tables, and presents practical alternatives such as using EXPLAIN rows, a dedicated count table, batch processing, or binlog‑to‑Hive for efficient row‑count estimation.

monitoringperformanceSQLInnoDBMySQLMyISAMCOUNT()
Databases Apr 11, 2025 Cognitive Technology Team

Understanding MySQL Concurrency: Read/Write Conflicts, MVCC, and Locking Strategies

This article explains MySQL's three concurrency types—read‑read, read‑write, and write‑write—describes how InnoDB uses MVCC, shared and exclusive locks, and provides practical examples and code for handling update‑loss and write‑write conflicts with optimistic and pessimistic locking.

DatabaseConcurrencyMySQLLockingOptimistic LockTransaction IsolationPessimistic LockMVCC
Information Security Apr 10, 2025 Aikesheng Open Source Community

Securing MySQL Connections: SSL/TLS, Password Plugins, and Authentication

This article explains how to protect MySQL connections by using SSL/TLS, various password authentication plugins, digital signatures, and client/server certificate verification to prevent impersonation, password leakage, and data tampering.

MySQLSecurityAuthenticationTLSSSLPassword Plugin
Databases Apr 10, 2025 IT Services Circle

Choosing the Right Date/Time Storage Type in MySQL: DATETIME vs TIMESTAMP vs Unix Timestamp

This article explains why storing dates as strings is problematic, compares MySQL's DATETIME and TIMESTAMP types—including their storage size, range, and timezone behavior—provides practical SQL examples, discusses numeric Unix timestamps, and offers guidance on selecting the most suitable type for different scenarios.

performancedatabaseMySQLdatetimetimestamptimezoneUnix timestamp
Previous Page 11 Next