Your blogs are really interesting..Keep writing
LikeLike
Your blogs are really interesting..Keep writing
LikeLike
MySQL has had replication for decades but the various options can be confusing. One social media post I read recently could be summarized with the statement 'there are too many good options but how do I know which is right for me?'
Cluster
Of all the words used in the computer related world, 'cluster' is the one that I wish we could have found a replacement for as the confusion over the word has created it's own cluster. Since MySQL has InnoDB Cluster and NDB cluster with other vendors using the word we end up with a lot of confusion. Add in clustered indexes and other non replication uses of the word to add more confusion. So which is what and where do we apply then for best performance.
MySQL Replication 101
The follow is an overview of MySQL replication offerings and the details are in the manual. And of course there are third party software that …
[Read more]If you plan for example to have a bastion host in the cloud to access all your MySQL servers and use only MySQL Shell, the first time you connect to one of the host, you will realize that MySQL Shell prompts for a password but doesn’t ask you to store it of not.
Example:
mysqlsh fred@192.168.5.94 Please provide the password for 'fred@192.168.5.94': **** MySQL Shell 8.0.21 Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type '\help' or '\?' for help; '\quit' to exit. Creating a session to 'fred@192.168.5.94' Fetching schema names for autocompletion… Press ^C to stop. Your MySQL connection id is 16 (X protocol) Server version: 8.0.21 MySQL Community Server - GPL No default schema selected; type \use to set one. MySQL 192.168.5.94:33060+ ssl JS > Bye!
As you could see, no …
[Read more]In this short tutorial we will cover an how to call mysql view in laravel Im going to show you about laravel migration create view Here you will learn laravel migration make view i explained simply step by step how to use mysql view in laravel Lets see bellow example laravel using mysql views
In this short tutorial we will cover an how to call mysql view in laravel Im going to show you about laravel migration create view Here you will learn laravel migration make view i explained simply step by step how to use mysql view in laravel Lets see bellow example laravel using mysql views
Rewriting a MySQL query for performance is an important process that every DBA should be aware of so they can fix the wrong queries on runtime without code changes on the application end. ProxySQL has great support for rewriting the queries, which Alkin Tezuysal already explored in his excellent blog ProxySQL Query Rewrite Use Case.
So far, MySQL community provides two built-in query rewrite plugins to perform this task. Recently they introduced the plugin “ddl_rewriter”.
In this blog, I am going to explain the complete process of the implementation and the …
[Read more]At the Percona engineering team, we often receive requests to analyze changes in MySQL/Percona Server for MySQL behavior from one version to another, either due to regression or a bug fix (when having to point out to a customer that commit X has fixed their issue and upgrading to a version including that fix will solve their problem).
In this blog post, we will analyze the approach used to fix PS-7019 – Correct query results for LEFT JOIN with GROUP BY.
Each release comes with a lot of changes. For example, the difference between MySQL 8.0.19 to 8.0.20:
git diff mysql-8.0.19..mysql-8.0.20 | wc -l 737454 git diff mysql-8.0.19..mysql-8.0.20 --name-only | wc -l 4495
737K lines in 4495 files have changed from one minor version to another.
git …[Read more]
MySQL Shell 8.0.21 comes with two utilities
which can be used to perform logical dumps of all the schemas
from an instance (util.dumpInstance()
) or selected
schemas (util.dumpSchemas()
). These tools offer
major performance improvements over the mysqldump
utility, some of our benchmarks show a throughput up to 3GB/s!…
Facebook Twitter LinkedIn
Recently I had the opportunity to test a storage device from ScaleFlux called CSD 2000. In this blog post, I will share the results of using it to run MySQL in comparison with an Intel device that had a similar capacity.
First of all, why do we need another storage device? Why is ScaleFlux any different?
The answer is simple; it gives us built-in compression and atomic writes. For many workloads, but especially for database-type workloads, these are very important features.
Because of built-in compression, we can store more data on the ScaleFlux device than on a similar device with the same capacity.
Because of atomic writes, we can disable InnoDB Double Write buffer which means less writes/fsync on the disk layer. This should give us a performance advantage against non-atomic drives.
I ran many different tests on different data sizes, with different …
[Read more]When you create a general tablespace in MySQL 8.0, you can choose the directory where the associated datafile is created.
CREATE TABLESPACE tablespace_name ADD DATAFILE ‘/my/table/space/dir’;
However, that directory must be known to InnoDB. Known directories are defined by the following settings: datadir, innodb_data_home_dir, innodb_undo_directory & innodb_directories.…
Facebook Twitter LinkedIn