Over here at PlanetScale, we offer you a MySQL database. As a part of this offering, it is critical that we offer you a MySQL protocol-compatible interface to access. This enables using mysql-client as well as any MySQL-compatible driver for your favorite language. But what if we weren’t constrained by this? Could we provide an alternative interface and API? Most of what I will be discussing is not publicly documented and is entirely experimental. The background As a part of some of our infrastructure initiatives, we demanded new APIs and connectivity features for our database. To support features that weren’t available over the MySQL protocol, we decided to start bolting on a publicly accessible HTTP API. This API is not documented for public consumption just yet (it will be, I promise), but it is gRPC compatible. This HTTP interface led to the development of our Serverless driver for JavaScript and PlanetScale Connect. In serverless compute …
[Read more]In this article we explore how our HTTP/3 API compares to the latency of a traditional MySQL client.
How to use MySQL HeatWave Inbound replication channel filters.
In Managed Services, we have many customers, and as each has a different kind of config and environment, working on their environment is always fun and interesting. In this blog post, I will showcase an issue we faced when dropping a table and how it was resolved.
There was a ticket to drop a table in a client’s production environment (MySQL 5.7). The table had a # symbol at the beginning of the table’s name. I thought it was easy that we can use quotes or backtick symbols to specify the table to drop. But it did not work as I expected and I came to know why the customer created the ticket to drop the table.
The following example recreates the problem. It shows the table, but you are unable to see the structure and cannot drop it.
mysql> show tables; +--------------------------+ | Tables_in_percona | +--------------------------+ | …[Read more]
Let’s examine COMMIT
latency on Aurora v2 (MySQL
5.7) vs. Aurora v3 (MySQL 8.0) vs. RDS MySQL 8.0 2-AZ vs. RDS
MySQL 8.0 3-AZ “cluster”.
Let’s examine COMMIT
latency on Aurora v2 (MySQL
5.7) vs. Aurora v3 (MySQL 8.0) vs. RDS MySQL 8.0 2-AZ vs. RDS
MySQL 8.0 3-AZ “cluster”.
Let’s examine COMMIT
latency on Aurora v2 (MySQL
5.7) vs. Aurora v3 (MySQL 8.0) vs. RDS MySQL 8.0 2-AZ vs. RDS
MySQL 8.0 3-AZ “cluster”.
This text exists mainly so that I paste the URL into the
#mysql
channel in Libera IRC.
The mysqldump
tools allows you to convert a MySQL
database server or individual schemas back to SQL. You are left
with a script that is supposed to be loadable into a target
server and gives you back the full database, including all
objects in it.
You can read that SQL as a script into an empty server to create a new instance, or process it with different tools for different purposes. So in general, a workflow can look like this:
$ mysqldump --options --more-options and parameters > somescript.sql
$ scp somescript.sql somewhere@else.com:
$ ssh somewhere@else.com
...
$ mysql --show-warnings --whatever-options < somescript.sql
Instead of mysql
with an input redirect, you may
also use the command line client and the source
command:
$ mysql …
[Read more]
In MySQL, the ORDER BY clause is used to sort the records fetched by the SELECT statement, in ascending or descending order. And while the usage of this command is simple in basic cases, there are more complex scenarios requiring much more attention. This article will explore the essence, the syntax, and the usage scenarios […]
The post MySQL ORDER BY Clause: Syntax and 13 Examples appeared first on Devart Blog.
In this article, I will guide you through the process of setting up a fully functional Zabbix monitoring system on Oracle Cloud Infrastructure.