Codership is pleased to announce a new Generally Available (GA) release of Galera Cluster for MySQL 5.6 and 5.7, consisting of MySQL-wsrep 5.6.43 and MySQL-wsrep 5.7.25 with a new Galera Replication library 3.26 (release notes, download), implementing wsrep API version 25. This release incorporates all changes to MySQL 5.6.43 (release notes, download) and 5.7.25 respectively (release notes, …
[Read more]The latest from the MySQL community
Ideas, releases, practical guides, and perspectives from the people building with MySQL.
Jinja2 is a modern and designer-friendly templating language for Python frameworks. It is fast, reliable and widely used for dynamic file generation based on its parameter. In this blog, I like to share how and where jinja2 template language used in Ansible and how we can create better Ansible playbook.
How it works
The Jinja variables and expressions indicated using the default delimiters as follows:
- {% … %} for control statements (conditions)
- {{ … }} for expressions (variables)
- {# … #} for comments (describe the task)
Here’s an example Jinja expressions:
- hosts: 127.0.0.1
vars_files:
- vars.yml
tasks:
- name: Checking the IP address
debug:
msg: "IP address {{ ip }}"
- name: Checking OS name
debug:
msg: "OS NAME {{ os_name }}"
Variable definitions are needed for Jinja to resolve expressions. In the …
[Read more]There’s just one week to go before the first of this year’s Percona University events in South America. We’re really pleased with the lineup for all three events. We’re also incredibly happy with the response that we have had from the community. While we realize that a free event is… well… free… you are still giving up your time and travel. We place great value on that and we’re making sure that you’ll be hearing quality technical talks from Percona and our guest speakers. Most of the talks will be presented in Spanish – Portuguese in Brazil – although slides will be made available in English.
In fact, the events have been so popular that it’s quite possible that by the time you read this we’ll be operating a wait list for Montevideo …
[Read more]In this three-part blog series, we introduced a High Availability (HA) Framework for MySQL hosting in Part I, and discussed the details of MySQL semisynchronous replication in Part II. Now in Part III, we review how the framework handles some of the important MySQL failure scenarios and recovers to ensure high availability.
MySQL Failure Scenarios Scenario 1 – Master MySQL Goes Down
- The Corosync and Pacemaker framework detects that the master MySQL is no longer available. Pacemaker demotes the master resource and tries …
In all likelihood your MySQL database contains valuable and sensitive information. Within that database, MySQL protects that data using features such as encryption, access controls, auditing, views, and more. However in many cases you may need to share some of this data, but must at the same time protect that sensitive information. … Facebook Twitter Google+ LinkedIn
Introduction In this article, we are going to see how we can implement a database job queue using SKIP LOCKED. I decided to write this article while answering this Stack Overflow question asked by Rafael Winterhalter. Since SKIP LOCKED is a lesser-known SQL feature, it’s a good opportunity to show you how to use it and why you should employ it, especially when implementing a job queue task. Domain Model Let’s assume we have the following Post entity which has a status Enum property looking as follows: The PostStatus Enum encapsulates the... Read More
The post How to implement a database job queue using SKIP LOCKED appeared first on Vlad Mihalcea.
In this tutorial, we'll learn how to add JWT authentication to our REST API PHP application.
We'll see what JWT is and how it works. We'll also see how to get the authorization header in PHP.
We'll create REST API endpoints for allowing users to login and signup to access protected resources.
What is JWT
JWT stands for JSON Web Token and comprised of user encrypted information that can be used to authenticate users and exchange information between clients and servers.
When building REST API, instead of server sessions commonly used in PHP apps we tokens which are sent with HTTP headers from the server to clients where they are persisted (usually using local storage) then attached to every outgoing request originating from the client to the server. The server checks the token and allow or deny access to the request resource.
RESTful APIs are stateless. This means that requests from clients …
[Read more]Many of our regular attendees already know that the Percona Live Open Source Database Conference is not all about Percona software or, indeed, all about Percona. However, with moving to a new city—Austin, TX— we have realized that it’s something we ought to shout out loud and clear. Our conference really is technology agnostic! As long as submissions were related to open source databases then they were candidate for selection.
We have thirteen tracks at this year’s conference including a track entitled “Other Open Source Databases” which we are presenting alongside tracks dedicated to MySQL®, …
[Read more]Just a friendly reminder for the busy week we have ahead of us... Please find below the shows you can find our MySQL staff at:
-
First show where you can fid us at is the Oracle Code in Shenzen, China 2019, April 16, 2019
- JSON is one of the flexible data for data exchange and storage today. MySQL X-DevAPI introduces a new modern and easy-to-learn way to work with JSON and Relational data.
- Do not miss the MySQL session scheduled for 4:05pm -
4:50pm as follows:
- "NoSQL @ MySQL - Managing JSON Data with reliable and secured MySQL Database" by Ivan Ma, from Oracle MySQL Team & Zhou Yin Wei - Oracle MySQL ACE Director
- …
So keepalived has been around for quite a while now
.... however it is still a mystery to many.
So this is a very simple example of how keepalived can work
with MySQL. Hopefully, this can help those with questions.
We will have a Simple master to slave set up. Meaning.. we write
to one unless we have failover to the second for some
event.
1st - install keepalived
# yum search keepalived keepalived.x86_64 : Load balancer
and high availability service
Name and summary matches only, use "search all" for
everything. # yum -y install keepalived
You should now have an config file
# ls -ltr /etc/keepalived/keepalived.conf
Keep the original as you always backup .. right....
# cp /etc/keepalived/keepalived.conf
/etc/keepalived/keepalived.conf.orig
So you need to figure out an ipaddress you can use for …