Peter Zaitsev is one of the best-known names in the MySQL world and a leading database expert. He is a co-author of “High Performance MySQL,” started his consultant career at MySQL AB and went on to co-found Percona. Today he is also a member of the OurSQL Foundation’s Founding Board.
A conversation with Peter is always a chance to look at familiar things from a different angle, and this one was no exception. We talked mostly about AI, but from many sides: why AI agents choose Postgres, how far we can trust automation with a database, what AI is doing to open source and the people who build it, and what developers still need to know themselves.
What MySQL really is
Why did you decide to support the OurSQL Foundation, and what is the MySQL ecosystem it is supposed to serve?
That’s an interesting story. The idea I’ve had for a while is that the MySQL ecosystem is much bigger than any of its vendors. Some people recognize this, and some don’t. They see MySQL as just a product trademark that Oracle owns and alone defines. That’s not how I see it. In open source, it is the community, the ecosystem, that defines what “the product” is. The name and the code can change. We have seen a number of projects move in a different direction when the original steward was not serving its ecosystem well.
That’s why I thought it would be good to build, with the OurSQL Foundation, something that looks at the community as a whole and serves the needs of actual users: the people who build or operate applications powered by MySQL.
Here I have a definition of the MySQL ecosystem that I know is sometimes controversial. I define it first and foremost through the language: the protocol and the way users work with the database, not the code base. Some people say that unless something traces back to the first line of code Monty, (the MySQL founder), wrote a few decades ago, it isn’t MySQL and isn’t part of the ecosystem. I don’t see it this way.
When you write an application and decide that your database is too slow, doesn’t scale, isn’t secure enough or isn’t moving quickly enough, you don’t care about that first line of code. You care about switching costs, and the language defines a lot of them. Maybe I move from MySQL to MariaDB, which does share an ancestry with it, or to TiDB or OceanBase. Or I move some of my analytical workloads to ClickHouse or Apache Doris. All of them “speak MySQL”, if you will, even though they don’t share a code base.
How will you know, a few years from now, that the foundation has worked?
There are a couple of ways to look at it. The first is the users: the people who build applications with MySQL or operate MySQL-powered applications. Are they doing better because of the OurSQL Foundation’s work? Do they have more information, better software, better education, you name it?
The second is the diversity of vendors. Open source is real, and you can really succeed with it, only when there are several vendors. Imagine you have an open source project, you don’t want to do something in-house, and there is only one vendor you can go to. Then you have exactly the lock-in we in the open source community try so hard to avoid. So we want to help vendors across the broader MySQL space succeed, so they can offer solutions, software and services to every user in that space.
MySQL in the AI stack
Ask an AI agent to build an application, and it will most likely choose Postgres. Is that about technology, about the ecosystem, or something else? And does MySQL have a real chance to get back into the game?
First, it’s not only Postgres that is winning here. If you ask for a small personal open source application, the AI will often choose SQLite. Some research shows that SQLite tends to be the first choice for smaller, simpler applications. Beyond that, PostgreSQL is the default when you simply ask AI to build something and want to stay within open source.
And there are good reasons for that. Suppose I say, “Please build a new application that does XYZ,” without really defining my goals. Then I probably want to keep as many rights as possible. Maybe I’m building on open source, but it’s going to be something awesome that I’ll sell. Well, guess what? With MySQL under the GPL, that is much more complicated than with Postgres, which is permissively licensed and lets me do much more. That’s one practical reason. With a lot of MySQL-derived software, unfortunately, we’re stuck with it, unless Oracle finally recognizes that the GPL may not be the best license for the modern world and relicenses MySQL under a more permissive one. Frankly, I would love to see that happen, but I think it is very unlikely.
The second point is that AI makes databases much more fungible: moving from one database to another becomes much easier. So for the MySQL ecosystem, the question isn’t only how to get AI to choose MySQL by default. We can also say: “I started with SQLite, or Postgres, or Firebase. But now things are real. The application has become mission-critical and needs high performance, scale, security and reliability. How do we move it to MySQL?” In my opinion, there is much more potential in that than in trying to beat PostgreSQL head-to-head, where, for many reasons, it is ahead so far.
You have suggested building a MySQL skills library for AI. What is it, and who should build it: Oracle, the vendors, the foundation, everyone who cares about the ecosystem?
Let me start from how developers use AI, because it’s a very broad spectrum. At one end, people say, “Write something for me. I don’t care about the database or the programming language, I just want the thing.” Boom, boom, boom, and you see fantastic applications built from a single prompt. At the other end, people use AI to generate pieces of code and then verify them with their own eyes.
Typical production applications will not be vibe-coded. They have much more detailed specs. People want an architecture they understand and can maintain and evolve. That’s where humans make choices: “I want this implemented in Go, because I like it, or in Rust, whatever. And I’ll use MySQL for the back end.”
Now, AI tends to create things from scratch over and over again. Ask it the same question twice, and you get a slightly different answer and slightly different code. That’s not what we want when we build software. We want things to be repeatable. If an application does X in many places, you put it in a single function, so it works the same way every time. That means better quality and a lot of other benefits.
That’s where skills come in. Leave aside whether AI will choose MySQL by default. Say you’re a member of the MySQL community and you decide to build with MySQL because you believe it’s better for you in the long term. How do you educate the AI on the building blocks? How do you design a MySQL schema, deploy MySQL, set up observability, high availability, security? You can ask AI to do all of that, and it will come up with something. But ask again tomorrow, and it will come up with something slightly different, which is not good. Skills channel that in much better directions. By providing building blocks and pieces of knowledge for AI to build on, we increase quality and also reduce token costs.
How far can we trust the machine?
In one of your talks, you compared databases with self-driving cars and their levels of autonomy. What level is MySQL at today?
Self-driving cars have different levels of autonomy, from technology that assists you in certain conditions to full autonomy in every circumstance. The same applies to databases and, in fact, to any system.
In the real world, databases still don’t run autonomously. There is typically a human in the loop. Observability solutions and similar tools mostly work as decision-support or advisory systems: “We found better configuration options,” or “We found better indexes. Do you want to apply them?”
That’s where we are in practice, with some limited automation. Some people give their system permission to scale the server up when the workload grows, or to add storage when it’s running out of space. These are narrow tasks with important rewards and relatively low risk, so we automate them. But complete database automation isn’t quite there yet, at least for most systems, because databases are very risky business.
What happens when an AI agent with access to a database deletes or leaks data? Who is responsible: the person who deployed it, the agent’s developer, or the database that allowed it?
Responsibility is tricky here. Generally, responsibility is something humans and corporations have. Think of a dog. A dog has a mind of its own. If it bites someone, who is responsible? The owner, even though they had nothing to do with it. The dog just had something on its mind and bit someone. I think that is the model for agents as well.
The analogy works well for another reason. We say we can never truly understand what’s going on in an animal’s head or predict how it will react in a given situation. There are many cases where a very nice dog suddenly bit someone, and nobody knows why. The same thing happens with agents. They may behave very, very well, you’re almost ready to trust them, and then they don’t.
So the solution is similar too. If you’re walking your dog and don’t want it biting people, you keep it on a leash. Keep agents on a leash as well: restrict their permissions so they simply cannot do what you don’t want. Don’t just tell the agent, “Please don’t do this,” and get back, “Yes, yes, I agree with you.” It may forget at an inconvenient moment, or decide you gave it completely different directions.
The main point is that LLMs are so complicated that nobody truly understands them or can fully predict what they will do. Even their creators can’t, and they say so. What about us mere mortals?
Open source in the age of AI
Blogs and documentation used to be how open source companies showed their expertise, found customers and earned trust. Now engineers ask an AI assistant instead. What still works?
The world is changing a lot, but we need to understand what exactly we’re looking at. Frankly, many developers never cared about databases. They learned them as a necessary evil, because otherwise their application would break. Now, especially at the lower end, they don’t need to. Do I need to understand how my data is stored? Maybe not.
But there are also many professionals who need to understand it and want to, and they often want to talk to other professionals. That’s why offline conferences are so important. Over a beer or a coffee, whatever your poison is, you’ll hear many more real war stories. On a conference stage, many companies don’t want you to talk about how you almost lost all your customers’ data. They only want glorious success stories that make them look good. But we know there’s a lot of shit going on behind the fancy facades of the world’s most respected companies.
Then there’s how content is consumed. Text-only blog posts often end up consumed by LLMs, and you may get a small reference that nobody notices. You can block AI agents from your website, of course, but then you’re simply removed from the conversation. The agents will find other content to summarize. That’s why we see other formats: video, visual infographics and, recently, some very cool interactive applications. Say you want to see how PostgreSQL works: you click on its components, zoom in and get an animation. AI still can’t digest that kind of content, and that’s how you get your expertise and your brand in front of people.
Probably the most important thing is the software itself. I tell our people at Percona: suppose someone needs a backup. They can ask an LLM about best practices and what X and Y are. But if the best practice is to use Percona XtraBackup, in the end they will have to come to Percona and use it.
But what if AI agents choose the tools too?
Maybe they will. That’s where the line between the low end and the enterprise becomes important. At the low end, people say, “My database comes from Percona, or Oracle, or maybe MariaDB. I don’t really care. Plus some monitoring and backup, a mash-up of tools.” It works, and they’re happy.
At enterprise scale, you always need to know where your components come from, who is responsible for them and whether you can trust them. As a system becomes more serious, somebody, maybe not the developer but the compliance people, will ask: “Where does this come from, and who is responsible for it?” That’s becoming more and more important. In Europe, for example, new laws are coming in that require you to know where your software comes from and to take responsibility for it. If you don’t, you can be in a lot of pain.
I think that’s where a lot of the opportunity for open source companies is moving. You become a building block. Maybe nobody knows about you for a while, because agents just happened to pick you. But in the end, somebody will have to understand what you are.
Maintainers, including those of MySQL projects, are flooded with AI-generated bug reports and pull requests. Some call it trash. Is it?
Calling it trash is not wise, to say the least. Many of the security bugs discovered recently came from exactly that “trash.” AI models can find a lot of security bugs. And believe me, it’s not just security bugs; it’s bugs in general.
What’s interesting about LLMs is that they are not shy. In that sense they are like kids. A human developer thinks: “I may have found a bug. But what if it isn’t one? I won’t feel good. People will laugh: he reported some bullshit.” LLMs don’t care about their reputation at all, because they don’t have one. So, like kids, they come up with lots of ideas. Many are bullshit, but many are brilliant.
The question isn’t whether every one of a hundred reports from an LLM is great. It’s how many of them are. Maybe ten. But those are ten bugs to fix, ten opportunities to improve your product. That’s what I’d focus on. And if you say, “I’m a lone developer, what do I do with a hundred reports?”, the answer is to learn to use AI to triage them, and hopefully to suggest fixes in code that you then approve.
Many people won’t like that, especially open source engineers. At many proprietary companies, engineers came for the money; it’s a good career. Open source contributors most likely got into this business for love. They take real pleasure in writing code. Ask an open source developer what they’d do if they won a billion dollars in the lottery and retired. “Awesome, now I can spend my days writing code!”
With the new, AI-driven approach to software engineering, you don’t get to write the code. AI writes it, and you become an editor instead of a writer, picking what’s right and what’s wrong. Or a shepherd who guides the agents and defines their rules. That’s a different job, and many engineers absolutely hate what their job is becoming.
But that’s life, and it has happened many times before. Think about a shoemaker 300 years ago. It was a true craft. You studied the shape of a foot and worked the leather, and a week later you had wonderful shoes you’d put your heart and soul into. And now? Maybe somebody still does that in a couple of Italian villages, but most shoes are mass-produced in China, and the profession is pretty much gone. Now it’s our industry’s turn: the way software is created is changing, and different people adapt at different speeds.
People and careers
Your talk “17 Things Developers Need to Know About Databases” was very popular. What would you add to it today, when a developer can just ask an AI assistant?
This won’t be super specific. First, if you’re building serious applications, you still need to understand the details at a certain level. You can vibe-code something without knowing which programming language or database it uses. But for something of critical importance or at large scale, you have to know. That was the premise of my talk a few years ago, too.
What matters now is understanding things at a high level, so you can ask the right questions. I could be an expert at reading EXPLAIN plans and know all the optimizer hints and every way MySQL can or cannot optimize a query. Chances are, I don’t need that. What I do need to know is that there are queries and that they can be optimized. Then I can say: “Things are running slow. Can you check which queries are running? Okay, these ones. Can you optimize them?”
In many cases, you have to guide the AI. It is very capable, but the number of things it could potentially do is almost infinite, it can’t do them all at once, and it often runs in the wrong direction. At least for now, you still need to point it the right way. Knowing which questions to ask is what I would focus on, rather than database trivia that many old-timers are still so proud of, like knowing every MySQL knob or the names of internal functions. I don’t think that’s needed anymore.
Does it still make sense to build a career on MySQL in 2027?
That’s a very good question. In general, LLMs and AI let us move up the stack, and they will keep doing so. So deciding today to be only a MySQL guy, with a single tool in your toolbox, may not be the best idea. You want to operate at a higher level. MySQL is a wonderful tool, and you can work with it.
But there’s something important to keep in mind. Some people say, “Look, a lot of new applications are written on Postgres.” Well, that could very well change again. I can imagine us saying in a few years: “Instead of all that strange, weird, lame stuff written by humans, we now have something greenfield, architected from the ground up and built with AI. It’s much better, faster, cleaner, more secure.” And that will dominate the market.
Would that change things for Postgres? The thing about databases, especially in enterprises, is that they are very, very sticky. MySQL has enormous adoption right now. Many applications will keep needing care, and many people will be needed to keep working in this industry. Honestly, we don’t know how many, because AI keeps increasing efficiency. But if you’re one of the top MySQL experts in the world today, there is work for you for the next thirty years.
If you’re just starting out, though, it’s not only about being a software engineer, but about being a builder. It’s not about your skill at writing code or knowing every standard library function. It’s about understanding what needs to be done. In my opinion, the same applies to database operations.
Say I’m a young developer who wants to start an open source project around MySQL. What does the ecosystem need most: tools, configurations, something with AI?
Maybe it’s not the wrong question, but it’s the wrong way to approach it. If I have no previous relationship with MySQL, I can’t just come along and say what the problem is. Especially now with AI, code is cheap. What’s hard is a deep understanding of the problems.
And what does a beginner have that nobody else does? Beginner’s eyes. A beginner sees the friction that people with ten years of experience no longer notice, because we just know: of course you go here, download that tool and look at these numbers. So my first step as a beginner would be to ask, “How can I remove that friction?”
The best way is to scratch your own itch. What are you excited about? Computer games? Cool. Go and build a game with a database using AI, and you’ll see what challenges you run into with MySQL. Then turn that into contributions: new tools, documentation improvements, maybe a Claude skill that pushes us forward. That’s where I would start.
Many open source projects that became successful from the ground up began exactly like that. Somebody needed something, built it, and then invited other people to use it.
So AI hasn’t changed the recipe for a successful open source project?
By and large, I don’t think it has. Of course, some people say, “We analyzed the market, hired the best engineers, built X, and went public or sold for a billion dollars.” That works too, but it’s a completely different thing: a business track that happens to use open source as its market and on its own has little to do with open source. The open source contributor’s path is the same as always: scratch your own itch and build something you care about.
That matters, because any project has good days and bad days. Somebody writes, “Your project is awesome, I deployed it at XYZ.” Then you work on it for a month and nobody uses it. Or someone finds big bugs, or the project causes trouble for one of your users, and you’re disappointed. There will be ups and downs. If you truly care about the problem and the project, that gives you the resilience to get through them.


