Community journal

The latest from the MySQL community

Ideas, releases, practical guides, and perspectives from the people building with MySQL.

Follow the feed
Showing entries 1 to 10 of 45635 « Previous | Next »
Jev-Style Decision Models in MySQL with vsql-ai

Decision models such as TypeSafe's Jev, Google's Gemini Decision 1, and OpenAI's Decisions API answer a question about an input with a probability, which makes them useful for classifying rows in a database. Getting a probability score from these models takes one API call per input. The harder part is choosing the cutoff that counts as yes, and knowing that it's right for your data.

OpenAI's guide on this topic gives an answer: "Use labeled examples from your application to set thresholds for routing, filtering, or review." That means that to derive a threshold, you need some rows where you already know the right answer. Your application may already store these answers. For example, a support application may record which team resolved each ticket. Before you use a stored answer as a label, check two things: that it answers the same question that you ask …

[Read more]
MySQL Community 2026: Growing Together 

As the end of the year approaches, it is time for a familiar MySQL Community tradition: our Advent Calendar. From today through Dec 24, we will share a new post each day, bringing you practical learning, community stories, and a look back at what we have achieved together.  We are opening this year’s calendar with […]

DBaaS Beyond the Hyperscalers, Part 1: MySQL Performance

DBaaS Beyond the Hyperscalers, Part 1: MySQL Performance Research objective

In this series of posts we want to look at the non-hyperscaler cloud providers that offer MySQL and PostgreSQL DBaaS (DataBase as a Service) and answer two questions: which service delivers the most throughput out of the box, and which one gives the best cost efficiency per transaction.

The providers may sell the same shapes, but their performance can be very different. Also, the transaction cost is another factor apart from performance.

The current part covers MySQL performance. Part 2 covers PostgreSQL performance, and Part 3 covers cost efficiency for both. Details of the setup, workloads and metrics are in the …

[Read more]
DISA Releases Oracle MySQL 9.x STIG for MySQL Enterprise Edition 9.7 LTS

The Defense Information Systems Agency (DISA) has approved and released the Oracle MySQL 9.x Security Technical Implementation Guide (STIG), Version 1, Release 1, supporting MySQL Enterprise Edition 9.7 LTS. Published on November 30, 2026, the guide is available from the DoD Cyber Exchange and is effective immediately upon release. As an author of the MySQL […]

Getting Started with Percona PXC Operator

As part of many conversations I had during Percona Live I was asked why we didn’t use the Percona Operator for MySQL based on Percona XtraDB Cluster. We are currently running hundreds of PXC clusters across many Kubernetes environments all deployed with our own in-house operator. As part of the evaluation I needed to set up a repeatable environment with S3 compatible storage that could run locally so I’ve documented my setup in the hope it will help others.

I’ve tried not to dig too deeply into the operations of PXC cluster as I felt it would add too much complexity to the article and really needs more in-depth explanations than I could give here. There are lots of good articles around explaining the concepts introduced here so I would recommend further research if you are interested.

Parts of this article are the same as the getting started with …

[Read more]
Kiến thức lập trình web, PHP, MySQL và công cụ phát triển

Mỗi tuần, đội ngũ của chúng tôi lại nhận được câu hỏi giống nhau từ các bạn mới vào nghề: nên bắt đầu học từ đâu, và cần những công cụ nào để không bị ngợp. Bài viết này là tổng hợp những gì chúng tôi đúc kết được từ các dự án thật, từ website bán hàng nhỏ đến hệ thống quản lý nội bộ cho doanh nghiệp.

Chúng tôi viết với góc nhìn của người đã từng vận hành website sau khi bàn giao. Vì vậy, bạn sẽ thấy nhiều ví dụ thực tế hơn là lý thuyết suông.

Lập trình web thực chất là gì?

Đơn giản nhất, lập trình web là việc viết mã để máy chủ xử lý yêu cầu và trả về trang cho người dùng. Khi khách hàng bấm nút đặt hàng, có một đoạn mã nhận dữ liệu, kiểm tra và lưu lại vào cơ sở dữ liệu. …

[Read more]
A Billion Messages a Day: How Slack Keeps MySQL and Vitess Running

Here is a sentence I did not expect to hear from a database engineer:

We don’t operate the database server fleet. We try to not interact with it as much as we can.

It comes from Eduardo Ortega Urrego, Staff Software Engineer on the Datastores team at Slack. On December 2 he will explain on our webinar how that works.

The numbers first

Slack sends more than a billion messages a day. Behind it:

What the Duck? Speeding Up MySQL Analytics Without a Whole Second System.

In my career I have seen the same pattern many times. 
A database grows without control, but not evenly. The live dataset, the rows the application really works on, stays relatively small.
Next to it, a few huge tables keep growing, kept only because someone needs them for reporting or just because they initially do not care to clean it up. Sometimes a single table holds 80% of the data or, trust me, even worse.

The worst case I met more than once is reporting run directly on the OLTP system.
A report that scans months of orders competes with the application for CPU, memory and I/O, and the buffer pool fills with old pages nobody else needs.
The application slows down, and the report is slow anyway, because InnoDB was never built to scan and aggregate hundreds of millions of rows.

There are several ways to act on this scenario, the most common answer to this impractical situation is my database …

[Read more]
A Practical Guide to Adding and Updating MySQL Replication Filters

Managing MySQL replication filters in a live production environment doesn’t have to mean rebuilding your replicas from scratch. In this post, we’ll walk through how to safely exclude specific tables from replication and cleanly re-sync and add live tables back into the replication stream using mydumper and binlog coordinates, without ever touching the primary server.

Why use replication filters?

In MySQL, the primary-replica (formerly master-slave) architecture is the most widely used deployment pattern. Replication filters let you build replicas that hold only the data a team needs. Some teams need transaction data, others need analytics data, and a multi-source replica may combine data from several sources. Replicating less also reduces resource use.

Needs change over time, so you will often have to update a replica’s filters, either to stop replicating some tables or schemas, or to start replicating them again. …

[Read more]
Bài tập PHP và MySQL cho người mới: 8 bài thực hành

Nếu bạn đang tự học lập trình web, gần như chắc chắn sẽ có lúc phải tự tay kết nối PHP với MySQL. Đội ngũ chúng tôi từng gặp nhiều bạn xem xong cả chục video hướng dẫn mà vẫn chưa tự viết nổi một trang đăng ký. Thường thì vấn đề không nằm ở độ khó của kiến thức, mà ở việc thiếu bài tập PHP và MySQL đúng sức để luyện tay. Vì vậy, chúng tôi gom lại 8 bài thực hành, đi từ kết nối cơ bản đến quan hệ giữa các bảng. Mỗi bài đều có hướng làm và những lỗi mà người mới hay vấp phải.

Bài tập PHP và MySQL là gì và vì sao nên làm?

Nói dễ hiểu, đây là những bài nhỏ trong đó PHP đóng vai người xử lý logic, còn MySQL là nơi cất giữ dữ liệu. Bạn nhập tên một học viên vào form. PHP nhận lấy, kiểm tra, rồi …

[Read more]
« Previous | Next »