The MySQL team is thrilled to invite customers to use the new MySQL Database Service also in OCI Japan East (Tokyo) Region. This is an addition to the Regions where the Service is already available: US East (Ashburn), United Kingdom (London), Germany (Frankfurt), Brazil (Sao Paulo), and the US West ...
A blog series about ProxySQL and Galera…
This post is the first of a series of blogposts on how to easily use ProxySQL to scale-out your application’s database workload on a Galera cluster. This series will explore the main concepts in configuring ProxySQL for Galera across three articles as follows:
– A first introductory post describing the minimal configuration
needed for ProxySQL to monitor and manage a Galera Cluster.
– A second post describing how to setup a read/write
split
configuration for our Galera Cluster, using ProxySQL
query rules.
– A third and final post with examples on specific cluster
configuration options and more detailed explanations on why
and how ProxySQL changes the nodes states based on
configuration changes and monitored variables. Requirements
To illustrate how to configure ProxySQL for a Galera Cluster we
will use a sample Galera Cluster
…
MySQL uses connection and config parameters from a number of possible sources. The easiest way to find out where it is looking for config files is to run
$ mysql --help | grep cnf
order of preference, my.cnf, $MYSQL_TCP_PORT,
/etc/my.cnf /etc/mysql/my.cnf /Users/kkoehntopp/homebrew/etc/my.cnf ~/.my.cnf
As can be seen, my version of the MySQL client checks in this order
- /etc/my.cnf
- /etc/mysql/my.cnf
- /Users/kkoehntopp/homebrew/etc/my/cnf
- ~/.my.cnf
The cnf file is a file in dot-ini syntax, so you have
[groups]
and each group contains lines with
key = value
pairs. Which groups are read?
$ mysql --help | grep "groups are"
The following groups are read: mysql client
So in my case, I would create a
/Users/kkoehntopp/.my.cnf
looking like this:
[client] …
[Read more]
The MySQL UNIQUE
constraint is often used in a
column definition in which we need each value for that column to
be distinct from the others. Perhaps it is an email column for an
on-line registration form and we want to ensure that users cannot
register twice for an account using the same email. Whatever the
case may be, UNIQUE
is there to help us ensure this
type of data integrity or business requirement. What if the
target table already exists and you determine you need to add a
UNIQUE
constraint to an existing column? In this
post, I will cover 2 ways you can implement a UNIQUE
constraint on existing columns using the phpMyAdmin web
interface…
Photo by Kaleidico on …
[Read more]In this post I describe the various steps that allowed me to reach 3.6 million queries per second on a single VM instance using MySQL 8.0 with the help of Dynimize.
It's not every day that you get to break a record. So when I discovered that you can now rent by the hour massive instances within Google Compute Cloud that support 224 virtual cores based on AMD EPYC 2 Rome processors, I had to jump at the opportunity to see what kind low hanging fruit might be out there. Low and behold I found it! Oracle's performance record for MySQL on a single server stands at 2.1M QPS without using Unix sockets, and 2.25M QPS with Unix sockets. Seeing that they published this 3 years ago on Broadwell based …
[Read more]Description
Join this virtual meetup featuring WePay and Oracle MySQL! They will review three great talks on MySQL Compatibility Check, Running MySQL on Kubernetes and Scalable Bookkeeping.
Talk 1: MySQL Compatibility Check
Talk 2: Running MySQL on Kubernetes
Talk 3: Scalable Bookkeeping
Date & Time
Oct 1, 2020 10:00 AM in Pacific Time (US and Canada)
Register here
All opinions expressed in this blog are those of Dave Stokes who is actually amazed to find anyone else agreeing with him
A question to the internal #DBA
channel at work: »Is
it possible to change a column type from BIGINT
to
VARCHAR
? Will the numbers be converted into a
string version of the number or will be it a byte-wise transition
that will screw the values?«
Further asking yielded more information: »The use-case is to have strings, to have UUIDs.«
So we have two questions to answer:
- Is
ALTER TABLE t CHANGE COLUMN c
lossy? -
INTEGER AUTO_INCREMENT
vs.UUID
Is ALTER TABLE t CHANGE COLUMN c lossy?
ALTER TABLE
is not lossy. We can test.
mysql> create table kris ( id integer not null primary key auto_increment);
Query OK, 0 rows affected (0.16 sec)
mysql> insert into kris values (NULL);
Query OK, 1 row affected (0.01 sec)
mysql> insert into kris select NULL from kris;
Query OK, 1 …
[Read more]
MySQL uses connection and config parameters from a number of possible sources. The easiest way to find out where it is looking for config files is to run
$ mysql --help | grep cnf
order of preference, my.cnf, $MYSQL_TCP_PORT,
/etc/my.cnf /etc/mysql/my.cnf /Users/kkoehntopp/homebrew/etc/my.cnf ~/.my.cnf
As can be seen, my version of the MySQL client checks in this order
- /etc/my.cnf
- /etc/mysql/my.cnf
- /Users/kkoehntopp/homebrew/etc/my/cnf
- ~/.my.cnf
The cnf file is a file in dot-ini syntax, so you have
[groups]
and each group contains lines with
key = value
pairs. Which groups are read?
$ mysql --help | grep "groups are"
The following groups are read: mysql client
So in my case, I would create a
/Users/kkoehntopp/.my.cnf
looking like this:
[client] …
[Read more]
Percona Monitoring and Management (PMM) is an effective tool in tracking stats of the running MySQL servers. Especially, the timelines capability helps users to get the picture of how the given stats changes over tenure of the workload. PMM official packages are not yet available on ARM but part of the PMM (importantly the stats collector aka exporter) could be compiled on ARM that would facilitate reporting stats of the MySQL instance running on ARM to PMM-Server there-by allowing it to track MySQL on ARM.
Background
Few days back Agustin from Percona tried compiling PMM Client on ARM. You can read more about it here. I just extended the process to also compile mysqld_exporter that is needed to connect and collect MySQL stats.
Compiling mysqld-exporter
Steps assume …
[Read more]During the MDS webinar on how to deploy WordPress on OCI using MDS (slides & video), I briefly explained how to deploy the full architecture on OCI using Resource Manager and Stacks.
The Stack for that architecture is now available on my github: https://github.com/lefred/oci-wordpress-mds/releases/tag/0.0.1
To deploy it, it’s very easy. In OCI’s Dashboard, go on “Resource Manager” and then choose “Stacks“:
Create a new stack and just drop the …
[Read more]