In this article, we will see how you can create a MySQL DB System
from the Oracle Cloud Shell. You can also create MySQL DB System
from Oracle Cloud Infrastructure (OCI) console or from OCI
Command Line Interface (CLI).
Oracle Cloud Infrastructure (OCI) Cloud Shell is a feature
available to all OCI users and accessible from the Console. It is
a web browser-based terminal and provides a Linux shell, a
pre-authenticated command-line interface (CLI) and preinstalled
developer tools like Git, Java, Ansible, and Terraform, for
easily managing Oracle Cloud resources. You can run cli commands
without any setup. Developers can quickly get started using the
Oracle Cloud Infrastructure SDKs, such as the SDK for Python,
Java, Go, Ruby, TypeScript and JavaScript without having to
download and configure a CLI or Python or other languages on
their local machines. To know more about Oracle cloud shell,
please look …
Today, the book I would like to recommend is Efficient MySQL Performance – Best Practices and Techniques, Daniel Nichter, O’Reilly, 2021.
I participated (just a bit) in the writing of this book as technical reviewer with Vadim and Fipar. I really enjoyed that role of carefully reading the early drafts of the chapters Daniel was writing.
Although Daniel says the book is not for the experts, I think even experts will enjoy it because several key InnoDB concepts are also covered. You can see that I refer to the book often in my A graph a day, keeps the doctor away ! series on monitoring and trending.
If you’re looking for information on transaction isolation and undo logs, fuzzy checkpointing, etc… you’ll find …
[Read more]This fall, from October 16 to 20, the MySQL Summit will be held in La Vegas.
This conference is totally dedicated to your favorite dolphin database and is part of Oracle CloudWorld.
MySQL Summit will bring together a large community of new and expert MySQL users.
Attendees will be able to meet the engineers, product managers and developers who make MySQL the number one open source database in the world!
MySQL Summit will be different from MySQL’s previous appearances at Oracle OpenWorld, for the summit, we, as MySQL Team, users of MySQL… MySQL Community, will have more sessions, dedicated tracks and more !
The call for papers is now open until June 24, 2022.
CfP is extented !
The Call for Papers ends on June 30th !
If you …
[Read more]Temporary Tables handling in MySQL has a somewhat checkered past. Some time ago, my colleague Przemek wrote a post about differences in the implementations between versions of MySQL. If you are looking for the differences in implementation, that’s a perfect place to check.
In this post, I’d like to focus on Session Temporary Tablespaces, InnoDB on-disk internal temporary tables that come to play when a query requires storing more data than tmp_table_size or TempTable engine allocated more than …
[Read more]There are two types of IFs in MySQL: the IF statement and the IF function. Both are different from each other. In this article, we will explain their diversities and show usage examples. Also, we will review other MySQL functions. Contents MySQL IF statements MySQL IF-THEN statement MySQL IF-THEN-ELSE statement MySQL IF-THEN-ELSEIF-ELSE statement Examples of […]
The post MySQL IF – Function and Statement (with Examples) appeared first on Devart Blog.
This is the second article of the series dedicated to MySQL trending.
As I wrote before, understanding your workload and seeing the evolution of it over time can help anticipating problems and work on solutions before the breakdown.
This article covers MySQL History List Length also known as HLL.
MySQL History List is related to InnoDB Undo Logs.
InnoDB
is a multi-version storage engine (MVCC). It
keeps information about old versions of changed rows to support
transactional features such as concurrency and rollback. This
information is stored in undo tablespaces in a data structure
called a rollback segment.
This means that you can start a transaction and continue to see a consistent snapshot even if the data changed by other transaction. This behavior is related to the …
[Read more]I am currently working on a script to auto-enable parallel replication / multi-threaded replication (MTR) when there is replication lag. For testing this script, I need to trigger replication lag that would disappear after enabling MTR. I came-up with a simple solution for that, and I thought it could be useful to more people, so I am writing this blog post about it. Read-on for
MySQL Partitioned Tables
Learning Outcomes
- Learn about List Partitioning.
- Learn about Range Partitioning.
- Learn about Columns Partitioning.
- Learn about Hash Partitioning.
- Learn about Key Partitioning.
- Learn about Subpartitioning.
Lesson Material
MySQL supports partitioning of tables. It supports range, list, hash, and key partitioning. Range partitioning lets you partition based on column values that fall within given ranges. List partitioning lets you partition based on columns matching one of a set of discrete values. Hash partitioning lets you partition based on the return value from a user-defined expression (the result from a stored SQL/PSM function). Key partitioning performs like hash partitioning, but it lets a user select one or more columns from the …
[Read more]The binary logging format in MySQL has been ROW by default since MySQL 5.7, yet there are still many users sticking with STATEMENT or MIXED formats for various reasons. In some cases, there is just simple hesitation from changing something that has worked for years on legacy applications. But in others, there may be serious blockers, most typically missing primary keys in badly designed schemas, which would lead to serious performance issues on the replicas.
As a Support Engineer, I can still see quite a few customers using STATEMENT or MIXED formats, even if they are already on MySQL 8.0. In many cases this is OK, but recently I had to deal with a pretty nasty case, where not using ROW format was found to cause the replicas to silently lose data updates, without raising any replication errors! Was it some really …
[Read more]Last week at Percona Live, I was asked what book I recommend for novices seeking to learn MySQL. For a long time, there has not been a good choice for modern versions of MySQL. Luckily I had just stumbled upon such a book. Now I am happy to recommend The MySQL Workshop – A practical guide to working with data and managing databases with MySQL by Petit and Cosentino.
The first chapter introduces database architectures, data types, storage engines (including MyRocks), and data normalization. The following chapter cover in great detail how to create a database, using MySQL Workbench, backups & restoring data, and creating indexes. Chapter four has a very good section on working with SQL, functions, and case statements. Then JOINs and stored procedures are covered.
In another book, that would probably be enough content, but later chapters plunge into using Node.JS, Access, and Excel with MySQL. …
[Read more]