The document provides steps to upgrade a MySQL database from version 5.5.30 to 5.6.10 on a Linux server. It involves downloading the MySQL 5.6 RPM files, stopping the existing 5.5 server, moving the existing data directory, removing the 5.5 RPMs, installing the 5.6 RPMs, moving the data directory back, starting the 5.6 server, and running mysql_upgrade to convert the database to the new version's format. Additional configuration changes for the new 5.6 version are also recommended.
The document provides information about MySQL storage engines:
- It describes the main storage engines like MyISAM, InnoDB, Memory, Archive, etc and their key features.
- It explains how to specify a storage engine when creating a table, check the engine of an existing table, and convert a table to use a different engine.
- It also gives details on important InnoDB related parameters like innodb_file_per_table and how to check if InnoDB is enabled on a MySQL server.
This document provides instructions for setting up different types of MySQL replication architectures:
1) It describes how to configure basic master-slave replication between two servers with step-by-step instructions for configuring the master and slave servers.
2) It also provides a second method for implementing master-slave replication with additional details on configuring the replication user and importing databases.
3) Finally, it outlines how to set up a master-master replication configuration between two MySQL servers to provide high availability, with each server acting as both a master and slave.
The document discusses various topics related to the InnoDB storage engine in MySQL, including its key features, backup and recovery procedures, checkpoint processing, moving or copying InnoDB tables, and the storage engines supported in MySQL 5.5. It provides technical details on InnoDB's implementation of transactions, locking, and crash recovery. The document also describes how to force InnoDB recovery if needed to dump tables from a corrupted database.
This document provides instructions for various MySQL backup and restore operations using mysqldump and other tools. It discusses:
- Backing up and restoring a single database or multiple databases using mysqldump.
- Backing up all databases, restoring databases, and restoring a single database.
- Backing up a specific table.
- Importing data into MySQL from text files using mysqlimport or LOAD DATA LOCAL INFILE statements.
- Additional topics covered include MySQL backups on Linux and Windows, different backup types, dumping databases to other servers, and loading SQL files and CSV files into MySQL.
The document summarizes new features in MySQL 5.7, including improvements to InnoDB performance for read-only and read-write workloads, faster connection handling, bulk data load improvements, statement timeouts, multiple user level locks, and other features to improve scalability, concurrency, and performance.
MySQL Administrator
Basic course
- MySQL 개요
- MySQL 설치 / 설정
- MySQL 아키텍처 - MySQL 스토리지 엔진
- MySQL 관리
- MySQL 백업 / 복구
- MySQL 모니터링
Advanced course
- MySQL Optimization
- MariaDB / Percona
- MySQL HA (High Availability)
- MySQL troubleshooting
네오클로바
http://neoclova.co.kr/
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.
MariaDB 10.5 binary install (바이너리 설치)
- 네오클로바 DB지원사업부
1. About MariaDB
1.1 MariaDB 개요
1.2 MariaDB as a R-DBMS
1.3 Open Source Database System
2. 설치
2.1 설치 기본 정보
2.2 설치 준비
2.3 MariaDB 설치
2.4 MariaDB 시작 / 접속 / 종료
2.5 추가 설정
The document provides information about MySQL storage engines:
- It describes the main storage engines like MyISAM, InnoDB, Memory, Archive, etc and their key features.
- It explains how to specify a storage engine when creating a table, check the engine of an existing table, and convert a table to use a different engine.
- It also gives details on important InnoDB related parameters like innodb_file_per_table and how to check if InnoDB is enabled on a MySQL server.
This document provides instructions for setting up different types of MySQL replication architectures:
1) It describes how to configure basic master-slave replication between two servers with step-by-step instructions for configuring the master and slave servers.
2) It also provides a second method for implementing master-slave replication with additional details on configuring the replication user and importing databases.
3) Finally, it outlines how to set up a master-master replication configuration between two MySQL servers to provide high availability, with each server acting as both a master and slave.
The document discusses various topics related to the InnoDB storage engine in MySQL, including its key features, backup and recovery procedures, checkpoint processing, moving or copying InnoDB tables, and the storage engines supported in MySQL 5.5. It provides technical details on InnoDB's implementation of transactions, locking, and crash recovery. The document also describes how to force InnoDB recovery if needed to dump tables from a corrupted database.
This document provides instructions for various MySQL backup and restore operations using mysqldump and other tools. It discusses:
- Backing up and restoring a single database or multiple databases using mysqldump.
- Backing up all databases, restoring databases, and restoring a single database.
- Backing up a specific table.
- Importing data into MySQL from text files using mysqlimport or LOAD DATA LOCAL INFILE statements.
- Additional topics covered include MySQL backups on Linux and Windows, different backup types, dumping databases to other servers, and loading SQL files and CSV files into MySQL.
The document summarizes new features in MySQL 5.7, including improvements to InnoDB performance for read-only and read-write workloads, faster connection handling, bulk data load improvements, statement timeouts, multiple user level locks, and other features to improve scalability, concurrency, and performance.
MySQL Administrator
Basic course
- MySQL 개요
- MySQL 설치 / 설정
- MySQL 아키텍처 - MySQL 스토리지 엔진
- MySQL 관리
- MySQL 백업 / 복구
- MySQL 모니터링
Advanced course
- MySQL Optimization
- MariaDB / Percona
- MySQL HA (High Availability)
- MySQL troubleshooting
네오클로바
http://neoclova.co.kr/
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.
MariaDB 10.5 binary install (바이너리 설치)
- 네오클로바 DB지원사업부
1. About MariaDB
1.1 MariaDB 개요
1.2 MariaDB as a R-DBMS
1.3 Open Source Database System
2. 설치
2.1 설치 기본 정보
2.2 설치 준비
2.3 MariaDB 설치
2.4 MariaDB 시작 / 접속 / 종료
2.5 추가 설정
The document discusses the Performance Schema in MySQL. It provides an overview of what the Performance Schema is and how it can be used to monitor events within a MySQL server. It also describes how to configure the Performance Schema by setting up actors, objects, instruments, consumers and threads to control what is monitored. Finally, it explains how to initialize the Performance Schema by truncating existing summary tables before collecting new performance data.
MySQL 5.7 - What's new and How to upgradeAbel Flórez
The document discusses new features in MySQL 5.7, including:
1) Performance improvements such as being 3x faster than MySQL 5.6 for certain workloads based on sysbench benchmarks.
2) Optimizer enhancements like a new cost-based optimizer model for better query performance and resource usage.
3) Additional features like native JSON support with functions to create, search, modify and return JSON values and improved security.
MySQL Enterprise Backup: Backup & Recovery Performance tests, full and partial restores, comparisons using MySQL Utilities, using transportable tablespaces, etc.
A simple scenario on a small environment, using ubuntu a laptop and an external hd, showing how to use MEB and leave mysqldump to those specific situations, and reduce backup and restore times via MEB and single-image files, extracting specific .ibd or .frm's and recover the lost rows, or a dropped table.
This document discusses how to unplug and plug pluggable databases in Oracle 12c. It shows how to:
1. Unplug two pluggable databases named "new" and "new2" into XML files.
2. Drop the databases while keeping the datafiles.
3. Check for compatibility before plugging the databases into another container.
4. Plug the databases back into the container using the XML files with the "nocopy" and "copy" clauses.
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
This document is a tutorial on managing pluggable databases in Oracle 12c. It discusses how to rename, manage, and drop pluggable databases. It also covers security topics like common vs local users and roles, and how privileges are handled between the CDB root and pluggable databases. The tutorial demonstrates renaming a pluggable database called "TEST" to "new", managing tablespaces and datafiles between the root and pluggable databases, and creating both common and local users and roles.
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.
2007 MySQL Conference and Expo 90 minute presentation specifically targeting Oracle Developers and DBAs. Topics included.
*DBA Tips, Tricks, Gotcha's & Tools
* Key Differences for Developers
* Migrating from Oracle to MySQL
This document provides tuning recommendations for various MySQL configuration variables. It recommends:
- Tuning variables one at a time and being aware of interdependencies
- Setting innodb_buffer_pool_size to 2x RAM for write-intensive workloads
- Setting max_connections to over 1000 is not recommended and to use a thread pool instead
- Avoid using innodb_file_per_table for workloads with over 10k tables
- Setting innodb_flush_log_at_trx_commit to 1 for safety and 2 for replication.
MaxScale is a database proxy that provides high availability and scalability for MariaDB servers. It can be used to configure load balancing of read/write connections, auto failover/switchover/rejoin using MariaDB GTID replication. Keepalived can be used with MaxScale to provide high availability by monitoring MaxScale and failing over if needed. The document provides details on setting up MariaDB replication with GTID, installing and configuring MaxScale and Keepalived. It also describes testing the auto failover functionality.
The document discusses high availability and scalability in MySQL. It describes various techniques for achieving high availability including replication, clustering, and shared storage solutions. It also discusses different approaches for scaling MySQL including replication, sharding, and clustering. MySQL replication is described as asynchronous with a single master and multiple read-only slaves. MySQL Cluster provides synchronous replication across nodes and automatic failover for high availability.
"Disaster is inevitable" and "To move forward you must first backup" should be known to all software developers. This presentation will discuss all the options for your valuable data assets in MySQL, and highlight how to maintain site reliability of your data
[db tech showcase Tokyo 2014] B15: Scalability with MariaDB and MaxScale by ...Insight Technology, Inc.
Scalability with MariaDB and MaxScale talks about MariaDB 10, and MaxScale, a pluggable router for your queries. These are technologies developed at MariaDB Corporation, made opensource, and will help scale your MariaDB and MySQL workloads
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.
MySQL Replication: Demo Réplica en EspañolKeith Hollman
MySQL Replication technical example in Spanish.
Ejemplo técnico de réplica de MySQL en Español.
Es una guía muy rápida para quitar el miedo a empezar a jugar con réplica.
This document provides an introduction to using MySQL. It begins with an overview of installing and configuring MySQL, including the configuration file (my.cnf) and privilege tables that control user permissions. It then demonstrates how to connect to the MySQL server for the first time using the mysql client, set the root password, select a database, and use the mysqladmin tool to create a new database. The document concludes by explaining how to secure the new database using the GRANT command to assign privileges to a user for that database.
The document discusses MariaDB 5.5 and the future of MariaDB, noting that MariaDB aims to be a drop-in replacement for MySQL that is fully compatible but with additional features; it provides an overview of MariaDB's history and major releases from 5.1 to 5.5; and it outlines some of MariaDB's goals and plans for the future, including the 10.0 release and incorporating additional storage engines.
in LATVIAN language: Viens no galvenajiem datubāzes administratora uzdevumiem ir veikt datubāzes backup un prast no tā atjaunot datubāzi. Mysql bezmaksas versija nepiedāvā datubāzes administratoram ļoti daudz izvēles. Sava prezentācija es pastāstīšu par šādiem rīkiem:
-- MySQLdump
-- Percona XtraBackup
-- Mysql enterprise backup (MEB)
--Un citiem rīkiem kas palīdz man veikt db backup
The document describes how to configure and run multiple MySQL database instances on a single server. It involves:
1. Creating separate data directories and configuration files for each instance, configured to use different ports;
2. Installing the database tables into each data directory;
3. Starting each MySQL instance using its customized configuration file.
This allows running two instances on ports 3307 and 3308, each with its own isolated data and configuration. The server processes are started and the ports are verified to confirm the instances are running independently.
The document provides information about MySQL, including that it is an open source database software that is widely used. It describes how to install and configure MySQL on Linux, and provides examples of common SQL queries like creating tables, inserting/updating/deleting data, and exporting/importing databases. Key topics covered include the benefits of MySQL, installing it on Linux, basic configuration, and using SQL statements to define schemas and manipulate data.
The document discusses the Performance Schema in MySQL. It provides an overview of what the Performance Schema is and how it can be used to monitor events within a MySQL server. It also describes how to configure the Performance Schema by setting up actors, objects, instruments, consumers and threads to control what is monitored. Finally, it explains how to initialize the Performance Schema by truncating existing summary tables before collecting new performance data.
MySQL 5.7 - What's new and How to upgradeAbel Flórez
The document discusses new features in MySQL 5.7, including:
1) Performance improvements such as being 3x faster than MySQL 5.6 for certain workloads based on sysbench benchmarks.
2) Optimizer enhancements like a new cost-based optimizer model for better query performance and resource usage.
3) Additional features like native JSON support with functions to create, search, modify and return JSON values and improved security.
MySQL Enterprise Backup: Backup & Recovery Performance tests, full and partial restores, comparisons using MySQL Utilities, using transportable tablespaces, etc.
A simple scenario on a small environment, using ubuntu a laptop and an external hd, showing how to use MEB and leave mysqldump to those specific situations, and reduce backup and restore times via MEB and single-image files, extracting specific .ibd or .frm's and recover the lost rows, or a dropped table.
This document discusses how to unplug and plug pluggable databases in Oracle 12c. It shows how to:
1. Unplug two pluggable databases named "new" and "new2" into XML files.
2. Drop the databases while keeping the datafiles.
3. Check for compatibility before plugging the databases into another container.
4. Plug the databases back into the container using the XML files with the "nocopy" and "copy" clauses.
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
This document is a tutorial on managing pluggable databases in Oracle 12c. It discusses how to rename, manage, and drop pluggable databases. It also covers security topics like common vs local users and roles, and how privileges are handled between the CDB root and pluggable databases. The tutorial demonstrates renaming a pluggable database called "TEST" to "new", managing tablespaces and datafiles between the root and pluggable databases, and creating both common and local users and roles.
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.
2007 MySQL Conference and Expo 90 minute presentation specifically targeting Oracle Developers and DBAs. Topics included.
*DBA Tips, Tricks, Gotcha's & Tools
* Key Differences for Developers
* Migrating from Oracle to MySQL
This document provides tuning recommendations for various MySQL configuration variables. It recommends:
- Tuning variables one at a time and being aware of interdependencies
- Setting innodb_buffer_pool_size to 2x RAM for write-intensive workloads
- Setting max_connections to over 1000 is not recommended and to use a thread pool instead
- Avoid using innodb_file_per_table for workloads with over 10k tables
- Setting innodb_flush_log_at_trx_commit to 1 for safety and 2 for replication.
MaxScale is a database proxy that provides high availability and scalability for MariaDB servers. It can be used to configure load balancing of read/write connections, auto failover/switchover/rejoin using MariaDB GTID replication. Keepalived can be used with MaxScale to provide high availability by monitoring MaxScale and failing over if needed. The document provides details on setting up MariaDB replication with GTID, installing and configuring MaxScale and Keepalived. It also describes testing the auto failover functionality.
The document discusses high availability and scalability in MySQL. It describes various techniques for achieving high availability including replication, clustering, and shared storage solutions. It also discusses different approaches for scaling MySQL including replication, sharding, and clustering. MySQL replication is described as asynchronous with a single master and multiple read-only slaves. MySQL Cluster provides synchronous replication across nodes and automatic failover for high availability.
"Disaster is inevitable" and "To move forward you must first backup" should be known to all software developers. This presentation will discuss all the options for your valuable data assets in MySQL, and highlight how to maintain site reliability of your data
[db tech showcase Tokyo 2014] B15: Scalability with MariaDB and MaxScale by ...Insight Technology, Inc.
Scalability with MariaDB and MaxScale talks about MariaDB 10, and MaxScale, a pluggable router for your queries. These are technologies developed at MariaDB Corporation, made opensource, and will help scale your MariaDB and MySQL workloads
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.
MySQL Replication: Demo Réplica en EspañolKeith Hollman
MySQL Replication technical example in Spanish.
Ejemplo técnico de réplica de MySQL en Español.
Es una guía muy rápida para quitar el miedo a empezar a jugar con réplica.
This document provides an introduction to using MySQL. It begins with an overview of installing and configuring MySQL, including the configuration file (my.cnf) and privilege tables that control user permissions. It then demonstrates how to connect to the MySQL server for the first time using the mysql client, set the root password, select a database, and use the mysqladmin tool to create a new database. The document concludes by explaining how to secure the new database using the GRANT command to assign privileges to a user for that database.
The document discusses MariaDB 5.5 and the future of MariaDB, noting that MariaDB aims to be a drop-in replacement for MySQL that is fully compatible but with additional features; it provides an overview of MariaDB's history and major releases from 5.1 to 5.5; and it outlines some of MariaDB's goals and plans for the future, including the 10.0 release and incorporating additional storage engines.
in LATVIAN language: Viens no galvenajiem datubāzes administratora uzdevumiem ir veikt datubāzes backup un prast no tā atjaunot datubāzi. Mysql bezmaksas versija nepiedāvā datubāzes administratoram ļoti daudz izvēles. Sava prezentācija es pastāstīšu par šādiem rīkiem:
-- MySQLdump
-- Percona XtraBackup
-- Mysql enterprise backup (MEB)
--Un citiem rīkiem kas palīdz man veikt db backup
The document describes how to configure and run multiple MySQL database instances on a single server. It involves:
1. Creating separate data directories and configuration files for each instance, configured to use different ports;
2. Installing the database tables into each data directory;
3. Starting each MySQL instance using its customized configuration file.
This allows running two instances on ports 3307 and 3308, each with its own isolated data and configuration. The server processes are started and the ports are verified to confirm the instances are running independently.
The document provides information about MySQL, including that it is an open source database software that is widely used. It describes how to install and configure MySQL on Linux, and provides examples of common SQL queries like creating tables, inserting/updating/deleting data, and exporting/importing databases. Key topics covered include the benefits of MySQL, installing it on Linux, basic configuration, and using SQL statements to define schemas and manipulate data.
The document provides instructions on installing, configuring, and using the MySQL database on Linux. It explains how to download and install MySQL, set the root password, secure the installation, and start the MySQL daemon. Advanced SQL topics like unions, subqueries, and ranking functions are also briefly mentioned.
Oracle 11g Installation With ASM and Data Guard SetupArun Sharma
In this article we will look at Oracle 11g installation with ASM storage and also setup physical standby on ASM.
We will be following below steps for our configuration:
Setup Primary Server
Setup Standby Server
Full article link is here: https://www.support.dbagenesis.com/post/oracle-11g-installation-with-asm-and-data-guard-setup
The document discusses various stages in architecting an application for the cloud as it grows in scale and complexity.
Stage 1 involves a simple architecture suitable for startups with low overhead. Stage 2 adds redundancy as the business grows. Stage 3 requires the addition of load balancers and more servers as publicity increases load. Stage 4 requires database replication and partitioning as single databases can no longer handle the load. Later stages involve rearchitecting the application and databases to support further scaling through techniques like data partitioning, database clustering, and optimizing code and resources.
This document provides instructions for installing, securing, and maintaining FreeBSD servers. It discusses pre-installation planning including partitioning, software selection, and kernel customization. Post-installation tasks covered include rebuilding the operating system to incorporate updates, installing software via packages and ports, and preparing for automated upgrades. The goal is to provide a secure, optimized system tailored to the server's purpose through careful configuration and removal of unnecessary components.
This document provides instructions for installing and configuring an HDF cluster using Ambari. It describes installing Ambari, required databases, and the HDF management pack. It then covers installing an HDF cluster using Ambari, and configuring various HDF components like Schema Registry, SAM, NiFi, Kafka, Storm and Log Search. It also provides instructions for configuring high availability for Schema Registry and SAM.
This document provides instructions for installing Oracle OLAP 11g in a Windows environment. It outlines the prerequisites, which include Oracle 11g R1 or R2 and a Windows Server platform. It then lists 24 step-by-step instructions for installing Oracle OLAP, which include running the setup file, selecting installation options, configuring passwords and file locations, and verifying the OLAP configuration. The instructions indicate the installation takes approximately 15 minutes to complete.
Some internal tools were relying on deprecated statements and behavior that changed in MySQL 5.6. The presenter had to update the tools to use the proper START SLAVE/STOP SLAVE statements and account for new information logged in binlogs due to configuration changes. Testing in pre-production helped uncover these issues so they could be addressed before upgrading production servers.
Building Apache Cassandra clusters for massive scaleAlex Thompson
Covering theory and operational aspects of bring up Apache Cassandra clusters - this presentation can be used as a field reference. Presented by Alex Thompson at the Sydney Cassandra Meetup.
This document provides a tutorial for installing Openbravo ERP on Ubuntu server. It includes instructions for installing prerequisites like PostgreSQL, Java, Tomcat, and Ant. It then guides the user through configuring Openbravo properties, compiling the source code, and accessing the installed Openbravo application. Backup and restoration procedures are also outlined that involve dumping the database and archiving the Openbravo source files.
1. The document provides instructions for installing CentOS and setting up a DNS server on the installed CentOS system.
2. It describes downloading and burning the CentOS ISO, installing it on a computer, and configuring the network interfaces and other installation options.
3. It also explains how to generate an rndc key for bind, edit the rndc.conf and named.conf files, and enable DNS services on the new CentOS server.
This presentation discusses performance and scalability testing and optimization for Drupal websites. It covers capacity planning, tools for testing and analysis, common bottlenecks, caching, database optimization, and Apache configuration tips. Specific technologies and modules mentioned include Varnish, APC, MySQL query cache, and Drupal caching.
This document describes how to configure MySQL database replication between a master and slave server. The key steps are:
1. Configure the master server by editing its configuration file to enable binary logging and set the server ID. Create a replication user and grant privileges.
2. Export the databases from the master using mysqldump.
3. Configure the slave server by editing its configuration file to point to the master server. Import the database dump. Start replication on the slave.
4. Verify replication is working by inserting data on the master and checking it is replicated to the slave.
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.
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.
This guide summarizes how to set up a simple single-node MySQL Cluster database on a Windows server by downloading the MySQL Cluster software, extracting and configuring it, starting the management node, data nodes, and SQL node processes, creating a test table, and then safely shutting down the cluster. It also provides links to guides on evaluating and optimizing MySQL Cluster performance for production use.
The document provides step-by-step instructions for installing Apache, MySQL, PHP, and Perl on Windows. It details downloading and installing each program, including configuring settings and paths. Basic tests are outlined to check the installation of each component. Finally, a PHP script is presented that connects to a MySQL database to test the full installation.
Similar to Upgrading mysql version 5.5.30 to 5.6.10 (20)
Convert language latin1 to utf8 on mysqlVasudeva Rao
The document provides steps to convert a MySQL database from the Latin1 character set to UTF8. It outlines two methods - the first involves dumping the existing Latin1 database, modifying the dump file to change character set specifications to UTF8, and importing into a new UTF8 database. The second method validates that the existing database is already using UTF8.
The document describes various data definition language (DDL) and data manipulation language (DML) commands in MySQL. Some key commands include using CREATE to add new databases, tables, indexes, and constraints. ALTER is used to modify existing database objects. DROP removes databases, tables, columns or indexes. DML commands like SELECT are used to query data, WHERE filters rows, JOIN combines tables, and INSERT, UPDATE, DELETE modify data. COUNT, SUM, DISTINCT and other functions can be used to aggregate or transform result sets.
The document provides information about using the MySQL Workbench Migration Wizard to migrate databases between different database types including MySQL, Microsoft SQL Server, and PostgreSQL. It discusses setting up the necessary ODBC libraries and drivers for the source database, an overview of the migration process, type mappings, and specific instructions for migrating from Microsoft SQL Server and PostgreSQL. Setup of ODBC components for Linux, Mac OS X, and Windows is described for each database type.
MySQL provides several features to improve performance, including flexibility in storage engines and data types, table maintenance utilities, and engine-specific optimizations. Performance can be monitored using commands like SHOW STATUS and SHOW PROCESSLIST. Slow query logging can help identify inefficient queries for optimization. The innodb_buffer_pool_size and key_buffer_size variables can be calculated based on table sizes to improve caching. Administrative tasks like user and database management, events, and security controls are demonstrated. Information_schema can be queried to view table details, columns and engines.
This document outlines how to configure multiple instances of MySQL on a single server. It describes commenting out port settings in the my.cnf file, creating configuration blocks for two instances, cloning the data directory for the second instance, and using mysqld_multi to start and manage the instances. Running mysqld_multi report verifies that both instances are running on different ports (3306 and 3307). Clients can connect to each instance by specifying the unique port or socket file location.
This document provides steps to configure multiple MySQL server instances running in parallel on the same Windows machine. It describes how to create separate instance directories, copy configuration and data files, edit the configuration files to use unique ports, install the instances as Windows services, start/stop the services, and connect to each instance using the appropriate port. It also addresses some common errors like "system cannot find file" and provides solutions to resolve them.
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 .
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.
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.
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfChart Kalyan
A Mix Chart displays historical data of numbers in a graphical or tabular form. The Kalyan Rajdhani Mix Chart specifically shows the results of a sequence of numbers over different periods.
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyScyllaDB
Freshworks creates AI-boosted business software that helps employees work more efficiently and effectively. Managing data across multiple RDBMS and NoSQL databases was already a challenge at their current scale. To prepare for 10X growth, they knew it was time to rethink their database strategy. Learn how they architected a solution that would simplify scaling while keeping costs under control.
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...Jason Yip
The typical problem in product engineering is not bad strategy, so much as “no strategy”. This leads to confusion, lack of motivation, and incoherent action. The next time you look for a strategy and find an empty space, instead of waiting for it to be filled, I will show you how to fill it in yourself. If you’re wrong, it forces a correction. If you’re right, it helps create focus. I’ll share how I’ve approached this in the past, both what works and lessons for what didn’t work so well.
Skybuffer SAM4U tool for SAP license adoptionTatiana Kojar
Manage and optimize your license adoption and consumption with SAM4U, an SAP free customer software asset management tool.
SAM4U, an SAP complimentary software asset management tool for customers, delivers a detailed and well-structured overview of license inventory and usage with a user-friendly interface. We offer a hosted, cost-effective, and performance-optimized SAM4U setup in the Skybuffer Cloud environment. You retain ownership of the system and data, while we manage the ABAP 7.58 infrastructure, ensuring fixed Total Cost of Ownership (TCO) and exceptional services through the SAP Fiori interface.
How information systems are built or acquired puts information, which is what they should be about, in a secondary place. Our language adapted accordingly, and we no longer talk about information systems but applications. Applications evolved in a way to break data into diverse fragments, tightly coupled with applications and expensive to integrate. The result is technical debt, which is re-paid by taking even bigger "loans", resulting in an ever-increasing technical debt. Software engineering and procurement practices work in sync with market forces to maintain this trend. This talk demonstrates how natural this situation is. The question is: can something be done to reverse the trend?
AppSec PNW: Android and iOS Application Security with MobSFAjin Abraham
Mobile Security Framework - MobSF is a free and open source automated mobile application security testing environment designed to help security engineers, researchers, developers, and penetration testers to identify security vulnerabilities, malicious behaviours and privacy concerns in mobile applications using static and dynamic analysis. It supports all the popular mobile application binaries and source code formats built for Android and iOS devices. In addition to automated security assessment, it also offers an interactive testing environment to build and execute scenario based test/fuzz cases against the application.
This talk covers:
Using MobSF for static analysis of mobile applications.
Interactive dynamic security assessment of Android and iOS applications.
Solving Mobile app CTF challenges.
Reverse engineering and runtime analysis of Mobile malware.
How to shift left and integrate MobSF/mobsfscan SAST and DAST in your build pipeline.
Discover top-tier mobile app development services, offering innovative solutions for iOS and Android. Enhance your business with custom, user-friendly mobile applications.
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.
5th LF Energy Power Grid Model Meet-up SlidesDanBrown980551
5th Power Grid Model Meet-up
It is with great pleasure that we extend to you an invitation to the 5th Power Grid Model Meet-up, scheduled for 6th June 2024. This event will adopt a hybrid format, allowing participants to join us either through an online Mircosoft Teams session or in person at TU/e located at Den Dolech 2, Eindhoven, Netherlands. The meet-up will be hosted by Eindhoven University of Technology (TU/e), a research university specializing in engineering science & technology.
Power Grid Model
The global energy transition is placing new and unprecedented demands on Distribution System Operators (DSOs). Alongside upgrades to grid capacity, processes such as digitization, capacity optimization, and congestion management are becoming vital for delivering reliable services.
Power Grid Model is an open source project from Linux Foundation Energy and provides a calculation engine that is increasingly essential for DSOs. It offers a standards-based foundation enabling real-time power systems analysis, simulations of electrical power grids, and sophisticated what-if analysis. In addition, it enables in-depth studies and analysis of the electrical power grid’s behavior and performance. This comprehensive model incorporates essential factors such as power generation capacity, electrical losses, voltage levels, power flows, and system stability.
Power Grid Model is currently being applied in a wide variety of use cases, including grid planning, expansion, reliability, and congestion studies. It can also help in analyzing the impact of renewable energy integration, assessing the effects of disturbances or faults, and developing strategies for grid control and optimization.
What to expect
For the upcoming meetup we are organizing, we have an exciting lineup of activities planned:
-Insightful presentations covering two practical applications of the Power Grid Model.
-An update on the latest advancements in Power Grid -Model technology during the first and second quarters of 2024.
-An interactive brainstorming session to discuss and propose new feature requests.
-An opportunity to connect with fellow Power Grid Model enthusiasts and users.
Digital Banking in the Cloud: How Citizens Bank Unlocked Their MainframePrecisely
Inconsistent user experience and siloed data, high costs, and changing customer expectations – Citizens Bank was experiencing these challenges while it was attempting to deliver a superior digital banking experience for its clients. Its core banking applications run on the mainframe and Citizens was using legacy utilities to get the critical mainframe data to feed customer-facing channels, like call centers, web, and mobile. Ultimately, this led to higher operating costs (MIPS), delayed response times, and longer time to market.
Ever-changing customer expectations demand more modern digital experiences, and the bank needed to find a solution that could provide real-time data to its customer channels with low latency and operating costs. Join this session to learn how Citizens is leveraging Precisely to replicate mainframe data to its customer channels and deliver on their “modern digital bank” experiences.
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
Upgrading mysql version 5.5.30 to 5.6.10
1. Upgrading MySQL 5.5.30 to 5.6.10 on Linux:
Step: 1First downloaded particular version of MySQL and copy in to mount pointin this
scenario we have 5.5.30 –log version on Linux
Now we need to upgrade 5.6.10 in Linuxversion:
Before upgrading,
2. Step 2: We now have our rpm’s to upgrade our server to MySQL 5.6.10
Before we proceed further, stop existing MySQL Server. Run the following command to
stop your server [Assuming your init.d start-up script in named as MySQL, you can check
that in /etc/init.d directory]
Servicemysql stop
Step 3:Now move the data directory under /var/lib/mysqlto /var/lib/mysql_55.
Run the following command in order to move. [If you used custom path when you installed
MySQL 5.5 then change below command appropriately]
mv/var/lib/mysql/ /var/lib/mysql_55
Step 4:Now you can securely remove the existing installation of MySQL 5.5 rpm’s from
your server, before we install the new MySQL 5.6 database engine. Check what existing
packages are installed on our existing database server that corresponds to MySQL 5.5
engine. To do that runs the following command
Rpm–qa|grep–I mysql
Step 5:Running the above command returns the following packages as that are currently
installed in existing database server. Now remove them one by one from server in order
for us to install MySQL 5.6 engine.
3. To remove we can simply run the following
Yum remove MySQL-server-5.5.30-1.rhel5 MySQL-client-5.5.30-1.rhel5 MySQL-shared-
5.5.30-1.rhel
Step 6:Now you have remove all MySQL 5.5 related libraries that correspond to MySQL 5.5
database engine. Nowlet’s install MySQL 5.6.10 from the rpm’s that we downloaded
earlier. To install them just run the following commands.
Rpm–ivhMySQL-shared-5.6.10-1.rhel5.rpm
Rpm-ivhMySQL-client-5.6.10-1.el6.rhel5.rpm
Rpm–ivhMySQL-server-5.6.10-1.el6.rhel5.rpm
4.
5. Log file:
[root@INVIRH54DB3 mysql]# rpm -ivh MySQL-server-5.6.10-1.rhel5.x86_64.rpm
Preparing... ########################################### [100%]
1:MySQL-server ########################################### [100%]
2013-04-12 12:27:10 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated.
Please use --explicit_defaults_for_timestamp server option (see documentation for more
details).
2013-04-12 12:27:10 2b96105a53a0 InnoDB: Warning: Using
innodb_additional_mem_pool_size is DEPRECATED. This option
may be removed in future releases, together with the option innodb_use_sys_malloc and
with the InnoDB'sinternal memory allocator.
2013-04-12 12:27:10 6419 [Note] InnoDB: The InnoDB memory heap is disabled
2013-04-12 12:27:10 6419 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2013-04-12 12:27:10 6419 [Note] InnoDB: Compressed tables use zlib 1.2.3
2013-04-12 12:27:10 6419 [Note] InnoDB: CPU does not support crc32 instructions
2013-04-12 12:27:10 6419 [Note] InnoDB: Using Linux native AIO
2013-04-12 12:27:10 6419 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2013-04-12 12:27:10 6419 [Note] InnoDB: Completed initialization of buffer pool
2013-04-12 12:27:10 6419 [Note] InnoDB: The first specified data file
/var/lib/mysql/ibdata1 did not exist: a new database to be created!
2013-04-12 12:27:10 6419 [Note] InnoDB: Setting file /var/lib/mysql/ibdata1 size to 10
MB2013-04-12 12:27:10 6419 [Note] InnoDB: Database physically writes the file full:
wait...2013-04-12 12:27:10 6419 [Note] InnoDB: Setting log file
/var/lib/mysql/ib_logfile101 size to 5 MB2013-04-12 12:27:10 6419 [Note] InnoDB: Setting
log file /var/lib/mysql/ib_logfile1 size to 5 MB2013-04-12 12:27:10 6419 [Note] InnoDB:
Renaming log file /var/lib/mysql/ib_logfile101 to /var/lib/mysql/ib_logfil
e02013-04-12 12:27:10 6419 [Warning] InnoDB: New log files created, LSN=45781
2013-04-12 12:27:10 6419 [Note] InnoDB: Doublewrite buffer not found: creating new
2013-04-12 12:27:10 6419 [Note] InnoDB: Doublewrite buffer created
2013-04-12 12:27:10 6419 [Note] InnoDB: 128 rollback segment(s) are active.
2013-04-12 12:27:10 6419 [Warning] InnoDB: Creating foreign key constraint system
tables.2013-04-12 12:27:10 6419 [Note] InnoDB: Foreign key constraint system tables
created2013-04-12 12:27:10 6419 [Note] InnoDB: Creating tablespace and datafile system
tables.2013-04-12 12:27:10 6419 [Note] InnoDB: Tablespace and datafile system tables
created.2013-04-12 12:27:10 6419 [Note] InnoDB: Waiting for purge to start2013-04-12
12:27:10 6419 [Note] InnoDB: 1.2.10 started; log sequence number 0
A random root password has been set. You will find it in '/root/.mysql_secret'.
2013-04-12 12:27:10 6419 [Note] Binlog end
6. 2013-04-12 12:27:10 6419 [Note] InnoDB: FTS optimize thread exiting.
2013-04-12 12:27:10 6419 [Note] InnoDB: Starting shutdown...
2013-04-12 12:27:12 6419 [Note] InnoDB: Shutdown completed; log sequence number
16259842013-04-12 12:27:12 0 [Warning] TIMESTAMP with implicit DEFAULT value is
deprecated. Please use --explicit_defaults_for_timestamp server option (see
documentation for more details).2013-04-12 12:27:12 2ba3a48293a0 InnoDB: Warning:
Using innodb_additional_mem_pool_size is DEPRECATED. This option
may be removed in future releases, together with the option innodb_use_sys_malloc and
with the InnoDB'sinternal memory allocator.2013-04-12 12:27:12 6442 [Note] InnoDB:
The InnoDB memory heap is disabled2013-04-12 12:27:12 6442 [Note] InnoDB: Mutexes
and rw_locks use GCC atomic built-ins 2013-04-12 12:27:12 6442 [Note] InnoDB:
Compressed tables use zlib 1.2.32013-04-12 12:27:12 6442 [Note] InnoDB: CPU does not
support crc32 instructions
2013-04-12 12:27:12 6442 [Note] InnoDB: Using Linux native AIO
2013-04-12 12:27:12 6442 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2013-04-12 12:27:12 6442 [Note] InnoDB: Completed initialization of buffer pool
2013-04-12 12:27:12 6442 [Note] InnoDB: Highest supported file format is Barracuda.
2013-04-12 12:27:12 6442 [Note] InnoDB: 128 rollback segment(s) are active.
2013-04-12 12:27:12 6442 [Note] InnoDB: Waiting for purge to start
2013-04-12 12:27:12 6442 [Note] InnoDB: 1.2.10 started; log sequence number 1625984
2013-04-12 12:27:12 6442 [Note] Binlog end
2013-04-12 12:27:12 6442 [Note] InnoDB: FTS optimize thread exiting.
2013-04-12 12:27:12 6442 [Note] InnoDB: Starting shutdown...
2013-04-12 12:27:14 6442 [Note] InnoDB: Shutdown completed; log sequence number
1625994
A RANDOM PASSWORD HAS BEEN SET FOR THE MySQL root USER !
You will find that password in '/root/.mysql_secret'.
You must change that password on your first connect,
No other statement but 'SET PASSWORD' will be accepted.
See the manual for the semantics of the 'password expired' flag.
Also, the account for the anonymous user has been removed.
In addition, you can run:
/usr/bin/mysql_secure_installation
Which will also give you the option of removing the test database?
This is strongly recommended for production servers.
See the manual for more instructions.
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
7. Support MySQL by buying support/licenses at http://shop.mysql.com
WARNING: Found existing config file /usr/my.cnf on the system.
Because this file might be in use, it was not replaced,
But was used in bootstrap (unless you used --defaults-file)
And when you later start the server.
The new default config file was created as /usr/my-new.cnf,
Please compare it with your file and take the changes you need.
WARNING: Default config file /etc/my.cnf exists on the system
This file will be read by default by the MySQL server
If you do not want to use this, either remove it, or use the
--defaults-file argument to mysqld_safe when starting the server
Step 7:We are now done with installing MySQL 5.6 server. Now before we start the server
we need to move back the data directory that we moved earlier and put back to where it
was. I will be copying back rather than moving as a failsafe if the upgrade fails. Then we
still have the original data directory in place to fix things up or install MySQL 5.5 server
backs to its place for rolling back the upgrade process.
Mv/var/lib/mysql /var/lib/mysql_56_clean
Cp-R/var/lib/mysql_55 /var/lib/mysql
Step 8:Now we have our data directory back to its place. Right now we are in a state that
our engine libraries correspond to MySQL 5.6.10 and our data directory is of MySQL 5.5.
We need to upgrade our data directory to be compatible with MySQL 5.6 database engine.
In order to proceed further we need to start the database engine now.
Servicemysql start
8. Step 9:There will be an error starting the database engine as shown above:
Starting MySQL.ERROR! The server quit without updating PID file (/var/lib/mysql/open
sourcedbms.pid)
Database engine will fail to start as permissions on data directory are wrong. To fix that
run the following command.
Chown-R mysql:mysql/var/lib/mysql
9. Step 10: Now try starting the database server again with same command.
Servicemysql start
And you should be able to successfully start it. [If you did not, you might have data
directories installed in a different path or custom config file paths etc., check you database
logs and see if those tell something about it. Please put that in this blog comments and I
will try to solve that if possible based on my understanding]
Step 11:Now let’s upgrade the data directories to be compatible with MySQL 5.6 engine to
play nice with this new engine. To upgrade we need to run mysql_upgrade. This utility
checks your tables, and attempts to repair them if necessary. It also updates your grant
tables to make sure that they have the current structure so that you can take advantage of
any new capabilities. Please use an existing super user that you have inyour database [5.5]
10. engine to run this utility. Please change the host/user/password according to your
parameters/settings.
mysql_upgrade –hHostname –u root-p
Here password is mysql
Step 12:Mysql_upgrade utility should start fixing your existing tables. Now you have
successfully updated your data directory as well. This completes full upgrade of MySQL 5.5
database server to MySQL 5.6 database server. Try connecting from any existing client and
you should be able to connect successfully to this database server.
11.
12. Note:There are certainly a lot of config parameter changes / feature changes in MySQL 5.6
database version. I highly recommend going through those new welcome additions in
MySQL 5.6 version and tune your database server accordingly [Also go through Server
Administration / Security areas from 5.6 Manual for good understanding]. Also this
upgrade is a lot straight forward as I did not have to deal with existing server config
parameters, custom paths etc., I would say think through this tutorial and act according to
your environment/needs.
Before you proceed to do this on your production servers make sure that you block 3306
[Or whatever port your database server runs on] port from your iptables and test this
process in pre-production environments at-least couple of times.Last but not least make
sure that this new MySQL server is enabled to auto start when server restarts.
13. What's New in MySQL 5.6?
http://dev.mysql.com/tech-resources/articles/whats-new-in-mysql-5.6.html