Learn how to build a Nest.js API connect it to a MySQL database add a schema and data and and run database queries.
The latest from the MySQL community
Ideas, releases, practical guides, and perspectives from the people building with MySQL.
Learn how to build a Nest.js API connect it to a MySQL database add a schema and data and and run database queries.
When we need to upgrade from MySQL 5.7 to MySQL 8, we could choose to do an in-place upgrade or set up another MySQL 8 server(s) from the existing running MySQL 5.7 replica.
This article will explain how to set up MySQL 8 as a replica from an existing MySQL 5.7 server with Percona XtraBackup.
In my lab, we have two test nodes:
PRIMARY: mysql57 (192.168.56.111) with Percona Server 5.7 and xtrabackup 2.4 installed REPLICA: mysql8 (192.168.56.113) with Percona Server 8 and xtrabackup 8.0 installed
0. Pre-flight check with MySQL upgrade checker utility
Let’s run the MySQL upgrade checker utility to verify whether MySQL 5.7 server instances are ready for an upgrade.
MySQL localhost JS > util.checkForServerUpgrade('root@localhost:3306', {"password":"####", …[Read more]
Today, the book I would like to recommend is Efficient MySQL Performance – Best Practices and Techniques, Daniel Nichter, O’Reilly, 2021. Best Practices and Techniques is a comprehensive guide to optimizing the performance of MySQL databases. Whether you’re a developer, database administrator, or system administrator, this book can provide valuable insights and techniques to help […]
MySQL Book Review: Efficient MySQL Performance from Daniel Nichter, O'Reilly, 2021.
If you are a mobile app, frontend, backend, or game developer, you use data types such as string, numeric, or DateTime. You also know that since the advent of non-relational databases (NoSQL) such as MongoDB, which, by not being tied to a traditional SQL schema, do reading and writing on databases much faster. But MySQL showed that storing the JSON (JavaScript Object Notation) data type could also improve the speed of reading and writing relational databases.
This post will explore the JSON Data type in Percona Server for MySQL.
One of the key features of Percona Server is support for JSON data type, which allows for the storage of JSON documents within MySQL. It allows for more flexible and efficient storage of semi-structured data (which is more …
[Read more]For a long time, I never encountered any system using FEDERATED tables. But recently, there seems to be more interest for FEDERATED tables. Is this related to the increase of microservices? In a microservices architecture, services are typically designed to be small, loosely coupled, and independently deployable. Each service may have its own database, which […]
For a long time, I never encountered any system using FEDERATED tables. But recently, there seems to be more interest for FEDERATED tables. This article illustrates how to use FEDERATED tables in MySQL.
Codership is pleased to announce a new Generally Available (GA) release of the multi-master Galera Cluster for MySQL 5.7, consisting of MySQL-wsrep 5.7.40 (release notes, download) and MySQL-wsrep 8.0.31 (release notes, download) with Galera replication library 4.14 (release notes, download) implementing wsrep API version 26. …
[Read more]Basic Usage
mysqldump is a client utility that can be used for doing logical backups. It will generate the necessary SQL statements to reproduce the original database.
Backup by Nick Youngson CC BY-SA 3.0 Pix4free
The following statements are some common uses of mysqldump:
-
mysqldump -u username -p database_name [table_name] > dump.sql -
mysqldump -u username -p --databases db1_name db2_name > dump.sql -
mysqldump -u username -p --all-databases > dump.sql
The first example is for backing up a single database. If you need to back up some specific tables instead of the whole database, write their names, space-separated.
With the --databases option, you can back up two or
more databases, their names …