MySQL PHP native driver : Advanced Functions / PHP forum Paris 2013 Serge Frezefond
Â
mysqlnd the MySQL native driver for PHP brings a lot of value to MySQL.
There is no change for developers that can still use the mysqli and PDO API.
This driver supports a plugins extension capability. Some very useful features have been implemented :
- mysqlnd_ms replication and load balancing plugin
- mysqlnd_qc query result cache plugin
- mysqlnd_memcache innoDB memcache plugin
- mysqlnd_uh user handler plugin
- mysqlnd_mux plugin to multiplex PHP connections
MySQL Fabric is the new sharding framework for MySQL. The mysqlnd_ms plugging the MySQL native driver makes it possible to use this sharding framework from PHP.
This document summarizes and compares several popular distributed database technologies: MySQL Cluster, MariaDB Galera Cluster, and Percona XtraDB Cluster. All three use synchronous multi-master replication and share-nothing architectures. MySQL Cluster has additional features like auto-sharding but lacks automatic node provisioning. Both MariaDB Galera Cluster and Percona XtraDB Cluster provide automatic node provisioning and support only SQL, while MySQL Cluster supports both SQL and NoSQL APIs. Performance tests show Galera generally outperforms NDB with fewer threads but NDB scales better as threads increase.
MyDUMPER : Faster logical backups and restores Mydbops
Â
This document discusses using mydumper and myloader tools to perform faster logical backups and restores of MySQL databases. Mydumper is an open source backup tool that can backup databases in parallel threads, split output into multiple files, compress files, and support selective backups of databases and tables. It has advantages over the built-in mysqldump such as being multithreaded, supporting compression, and ability to chunk output. The document provides details on mydumper features, options, and examples of using it for full and partial backups. It also introduces myloader for restoring mydumper backups and provides an example restore command.
This document outlines best practices for MySQL database administration including database design and planning, installation and configuration, optimization, replication, backup, and monitoring. It discusses topics such as database structure, storage engines, configuration variables, indexing, replication components, backup methods, and using tools like MySQL Enterprise Backup, mysqldump, and monitoring queries. GTID replication is also covered, explaining how it solves problems and can be enabled to uniquely identify transactions across servers.
Percona XtraBackup is an open-source tool for performing backups of MySQL or MariaDB databases. It can create full, incremental, compressed, encrypted, and streaming backups. For full backups, it copies data files and redo logs then runs crash recovery to make the data consistent. Incremental backups only copy changed pages by tracking log sequence numbers. The backups can be prepared then restored using copy-back or move-back options.
This document compares the two major open source databases: MySQL and PostgreSQL. It provides a brief history of each database's development. MySQL prioritized ease-of-use and performance early on, while PostgreSQL focused on features, security, and standards compliance. More recently, both databases have expanded their feature sets. The document discusses the most common uses, features, and performance of each database. It concludes that for simple queries on 2-core machines, MySQL may perform better, while PostgreSQL tends to perform better for complex queries that can leverage multiple CPU cores.
High performance and high availability proxies for MySQLMydbops
Â
This is presented at LSPE meet up on 17-06-2017.
ProxySQL and MaxScale are the next-generation database proxy that manages security, scalability, high availability and data streaming in scale-out deployments
ProxySQL and MaxScale have been most widely adapted in industry these days. They can be used in smaller platforms to bigger platforms. The Objective of this talk is to make awareness about the next-gen database proxies and their value addition.
Researching an alternative to the MS SQL database - first of all in order to gain additional technological benefits, secondly moving towards an open source way of development.
The idea behind this presentation was to introduce PostgreSQL (ver. 9.4+) in a different manner than a conventional "Pros Vs. Cons" style, it is more likely to be a "Buzz Word" thesaurus (of course based on a deep research).
P.S. Since it's a presentation, there was no intention going over and covering all of the PostgreSQL features - most of the interesting parts.
MySQL PHP native driver : Advanced Functions / PHP forum Paris 2013 Serge Frezefond
Â
mysqlnd the MySQL native driver for PHP brings a lot of value to MySQL.
There is no change for developers that can still use the mysqli and PDO API.
This driver supports a plugins extension capability. Some very useful features have been implemented :
- mysqlnd_ms replication and load balancing plugin
- mysqlnd_qc query result cache plugin
- mysqlnd_memcache innoDB memcache plugin
- mysqlnd_uh user handler plugin
- mysqlnd_mux plugin to multiplex PHP connections
MySQL Fabric is the new sharding framework for MySQL. The mysqlnd_ms plugging the MySQL native driver makes it possible to use this sharding framework from PHP.
This document summarizes and compares several popular distributed database technologies: MySQL Cluster, MariaDB Galera Cluster, and Percona XtraDB Cluster. All three use synchronous multi-master replication and share-nothing architectures. MySQL Cluster has additional features like auto-sharding but lacks automatic node provisioning. Both MariaDB Galera Cluster and Percona XtraDB Cluster provide automatic node provisioning and support only SQL, while MySQL Cluster supports both SQL and NoSQL APIs. Performance tests show Galera generally outperforms NDB with fewer threads but NDB scales better as threads increase.
MyDUMPER : Faster logical backups and restores Mydbops
Â
This document discusses using mydumper and myloader tools to perform faster logical backups and restores of MySQL databases. Mydumper is an open source backup tool that can backup databases in parallel threads, split output into multiple files, compress files, and support selective backups of databases and tables. It has advantages over the built-in mysqldump such as being multithreaded, supporting compression, and ability to chunk output. The document provides details on mydumper features, options, and examples of using it for full and partial backups. It also introduces myloader for restoring mydumper backups and provides an example restore command.
This document outlines best practices for MySQL database administration including database design and planning, installation and configuration, optimization, replication, backup, and monitoring. It discusses topics such as database structure, storage engines, configuration variables, indexing, replication components, backup methods, and using tools like MySQL Enterprise Backup, mysqldump, and monitoring queries. GTID replication is also covered, explaining how it solves problems and can be enabled to uniquely identify transactions across servers.
Percona XtraBackup is an open-source tool for performing backups of MySQL or MariaDB databases. It can create full, incremental, compressed, encrypted, and streaming backups. For full backups, it copies data files and redo logs then runs crash recovery to make the data consistent. Incremental backups only copy changed pages by tracking log sequence numbers. The backups can be prepared then restored using copy-back or move-back options.
This document compares the two major open source databases: MySQL and PostgreSQL. It provides a brief history of each database's development. MySQL prioritized ease-of-use and performance early on, while PostgreSQL focused on features, security, and standards compliance. More recently, both databases have expanded their feature sets. The document discusses the most common uses, features, and performance of each database. It concludes that for simple queries on 2-core machines, MySQL may perform better, while PostgreSQL tends to perform better for complex queries that can leverage multiple CPU cores.
High performance and high availability proxies for MySQLMydbops
Â
This is presented at LSPE meet up on 17-06-2017.
ProxySQL and MaxScale are the next-generation database proxy that manages security, scalability, high availability and data streaming in scale-out deployments
ProxySQL and MaxScale have been most widely adapted in industry these days. They can be used in smaller platforms to bigger platforms. The Objective of this talk is to make awareness about the next-gen database proxies and their value addition.
Researching an alternative to the MS SQL database - first of all in order to gain additional technological benefits, secondly moving towards an open source way of development.
The idea behind this presentation was to introduce PostgreSQL (ver. 9.4+) in a different manner than a conventional "Pros Vs. Cons" style, it is more likely to be a "Buzz Word" thesaurus (of course based on a deep research).
P.S. Since it's a presentation, there was no intention going over and covering all of the PostgreSQL features - most of the interesting parts.
The document provides best practices for performance tuning MySQL databases. It discusses benchmarking and profiling concepts, sources of performance problems like inefficient schemas and indexes, and SQL coding practices. It also recommends tuning server parameters and provides tools for benchmarking, profiling, and optimizing performance.
This document discusses MySQL performance tuning. It covers high availability solutions, MySQL system and status variables, memory usage, storage engines like InnoDB and MyISAM, monitoring tools, and the Performance Schema. Tuning levers include configuring variables related to caching, buffers, threads, and storage engines. Monitoring helps identify optimization opportunities.
Built-in query caching for all PHP MySQL extensions/APIsUlf Wendel
Â
Query caching boosts the performance of PHP MySQL applications. Caching can be done on the database server or at the web clients. A new mysqlnd plugin adds query caching to all PHP MySQL extension: written in C, immediately usable with any PHP application because of no API changes, supports Memcache, APC, SQLite and main memory storage, integrates itself smoothless into existing PHP deployment infrastructure, helps you to scale by client, ... Enjoy!
Technical Introduction to PostgreSQL and PPASAshnikbiz
Â
Let's take a look at:
PostgreSQL and buzz it has created
Architecture
Oracle Compatibility
Performance Feature
Security Features
High Availability Features
DBA Tools
User Stories
What’s coming up in v9.3
How to start adopting
This document provides guidance on tuning MySQL for optimal performance. It discusses adjusting various configuration settings related to I/O, memory allocation, query caching, and InnoDB settings. Tuning aspects like I/O, queries, maintenance and configurations are recommended to maximize speed within the constraints of other services. Transaction logs and temporary file storage especially impact performance as heavy consumers of I/O.
MySQL Cluster Asynchronous replication (2014) Frazer Clement
Â
Slides from 2014 describing basic features and implementation of MySQL Cluster asynchronous (binlog) replication, with some monitoring and tuning guidance.
Ramp-Tutorial for MYSQL Cluster - Scaling with Continuous AvailabilityPythian
Â
This document provides an overview and tutorial on MySQL Cluster (NDB), which is a high availability, clustering storage engine for MySQL. It discusses key MySQL Cluster components like management nodes, data nodes, API nodes, and how data is partitioned and replicated across nodes. It also covers transaction handling, checkpointing, failure handling, and configuration of disk data. The tutorial is aimed at explaining basic concepts and components of MySQL Cluster to attendees.
This document discusses the various storage engines available for MySQL and MariaDB databases. It begins by explaining that a storage engine determines how data is stored and indexed on disk. It then provides examples of different native and commercial storage engines like MyISAM, InnoDB, ARCHIVE, Memory, and TokuDB. The rest of the document discusses how different engines are suited for different use cases, their performance characteristics, and tuning considerations. It also covers writing your own custom storage engine by extending the pluggable engine API.
MySQL Backup and Security Best PracticesLenz Grimmer
Â
MySQL Backup and Security discusses best practices for securing MySQL servers and backing up MySQL data. It provides guidance on improving MySQL security through password protection, access controls and encryption. It also reviews various backup methods like logical backups using mysqldump, physical backups of data files, and techniques like MySQL replication and file system snapshots for backups with reduced downtime.
Online MySQL Backups with Percona XtraBackupKenny Gryp
Â
Percona XtraBackup is a free, open source, complete online backup solution for all versions of Percona Server, MySQL® and MariaDB®.
Percona XtraBackup provides:
* Fast and reliable backups
* Uninterrupted transaction processing during backups
* Savings on disk space and network bandwidth with better compression
* Automatic backup verification
* Higher uptime due to faster restore time
This talk will discuss the various different features of Percona XtraBackup, including:
* Full & Incremental Backups
* Compression, Streaming & Encryption of Backups
* Backing Up To The Cloud (Swift).
* Percona XtraDB Cluster / Galera Cluster.
* Percona Server Specific features
The Peoper Care and Feeding of a MySQL Server for Busy Linux AdminDave Stokes
Â
Webcast 16 September 2015 with a big thanks to SolarWinds. This is a collection of best practices for Linux Admin who 'also have' database responsibility but are not DBAs
This document provides an overview and summary of new and upcoming features for MySQL databases. It discusses enhancements made in MySQL 5.7 related to performance, security and JSON data type support. The document also previews several upcoming features for MySQL including GTID migration improvements, semi-sync replication enhancements, and multi-master active/active replication. It emphasizes that the development, release and timing of any features remains at Oracle's discretion.
MySQL 5.7 Tutorial Dutch PHP Conference 2015Dave Stokes
Â
MySQL 5.7 is the latest version of the MySQL database. It includes new features such as support for JSON as a native data type with functions for manipulating JSON documents. Security has also been improved with secure defaults, password rotation/expiration controls, and SSL encryption enabled by default for the C client library. The release candidate for 5.7 was released in April 2015 and includes patches, contributions, and enhancements over previous versions.
MySQL's new Secure by Default Install -- All Things Open October 20th 2015Dave Stokes
Â
One of the new features of MySQL 5.7 is enhanced security. This includes password rotation, lengthening the user name field, SSL encouragement, and much more. This session presented at All Things open 2015 and covers the changes in MySQL 5.7
MySQL is a SQL database that also does NoSQL. You can access data in the InnoDB or NDB storage engines as a key/value pair at amazing speeds while retaining simultaneous SQL access of the same data. Plus MySQL 5.7 features a new native JSON data type
The Proper Care and Feeding of a MySQL Database for Busy Linux Admins -- SCaL...Dave Stokes
Â
If you are a Linux administrator and ALSO have to take care of a MySQL databases, this presentation if for you, While it will not turn you instantly into a DBA it will help you understand how to properly care and feed your instances
Triangle MySQL User Group MySQL Fabric Presentation Feb 12th, 2015Dave Stokes
Â
MySQL Fabric provides a simple way to manage a collection of MySQL Servers and ensure that transactions and queries are routed to the correct server. It has two main features - High Availability (HA) and scaling out using data sharding. For HA, it forms groups of two or more MySQL Servers in replication, monitors the primary server, and promotes a slave as the new primary if the primary fails. It also routes queries and transactions transparently. For sharding, it partitions data across server groups using a sharding key and mappings defined by the administrator.
SQL For Programmers -- Boston Big Data Techcon April 27thDave Stokes
Â
SQL For Programmers is an introduction to SQL concepts, when SQL is a better choice, and a look at the future of databases. Presented April 27th, 2015 at Big Data Techcon Boston
The document provides best practices for performance tuning MySQL databases. It discusses benchmarking and profiling concepts, sources of performance problems like inefficient schemas and indexes, and SQL coding practices. It also recommends tuning server parameters and provides tools for benchmarking, profiling, and optimizing performance.
This document discusses MySQL performance tuning. It covers high availability solutions, MySQL system and status variables, memory usage, storage engines like InnoDB and MyISAM, monitoring tools, and the Performance Schema. Tuning levers include configuring variables related to caching, buffers, threads, and storage engines. Monitoring helps identify optimization opportunities.
Built-in query caching for all PHP MySQL extensions/APIsUlf Wendel
Â
Query caching boosts the performance of PHP MySQL applications. Caching can be done on the database server or at the web clients. A new mysqlnd plugin adds query caching to all PHP MySQL extension: written in C, immediately usable with any PHP application because of no API changes, supports Memcache, APC, SQLite and main memory storage, integrates itself smoothless into existing PHP deployment infrastructure, helps you to scale by client, ... Enjoy!
Technical Introduction to PostgreSQL and PPASAshnikbiz
Â
Let's take a look at:
PostgreSQL and buzz it has created
Architecture
Oracle Compatibility
Performance Feature
Security Features
High Availability Features
DBA Tools
User Stories
What’s coming up in v9.3
How to start adopting
This document provides guidance on tuning MySQL for optimal performance. It discusses adjusting various configuration settings related to I/O, memory allocation, query caching, and InnoDB settings. Tuning aspects like I/O, queries, maintenance and configurations are recommended to maximize speed within the constraints of other services. Transaction logs and temporary file storage especially impact performance as heavy consumers of I/O.
MySQL Cluster Asynchronous replication (2014) Frazer Clement
Â
Slides from 2014 describing basic features and implementation of MySQL Cluster asynchronous (binlog) replication, with some monitoring and tuning guidance.
Ramp-Tutorial for MYSQL Cluster - Scaling with Continuous AvailabilityPythian
Â
This document provides an overview and tutorial on MySQL Cluster (NDB), which is a high availability, clustering storage engine for MySQL. It discusses key MySQL Cluster components like management nodes, data nodes, API nodes, and how data is partitioned and replicated across nodes. It also covers transaction handling, checkpointing, failure handling, and configuration of disk data. The tutorial is aimed at explaining basic concepts and components of MySQL Cluster to attendees.
This document discusses the various storage engines available for MySQL and MariaDB databases. It begins by explaining that a storage engine determines how data is stored and indexed on disk. It then provides examples of different native and commercial storage engines like MyISAM, InnoDB, ARCHIVE, Memory, and TokuDB. The rest of the document discusses how different engines are suited for different use cases, their performance characteristics, and tuning considerations. It also covers writing your own custom storage engine by extending the pluggable engine API.
MySQL Backup and Security Best PracticesLenz Grimmer
Â
MySQL Backup and Security discusses best practices for securing MySQL servers and backing up MySQL data. It provides guidance on improving MySQL security through password protection, access controls and encryption. It also reviews various backup methods like logical backups using mysqldump, physical backups of data files, and techniques like MySQL replication and file system snapshots for backups with reduced downtime.
Online MySQL Backups with Percona XtraBackupKenny Gryp
Â
Percona XtraBackup is a free, open source, complete online backup solution for all versions of Percona Server, MySQL® and MariaDB®.
Percona XtraBackup provides:
* Fast and reliable backups
* Uninterrupted transaction processing during backups
* Savings on disk space and network bandwidth with better compression
* Automatic backup verification
* Higher uptime due to faster restore time
This talk will discuss the various different features of Percona XtraBackup, including:
* Full & Incremental Backups
* Compression, Streaming & Encryption of Backups
* Backing Up To The Cloud (Swift).
* Percona XtraDB Cluster / Galera Cluster.
* Percona Server Specific features
The Peoper Care and Feeding of a MySQL Server for Busy Linux AdminDave Stokes
Â
Webcast 16 September 2015 with a big thanks to SolarWinds. This is a collection of best practices for Linux Admin who 'also have' database responsibility but are not DBAs
This document provides an overview and summary of new and upcoming features for MySQL databases. It discusses enhancements made in MySQL 5.7 related to performance, security and JSON data type support. The document also previews several upcoming features for MySQL including GTID migration improvements, semi-sync replication enhancements, and multi-master active/active replication. It emphasizes that the development, release and timing of any features remains at Oracle's discretion.
MySQL 5.7 Tutorial Dutch PHP Conference 2015Dave Stokes
Â
MySQL 5.7 is the latest version of the MySQL database. It includes new features such as support for JSON as a native data type with functions for manipulating JSON documents. Security has also been improved with secure defaults, password rotation/expiration controls, and SSL encryption enabled by default for the C client library. The release candidate for 5.7 was released in April 2015 and includes patches, contributions, and enhancements over previous versions.
MySQL's new Secure by Default Install -- All Things Open October 20th 2015Dave Stokes
Â
One of the new features of MySQL 5.7 is enhanced security. This includes password rotation, lengthening the user name field, SSL encouragement, and much more. This session presented at All Things open 2015 and covers the changes in MySQL 5.7
MySQL is a SQL database that also does NoSQL. You can access data in the InnoDB or NDB storage engines as a key/value pair at amazing speeds while retaining simultaneous SQL access of the same data. Plus MySQL 5.7 features a new native JSON data type
The Proper Care and Feeding of a MySQL Database for Busy Linux Admins -- SCaL...Dave Stokes
Â
If you are a Linux administrator and ALSO have to take care of a MySQL databases, this presentation if for you, While it will not turn you instantly into a DBA it will help you understand how to properly care and feed your instances
Triangle MySQL User Group MySQL Fabric Presentation Feb 12th, 2015Dave Stokes
Â
MySQL Fabric provides a simple way to manage a collection of MySQL Servers and ensure that transactions and queries are routed to the correct server. It has two main features - High Availability (HA) and scaling out using data sharding. For HA, it forms groups of two or more MySQL Servers in replication, monitors the primary server, and promotes a slave as the new primary if the primary fails. It also routes queries and transactions transparently. For sharding, it partitions data across server groups using a sharding key and mappings defined by the administrator.
SQL For Programmers -- Boston Big Data Techcon April 27thDave Stokes
Â
SQL For Programmers is an introduction to SQL concepts, when SQL is a better choice, and a look at the future of databases. Presented April 27th, 2015 at Big Data Techcon Boston
De Linux command line is een zeer krachtig stuk gereedschap. De meerderheid van de webservers draait op Linux/Unix. Sommige hosting bedrijven bieden SSH toegang aan tot hun hosting omgeving. Via SSH kun je dan inloggen en de Linux Command Line gebruiken.
In deze presentatie toont Peter enkele tijdsbesparende Command Line commando's die je kunt gebruiken bij jouw Joomla websites:
Enkele SSH command line commando's;
Analyseren en ongedaan maken van een gehackte website;
Een backup maken van een website;
Ongebruikte bestanden vinden;
Het opzetten van een test omgeving.
Databases are the heart of most PHP projects but roughly TWO PERCENT of PHP programmers have had any real training in Structured Query Language, SQL. Then they wonder why their queries perform poorly, why they get N+1 problems, and suddenly the database becomes the choke point of the project. This presentation will cover the basics of relational algebra (no algebra, math or calculus skills needed!!!!), how to think in sets with Venn Diagrams, and how to let the database do the heavy lifting for you. So if you want to write high performing database queries and be admired as a database deity by your co workers then you need to be in this session!
MySQL Replication Alternative: Pros and ConsDarpan Dinker
Â
This document compares various MySQL replication options including asynchronous replication, semi-synchronous replication, Schooner Active Cluster synchronous replication, Oracle GoldenGate, Tungsten Replicator, and Linux DRBD. It finds that asynchronous and semi-synchronous replication in MySQL 5.5.8 have limited sustainable performance and can result in premature sharding, while Schooner Active Cluster provides a 4-5x boost in sustainable replication performance through its tightly-integrated synchronous approach. The document also includes results from the DBT2 benchmark showing differences in throughput, response time, CPU and storage utilization, and network bandwidth across the different solutions.
MySQL 5.7. Tutorial - Dutch PHP Conference 2015Dave Stokes
Â
MySQL 5.7 is the latest version of the MySQL database. It includes new features such as support for JSON as a native data type with functions for manipulating JSON documents. Security has also been improved with secure defaults, password rotation/expiration controls, and SSL encryption enabled by default for the C client library. The release candidate for 5.7 was released in April 2015 and includes patches, contributions, and enhancements over previous versions.
The document outlines various Git commands for configuring user information, managing remote repositories and branches, cleaning and resetting branches, merging and diffing changes, deleting branches, adding submodules, configuring remote tracking, generating and applying patches, and enabling color output. Some key commands are git config for setting user name and email, git pull --rebase for rebasing local changes, git reset and git clean for resetting the working directory state, and git merge and git diff for integrating changes and comparing revisions.
MySQL has a set of utilities written in Python that can do some amazing things for your MySQL instances from setting up replication with automatic fail over to copying database
SQL for PHP Programmers -- Dallas PHP Users Group Jan 2015Dave Stokes
Â
This document provides an overview of a SQL tutorial being held on November 11th presented by Dave Stokes, MySQL Community Manager. It discusses some of the challenges PHP programmers face with SQL and relational database concepts. It provides explanations of relational algebra, database normalization forms, and SQL components like DDL and DML. Examples are given around creating tables, joins, foreign keys and other SQL statements. The goal is to help PHP programmers improve their skills with structured query language for working with databases.
This document provides an overview of iptables and Linux firewall configuration. It discusses Netfilter hooks and stages, stateless and stateful firewall rules using iptables, logging rules, the tables (filter, nat, mangle, raw) and built-in chains, creating custom chains, using ipsets for constant-time lookups, and useful iptables commands. It also briefly mentions using libnetfilter_queue to divert traffic to userspace applications and provides references for further reading on Linux firewalls and Netfilter.
C++ 11 introduced several new features including rvalue references, auto type deduction, nullptr, range-based for loops, smart pointers, lambda functions, and tuples. These features improve code clarity, eliminate ambiguities, and enable moving semantics and perfect forwarding for more efficient code.
This document provides an overview of MySQL, including:
1) MySQL is an open-source relational database management system that is popular for web applications.
2) The document reviews database terminology and covers installing and configuring MySQL on Linux and Windows.
3) Administrative tasks like starting/stopping the MySQL server, creating user accounts, and using MySQL commands are described.
Modernizing Your Database with SQL Server 2019 discusses SQL Server 2019 features that can help modernize a database, including:
- The Hybrid Buffer Pool which supports persistent memory to improve performance on read-heavy workloads.
- Memory-Optimized TempDB Metadata which stores TempDB metadata in memory-optimized tables to avoid certain blocking issues.
- Intelligent Query Processing features like Adaptive Query Processing, Batch Mode processing on rowstores, and Scalar UDF Inlining which improve query performance.
- Approximate Count Distinct, a new function that provides an estimated count of distinct values in a column faster than a precise count.
- Lightweight profiling, enabled by default, which provides query plan
This document discusses options for running MySQL in AWS. It describes using Amazon RDS, where AWS manages the infrastructure and MySQL version, but has limitations like lack of root access. It also describes using EC2, where one provisions and manages their own instances, storage, and MySQL binaries, allowing more flexibility but also more management overhead. Key tradeoffs discussed are ease of use vs customization options and control in RDS vs EC2.
With MySQL being the most popular open source DBMS in the world and with an estimated growth of 16 percent anually until 2020,we can assume that sooner or later an Oracle DBA will be handling a MySQL database in their shop. This beginner/intermediate-level session will take you through my journey of an Oracle DBA and my first 100 days of starting to administer a MySQL database, show several demos and all the roadblocks and the success I had along this path.
In this presentation, you will see simple ways of quickly deploying MySQL and start exploring the potential of SQL databases.
You will see how to deploy locally, using docker and some potential of the SQL language to extract not only data, but useful information from the database.
This presentation is recommended for begineers.
The document discusses MySQL NDB 8.0 and high availability solutions for MySQL. It summarizes MySQL NDB Cluster, MySQL InnoDB Cluster, and MySQL Replication as high availability solutions. It also discusses features and performance of MySQL NDB Cluster 8.0, including linear scalability, predictable low-latency performance, and improved backup throughput.
Improving Website Performance with Memecached Webinar | Achieve InternetAchieve Internet
Â
Improving the performance and scalability of your Drupal website with a Memcached implementation.
In this webinar, you will learn about:
• The components of a Memcached system
• Installing a simple Memcached installation
• Complex distributed installations and when to use them
• Verifying the installation
Improving Website Performance with Memecached Webinar | Achieve InternetAchieve Internet
Â
Improving the performance and scalability of your Drupal website with a Memcached implementation.
In this webinar, you will learn about:
• The components of a Memcached system
• Installing a simple Memcached installation
• Complex distributed installations and when to use them
• Verifying the installation
The document provides information about installing and configuring MySQL database on Linux and Windows systems. It discusses downloading and installing MySQL using RPM packages on Linux and running the installer on Windows. It also covers verifying the MySQL installation, setting the root password, creating user accounts, and configuring the MySQL configuration file. The document then provides an overview of important MySQL commands and functions for connecting to and manipulating data in MySQL databases from PHP scripts.
This document provides an overview of a proposed data masking architecture using Delphix. It includes diagrams of the high-level architecture and data flow. The key components are a production database, Delphix masking engine, and non-production target database. The process involves creating a golden copy of the production data, masking it using the Delphix engine, and delivering the masked data to non-production. It also provides specifications for the masking engines, prerequisites, networking requirements, and best practices for configuring masking jobs and optimizing performance.
jLove - A Change-Data-Capture use-case: designing an evergreen cacheNicolas Fränkel
Â
When one’s app is challenged with poor performances, it’s easy to set up a cache in front of one’s SQL database. It doesn’t fix the root cause (e.g. bad schema design, bad SQL query, etc.) but it gets the job done. If the app is the only component that writes to the underlying database, it’s a no-brainer to update the cache accordingly, so the cache is always up-to-date with the data in the database.
Things start to go sour when the app is not the only component writing to the DB. Among other sources of writes, there are batches, other apps (shared databases exist unfortunately), etc. One might think about a couple of ways to keep data in sync i.e. polling the DB every now and then, DB triggers, etc. Unfortunately, they all have issues that make them unreliable and/or fragile.
You might have read about Change-Data-Capture before. It’s been described by Martin Kleppmann as turning the database inside out: it means the DB can send change events (SELECT, DELETE and UPDATE) that one can register to. Just opposite to Event Sourcing that aggregates events to produce state, CDC is about getting events out of states. Once CDC is implemented, one can subscribe to its events and update the cache accordingly. However, CDC is quite in its early stage, and implementations are quite specific.
In this talk, I’ll describe an easy-to-setup architecture that leverages CDC to have an evergreen cache.
Vote NO for MySQL - Election 2012: NoSQL. Researchers predict a dark future for MySQL. Significant market loss to come. Are things that bad, is MySQL falling behind? A look at NoSQL, an attempt to identify different kinds of NoSQL stores, their goals and how they compare to MySQL 5.6. Focus: Key Value Stores and Document Stores. MySQL versus NoSQL means looking behind the scenes, taking a step back and looking at the building blocks.
Keith Larson, the MySQL Community Manager, gave an introduction to MySQL. He outlined MySQL's history from being started in the 1980s to its acquisition by Oracle. Larson then covered key MySQL concepts like storage engines, replication, partitioning, and clustering to provide high availability. He emphasized that MySQL remains free and open source for the community to use.
MySQL is an open-source relational database management system that works on many platforms. It provides multi-user access to support many storage engines and is backed by Oracle. SQL is the core of a relational database which is used for accessing and managing the database. The different subsets of SQL are DDL, DML, DCL, and TCL. MySQL has many features including ease of management, robust transactional support, high performance, low total cost of ownership, and scalability.
Mysql User Camp : 20th June - Mysql New FeaturesTarique Saleem
Â
This document discusses new features in MySQL 5.7 and NoSQL support in MySQL. Some key points:
- MySQL 5.7 includes improvements to InnoDB for better transactional performance and scalability, as well as enhancements to replication, security, and other areas.
- NoSQL support allows direct access to MySQL data via Memcached APIs for simpler and faster key-value access while maintaining ACID guarantees.
- Benchmarks show NoSQL inserts into MySQL can be up to 9x faster than SQL inserts, and MySQL 5.7 can achieve over 1 million queries per second.
Mysql User Camp : 20-June-14 : Mysql New features and NoSQL SupportMysql User Camp
Â
This slide was presented at Mysql User Camp Event on 20-June-14 at Oracle bangalore. This presentation gives a good insight about New Features in Mysql 5.7 DMR 4 and Nosql Support in Mysql.
GeekcampSG 2020 - A Change-Data-Capture use-case: designing an evergreen cacheNicolas Fränkel
Â
CDC is a brand new approach that "turns the database inside out": it allows to get events out of the database state. This can be leveraged to get a cache that is never stale.
Similar to MySQL's NoSQL -- SCaLE 13x Feb. 20, 2015 (20)
MySQL is an ubiquitous open source database but do you know how make it secure? This talk is from the 2022 Texas Cyber Summit on how to do just that. Make sure you data and database are secure.
MySQL Indexes and Histograms - RMOUG Training Days 2022Dave Stokes
Â
Nobody complains when the database is too fast. But they do gripe when it slows down. The two most popular ways to increase query speed are indexes and histograms. But there a dozens of options for indexes and a lot of lots of bad information on how to use them. Histograms are great but not for all types of data. This session covers the hows and whys of both approaches
MySQL Baics - Texas Linxufest beginners tutorial May 31st, 2019Dave Stokes
Â
MySQL is a relational database management system. The document provides an introduction to MySQL, including:
- MySQL is available in both community and enterprise editions. The community edition is free to use while the enterprise edition starts at $5K/4 core CPU before discounts.
- Data in MySQL is organized into tables within schemas (or databases). Tables contain rows of data organized into columns.
- Structured Query Language (SQL) is used to interact with MySQL databases. Common SQL commands include SELECT to retrieve data, INSERT to add data, UPDATE to modify data, and DELETE to remove data.
- JOIN clauses allow retrieving data from multiple tables by linking them together on common columns. This helps normalize data
Develop PHP Applications with MySQL X DevAPIDave Stokes
Â
The X DevAPI provides a way to use MySQL as a NoSQL JSON Document Store and this presentation covers how to use it with the X DevAPI PHP PECL extension. And it also works with traditional relational tables. Presented at Oracle CodeOne 24 October 2018
MySQL 8 Tips and Tricks from Symfony USA 2018, San FranciscoDave Stokes
Â
This document discusses several new features in MySQL 8 including:
1. A new transactional data dictionary that stores metadata instead of files for improved simplicity and crash safety.
2. The addition of histograms to help the query optimizer understand data distributions without indexes for better query planning.
3. Resource groups that allow assigning threads to groups with specific CPU and memory limits to control resource usage.
4. Enhancements to JSON support like in-place updates and new functions for improved flexibility with semi-structured data.
The Proper Care and Feeding of MySQL DatabasesDave Stokes
Â
Many Linux System Administrators are 'also' accidental database administrators. This is a guide for them to keep their MySQL database instances happy, health, and glowing
This document discusses MySQL Document Store, which allows both SQL and NoSQL functionality on the MySQL platform. It provides benefits for developers, operations teams, and business owners. MySQL Document Store uses JSON documents stored in MySQL tables, providing a schemaless document model with ACID transactions. This allows flexible data structures while maintaining SQL's reliability. The document demonstrates CRUD operations and querying documents using either SQL or NoSQL-style APIs. It concludes that MySQL Document Store provides the best of both SQL and NoSQL worlds in a single product.
MySQL Without The SQL -- Oh My! PHP[Tek] June 2018Dave Stokes
Â
The MySQL Document Store allows developers to use MySQL as a JSON Document Store -- no normalizing of data, setting up relational tables, and you do not have to use SQL to query data. And you get the both the SQL and NoSQL worlds on one server
Presentation Skills for Open Source FolksDave Stokes
Â
Do you want to present at a Linuxfest or other open source conference but do not know where or how to start. Follow these recommendations and you will be on your way to being a speaking all star. Discover how write your presentation. what tools you need, and other items of note
MySQL Without the SQL -- Oh My! Longhorn PHP ConferenceDave Stokes
Â
You can now use MySQL without needing to know Structured Query Language (SQL) with the MySQL Document Store. Access JSON documents and/or relational tables using the new X DevAPI
MySQL 8 -- A new beginning : Sunshine PHP/PHP UK (updated)Dave Stokes
Â
MySQL 8 has many new features and this presentation covers the new data dictionary, improved JSON functions, roles, histograms, and much more. Updated after SunshinePHP 2018 after feedback
ConFoo MySQL Replication Evolution : From Simple to Group ReplicationDave Stokes
Â
MySQL Replication has been around for many years but how wee do you under stand it? Do you know about read/write splitting, RBR vs SBR style replication, and InnoDB cluster?
This presentation is an INTRODUCTION to intermediate MySQL query optimization for the Audience of PHP World 2017. It covers some of the more intricate features in a cursory overview.
SwanseaCon 2017 presentation on Making MySQL Agile-ish. Relational Databases are not usually considered part of the Agile Programming movement but there are many new features in MySQL to make it easier to include it. This presentation covers how MySQL is moving to help support agile development while maintaining the traditional 'non agile' stability expected from a database.
The very basics of programming in PHP to store/retrieve data on a relational database management system (RDMS). For those looking for intermediate to advanced material, please see 'What Your Database Query is Really Doing'.
MySQL replication allows data from a master database server to be copied to one or more slave database servers. It provides advantages like improving performance through load balancing, increasing data security with backups on slaves, and enabling analytics on slaves without impacting the master. Basic replication involves setting up a master server and slave server with unique IDs, configuring the master to log binary changes, and pointing the slave to the master so it can copy the binary log entries.
Main news related to the CCS TSI 2023 (2023/1695)Jakub Marek
Â
An English 🇬🇧 translation of a presentation to the speech I gave about the main changes brought by CCS TSI 2023 at the biggest Czech conference on Communications and signalling systems on Railways, which was held in Clarion Hotel Olomouc from 7th to 9th November 2023 (konferenceszt.cz). Attended by around 500 participants and 200 on-line followers.
The original Czech 🇨🇿 version of the presentation can be found here: https://www.slideshare.net/slideshow/hlavni-novinky-souvisejici-s-ccs-tsi-2023-2023-1695/269688092 .
The videorecording (in Czech) from the presentation is available here: https://youtu.be/WzjJWm4IyPk?si=SImb06tuXGb30BEH .
Ivanti’s Patch Tuesday breakdown goes beyond patching your applications and brings you the intelligence and guidance needed to prioritize where to focus your attention first. Catch early analysis on our Ivanti blog, then join industry expert Chris Goettl for the Patch Tuesday Webinar Event. There we’ll do a deep dive into each of the bulletins and give guidance on the risks associated with the newly-identified vulnerabilities.
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...Edge AI and Vision Alliance
Â
For the full video of this presentation, please visit: https://www.edge-ai-vision.com/2024/06/temporal-event-neural-networks-a-more-efficient-alternative-to-the-transformer-a-presentation-from-brainchip/
Chris Jones, Director of Product Management at BrainChip , presents the “Temporal Event Neural Networks: A More Efficient Alternative to the Transformer” tutorial at the May 2024 Embedded Vision Summit.
The expansion of AI services necessitates enhanced computational capabilities on edge devices. Temporal Event Neural Networks (TENNs), developed by BrainChip, represent a novel and highly efficient state-space network. TENNs demonstrate exceptional proficiency in handling multi-dimensional streaming data, facilitating advancements in object detection, action recognition, speech enhancement and language model/sequence generation. Through the utilization of polynomial-based continuous convolutions, TENNs streamline models, expedite training processes and significantly diminish memory requirements, achieving notable reductions of up to 50x in parameters and 5,000x in energy consumption compared to prevailing methodologies like transformers.
Integration with BrainChip’s Akida neuromorphic hardware IP further enhances TENNs’ capabilities, enabling the realization of highly capable, portable and passively cooled edge devices. This presentation delves into the technical innovations underlying TENNs, presents real-world benchmarks, and elucidates how this cutting-edge approach is positioned to revolutionize edge AI across diverse applications.
Driving Business Innovation: Latest Generative AI Advancements & Success StorySafe Software
Â
Are you ready to revolutionize how you handle data? Join us for a webinar where we’ll bring you up to speed with the latest advancements in Generative AI technology and discover how leveraging FME with tools from giants like Google Gemini, Amazon, and Microsoft OpenAI can supercharge your workflow efficiency.
During the hour, we’ll take you through:
Guest Speaker Segment with Hannah Barrington: Dive into the world of dynamic real estate marketing with Hannah, the Marketing Manager at Workspace Group. Hear firsthand how their team generates engaging descriptions for thousands of office units by integrating diverse data sources—from PDF floorplans to web pages—using FME transformers, like OpenAIVisionConnector and AnthropicVisionConnector. This use case will show you how GenAI can streamline content creation for marketing across the board.
Ollama Use Case: Learn how Scenario Specialist Dmitri Bagh has utilized Ollama within FME to input data, create custom models, and enhance security protocols. This segment will include demos to illustrate the full capabilities of FME in AI-driven processes.
Custom AI Models: Discover how to leverage FME to build personalized AI models using your data. Whether it’s populating a model with local data for added security or integrating public AI tools, find out how FME facilitates a versatile and secure approach to AI.
We’ll wrap up with a live Q&A session where you can engage with our experts on your specific use cases, and learn more about optimizing your data workflows with AI.
This webinar is ideal for professionals seeking to harness the power of AI within their data management systems while ensuring high levels of customization and security. Whether you're a novice or an expert, gain actionable insights and strategies to elevate your data processes. Join us to see how FME and AI can revolutionize how you work with data!
FREE A4 Cyber Security Awareness Posters-Social Engineering part 3Data Hops
Â
Free A4 downloadable and printable Cyber Security, Social Engineering Safety and security Training Posters . Promote security awareness in the home or workplace. Lock them Out From training providers datahops.com
Digital Marketing Trends in 2024 | Guide for Staying AheadWask
Â
https://www.wask.co/ebooks/digital-marketing-trends-in-2024
Feeling lost in the digital marketing whirlwind of 2024? Technology is changing, consumer habits are evolving, and staying ahead of the curve feels like a never-ending pursuit. This e-book is your compass. Dive into actionable insights to handle the complexities of modern marketing. From hyper-personalization to the power of user-generated content, learn how to build long-term relationships with your audience and unlock the secrets to success in the ever-shifting digital landscape.
HCL Notes and Domino License Cost Reduction in the World of DLAUpanagenda
Â
Webinar Recording: https://www.panagenda.com/webinars/hcl-notes-and-domino-license-cost-reduction-in-the-world-of-dlau/
The introduction of DLAU and the CCB & CCX licensing model caused quite a stir in the HCL community. As a Notes and Domino customer, you may have faced challenges with unexpected user counts and license costs. You probably have questions on how this new licensing approach works and how to benefit from it. Most importantly, you likely have budget constraints and want to save money where possible. Don’t worry, we can help with all of this!
We’ll show you how to fix common misconfigurations that cause higher-than-expected user counts, and how to identify accounts which you can deactivate to save money. There are also frequent patterns that can cause unnecessary cost, like using a person document instead of a mail-in for shared mailboxes. We’ll provide examples and solutions for those as well. And naturally we’ll explain the new licensing model.
Join HCL Ambassador Marc Thomas in this webinar with a special guest appearance from Franz Walder. It will give you the tools and know-how to stay on top of what is going on with Domino licensing. You will be able lower your cost through an optimized configuration and keep it low going forward.
These topics will be covered
- Reducing license cost by finding and fixing misconfigurations and superfluous accounts
- How do CCB and CCX licenses really work?
- Understanding the DLAU tool and how to best utilize it
- Tips for common problem areas, like team mailboxes, functional/test users, etc
- Practical examples and best practices to implement right away
Best 20 SEO Techniques To Improve Website Visibility In SERPPixlogix Infotech
Â
Boost your website's visibility with proven SEO techniques! Our latest blog dives into essential strategies to enhance your online presence, increase traffic, and rank higher on search engines. From keyword optimization to quality content creation, learn how to make your site stand out in the crowded digital landscape. Discover actionable tips and expert insights to elevate your SEO game.
Introduction of Cybersecurity with OSS at Code Europe 2024Hiroshi SHIBATA
Â
I develop the Ruby programming language, RubyGems, and Bundler, which are package managers for Ruby. Today, I will introduce how to enhance the security of your application using open-source software (OSS) examples from Ruby and RubyGems.
The first topic is CVE (Common Vulnerabilities and Exposures). I have published CVEs many times. But what exactly is a CVE? I'll provide a basic understanding of CVEs and explain how to detect and handle vulnerabilities in OSS.
Next, let's discuss package managers. Package managers play a critical role in the OSS ecosystem. I'll explain how to manage library dependencies in your application.
I'll share insights into how the Ruby and RubyGems core team works to keep our ecosystem safe. By the end of this talk, you'll have a better understanding of how to safeguard your code.
Your One-Stop Shop for Python Success: Top 10 US Python Development Providersakankshawande
Â
Simplify your search for a reliable Python development partner! This list presents the top 10 trusted US providers offering comprehensive Python development services, ensuring your project's success from conception to completion.
Fueling AI with Great Data with Airbyte WebinarZilliz
Â
This talk will focus on how to collect data from a variety of sources, leveraging this data for RAG and other GenAI use cases, and finally charting your course to productionalization.
Have you ever been confused by the myriad of choices offered by AWS for hosting a website or an API?
Lambda, Elastic Beanstalk, Lightsail, Amplify, S3 (and more!) can each host websites + APIs. But which one should we choose?
Which one is cheapest? Which one is fastest? Which one will scale to meet our needs?
Join me in this session as we dive into each AWS hosting service to determine which one is best for your scenario and explain why!
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...alexjohnson7307
Â
Predictive maintenance is a proactive approach that anticipates equipment failures before they happen. At the forefront of this innovative strategy is Artificial Intelligence (AI), which brings unprecedented precision and efficiency. AI in predictive maintenance is transforming industries by reducing downtime, minimizing costs, and enhancing productivity.
Building Production Ready Search Pipelines with Spark and MilvusZilliz
Â
Spark is the widely used ETL tool for processing, indexing and ingesting data to serving stack for search. Milvus is the production-ready open-source vector database. In this talk we will show how to use Spark to process unstructured data to extract vector representations, and push the vectors to Milvus vector database for search serving.
In the realm of cybersecurity, offensive security practices act as a critical shield. By simulating real-world attacks in a controlled environment, these techniques expose vulnerabilities before malicious actors can exploit them. This proactive approach allows manufacturers to identify and fix weaknesses, significantly enhancing system security.
This presentation delves into the development of a system designed to mimic Galileo's Open Service signal using software-defined radio (SDR) technology. We'll begin with a foundational overview of both Global Navigation Satellite Systems (GNSS) and the intricacies of digital signal processing.
The presentation culminates in a live demonstration. We'll showcase the manipulation of Galileo's Open Service pilot signal, simulating an attack on various software and hardware systems. This practical demonstration serves to highlight the potential consequences of unaddressed vulnerabilities, emphasizing the importance of offensive security practices in safeguarding critical infrastructure.
2. SQL
â—Ź Structured Query Language
– Store data efficiently, no or minimal duplication
– Set theory & relational calculus
– Declarative Language
â—Ź Made up of DML & DDL
– Data Manipulation Language
– Data Description Language
â—Ź Does not always mesh with procedural or object oriented
languages
– Not well taught
3. NoSQL
â—Ź Not relational, usually schema-less
â—Ź Don't know how data will look, or care
â—Ź Not 'new'
– Berkeley Data Base
â—Ź Scaling problems
â—Ź Usually not a general purpose data store
4. SQL & NoSQL – different platforms
â—Ź Many companies end up with:
– Separate RDMS environment
â—Ź Many nodes
– Sharding
– Replication
– Separate NoSQL environment
â—Ź Thousands of nodes
– Tools (lots of 'em) to move between the two environments
– Minimal cross functionality
5. But what if you could...
â—Ź Use the same server/disks?
â—Ź Access data as SQL and key/value pair
– The same data?
– The same time?
â—Ź Easily convert RDMS schemas into NoSQL?
â—Ź Drink from the NoSQL 'fire hose', use SQL to query
â—Ź Keep ACID
â—Ź Not have to learn an entire ecosystems of new tools
6. Some history
â—Ź Yohinori Matsunobu, then DeNA now Facebook creates
Handler Socket in ~2010
– 750,000 qps on commodity hardware
– Used memcached as front end cache but not for for
storing rows
– http://yoshinorimatsunobu.blogspot.com/2010/10/using-
mysql-as-nosql-story-for.html
7. MySQL's InnoDB Memcached Plugin
â—Ź It uses a standard memcached protocol, with drivers available
for many programming languages.
â—Ź It does not automatically allow access to all tables in your
database, but instead tables 'opt-in' via a mapping containers
table.
● 1,100,000 qps –
http://dimitrik.free.fr/blog/archives/2013/11/mysql-performance-
over-1m-qps-with-innodb-memcached-plugin-in-mysql-57.html
8. Benefits of the InnoDB / memcached
Combination
â—Ź The combination of InnoDB tables and memcached offers
advantages over using either by themselves:
– Direct access to the InnoDB storage engine avoids the parsing
and planning overhead of SQL.
– Running memcached in the same process space as the MySQL
server avoids the network overhead of passing requests back
and forth.
– Data that is written using the memcached protocol is
transparently written to an InnoDB table, without going through
the MySQL SQL layer. You can control the frequency of writes
to achieve higher raw performance when updating non-critical
data.
9. Benefits of the InnoDB / memcached
Combination
â—Ź Subsequent requests for the same data is served from the InnoDB
buffer pool. The buffer pool handles the in-memory caching. You can
tune the performance of data-intensive operations using the familiar
InnoDB configuration options.
â—Ź Data can be unstructured or structured, depending on the type of
application. You can make an all-new table for the data, or map the
NoSQL-style processing to one or more existing tables.
â—Ź InnoDB can handle composing and decomposing multiple column
values into a single memcached item value, reducing the amount of
string parsing and concatenation required in your application. For
example, you might store a string value 2|4|6|8 in the memcached
cache, and InnoDB splits that value based on a separator character,
then stores the result into four numeric columns.
10. Benefits continued
â—Ź The transfer between memory and disk is handled automatically,
simplifying application logic.
â—Ź Data is stored in a MySQL database to protect against crashes,
outages, and corruption.
â—Ź You can still access the underlying table through SQL, for
reporting, analysis, ad hoc queries, bulk loading, multi-step
transactional computations, set operations such as union and
intersection, and other operations well suited to the
expressiveness and flexibility of SQL.
â—Ź You can ensure high availability of the NoSQL data by using this
feature on a master server in combination with MySQL replication.
11. More benefits
â—Ź The integration of memcached with MySQL provides a painless way to make
the in-memory data persistent, so you can use it for more significant kinds of
data. You can put more add, incr, and similar write operations into your
application, without worrying that the data could disappear at any moment.
You can stop and start the memcached server without losing updates made
to the cached data. To guard against unexpected outages, you can take
advantage of InnoDB crash recovery, replication, and backup procedures.
â—Ź The way InnoDB does fast primary key lookups is a natural fit for memcached
single-item queries. The direct, low-level database access path used by the
memcached plugin is much more efficient for key-value lookups than
equivalent SQL queries.
â—Ź
The serialization features of memcached, which can turn complex data
structures, binary files, or even code blocks into storeable strings, offer a
simple way to get such objects into a database.
12. Even more benfits
â—Ź Because you can access the underlying data through SQL, you can produce
reports, search or update across multiple keys, and call functions such as
AVG() and MAX() on the memcached data. All of these operations are
expensive or complicated with the standalone memcached.
â—Ź You do not need to manually load data into memcached at startup. As
particular keys are requested by an application, the values are retrieved from
the database automatically, and cached in memory using the InnoDB buffer
pool.
â—Ź Because memcached consumes relatively little CPU, and its memory
footprint is easy to control, it can run comfortably alongside a MySQL
instance on the same system.
â—Ź Because data consistency is enforced by the mechanisms used for regular
InnoDB tables, you do not have to worry about stale memcached data or
fallback logic to query the database in the case of a missing key.
14. Installation:
â—Ź Because the memcached library comes with the MySQL
server, installation and setup are straightforward. You run a
SQL script to set up a table for memcached to use, issue a
one-time install plugin statement to enable memcached,
and add to the MySQL configuration file or startup script
any desired memcached options, for example to use a
different port. You might still install the regular memcached
distribution to get the additional utilities such as memcp,
memcat, and memcapable.
15. Programming interfaces:
â—Ź You can access the MySQL server through the InnoDB
and memcached combination using the same language as
always: C and C++, Java, Perl, Python, PHP, and Ruby.
Specify the server hostname and port as with any other
memcached server. By default, the integrated memcached
server listens on the same port as usual, 11211. You can
use both the text and binary protocols.
16. Prerequisites for the InnoDB
memcached Plugin
â—Ź Currently, the memcached Daemon Plugin is only
supported on Linux, Solaris, and OS X platforms.
â—Ź You must have libevent installed, since it is required by
memcached
17. Setup
â—Ź To configure the memcached plugin so it can interact with
InnoDB tables, run the innodb_memcached_config.sql
configuration script to install the necessary tables used
behind the scenes:
mysql> source MYSQL_HOME/share/innodb_memcached_config.sql
â—Ź This is a one-time operation. The tables remain in place if
you later disable and re-enable the memcached support.
18. Setup creates three tables
â—Ź In database innodb_memcache
– cache_policies
– config_options
– Containers
â—Ź Plus test.demo_test
– (there is also one in innodb_memcache but unused)
–
21. Load plugin
â—Ź To activate the daemon plugin, use the install plugin statement, just
as when installing any other MySQL plugin:
– mysql> install plugin daemon_memcached soname "libmemcached.so";
– Once the plugin is installed this way, it is automatically activated
each time the MySQL server is booted or restarted.
â—Ź Disabling the Daemon Plugin
– When making major changes to the plugin configuration, you
might need to turn off the plugin. To do so, issue the following
statement:
– mysql> uninstall plugin daemon_memcached;
22. Test from memcached
An example using telnet to send memcached commands
and receive results through the ASCII protocol:
telnet 127.0.0.1 11211
set a11 10 0 9 – set 'a11' 'flag' 'ttl' size
123456789
STORED
get a11
VALUE a11 0 9
123456789
END
quit
23. From SQL side
To prove that all the same data has been stored
in MySQL, connect to the MySQL server and
issue:
mysql> select * from test.demo_test;
24. So what else can it do?!?!?
â—Ź daemon_memcached_w_batch_size
– Use to commit batches, 1=every record
â—Ź innodb_api_disable_rowlock
– SET and GET operations w/o locks
â—Ź innodb_memcache.cache_policies
– Memory, disk, or both
– Set independently for SET, INCR, GET, DECR, DELETE,
and FLUSH
– Use to have DELETE/FLUSH work on memory, not disk
25. Remember
â—Ź Memcached may be flushing slowly compared to InnoDB
– Use READ_UNCOMMITED SQL mode
â—Ź Memcached data can be sent to replication slaves if binary logging
enabled
– innodb_api_enable_binlog
â—Ź More details in MySQL Manual
– 14.18 InnoDB Integration with memcached
http://dev.mysql.com/doc/refman/5.6/en/innodb-memcached.html
27. Another Approaches with MySQL 5.7
â—Ź MySQL's Http Plugin
– Lets lightweight applications use JSON to use database
without using intermediate server
– three APIs:
â—Ź key-document for nested JSON documents
â—Ź CRUD for JSON mapped SQL tables
â—Ź SQL with JSON replies
â—Ź JSON UDFs
– 0.3.3 January release