SlideShare a Scribd company logo
1 of 6
Download to read offline
****************************************************** 
MySQL Tutorial (1) 
autor: manuel.contreras@oracle.com 
Actualización: Noviembre 13, 2014 
****************************************************** 
Pre-requisitos: 
Aprovisionamiento de entorno Virtual 
1) Descargar e Instalar MySQL Vagrant 
https://www.vagrantup.com/downloads.html 
2) Descargar box Oracle Linux 6.5 
vagrant box add oel65-64 https://storage.us2.oraclecloud.com/v1/istoilis-istoilis/vagrant/oel65-64.box 
3) Inicializar VM instance 
vagrant init oel65-64 
4) Ingresar a consola: 
vagrant ssh 
Una vez instalado la maquina virtual con Oracle Linux, continuar con la instalación de: 
– MySQL Fabric Controller, MySQL Server version 5.6.10 ó superior. 
– MySQL Utilities ( mysqlfabric 1.5.2 ) requiere Python 2.6 ó superior ) & 
Connector/Python 2.0 ó superior. 
Para descargar binarios en: 
edelivery.oracle.com ( Registro Trial 30 días ) 
o bien 
http://dev.mysql.com/downloads/ ( Binarios GPL ) 
************************** Laboratorio 1 ***************************** 
Instalación MySQL Server 5.6.10+ & MySQL Fabric 1.5 
************************************************************************* 
1. Instalar MySQL Enterprise Server 5.6.19+ 
Remover MySQL Community Server 
sudo rpm -qa|grep mysql 
sudo rpm -e --nodeps mysql-libs-5.1.71-1.el6.x86_64
Una vez removido MySQL Community & Libs, continuar instalando MySQL Enterprise 
5.6.10 ó superior 
sudo rpm -Uvh MySQL-server-advanced-5.6.19-1.el6.x86_64.rpm 
sudo rpm -Uvh MySQL-client-advanced-5.6.19-1.el6.x86_64.rpm 
sudo chown -R mysql:mysql /var/lib/mysql/ 
sudo passwd mysql 
*** Nota.- Asignar password oracle 
sudo /etc/init.d/mysql start 
Nota.- visualizar el password asignado por default para root MySQL 
sudo cat /root/.mysql_secret 
mysql -uroot -p 
Enter password: 
Nota.- ingresar password indicando en el archivo /root/.mysql_secret 
mysql>show schemas; 
Nota.- debe mostrar únicamente los schemas de sistema: information_schema, mysql, 
performance_schema 
sudo mysql_secure_installation 
Nota.- Asignar password oracle 
2. Instalar MySQL Python Connector 
sudo rpm -Uvh mysql-connector-python-2.0.1-1.el6.noarch 
3. Instalar MySQL Utilities ( Fabric 1.5 ) 
sudo rpm -Uvh mysql-utilities-commercial-1.5.2-1.el6.noarch.rpm 
sudo rpm -Uvh mysql-utilities-commercial-extra-1.5.2-1.el6.noarch.rpm 
sudo vi /etc/mysql/fabric.cfg 
Nota.- asignar password oracle en todas la lineas que requiera “password” 
************************** Laboratorio 2 ***************************** 
Configuración MySQL Fabric 1.5 
************************************************************************* 
1. Configuración Privilegios MySQL Fabric 
mysql>GRANT ALL ON fabric.* TO 'fabric'@'localhost' identified by 'oracle'; 
mysql>GRANT ALL ON *.* TO 'fabric'@'localhost' identified by 'oracle' with grant 
option; 
mysql>flush privileges;
2. Configurar Backing Store Tables 
su – mysql 
mysqlfabric manage setup 
[INFO] 1414161265.564337 - MainThread - Initializing persister: user (fabric), server 
(localhost:3306), database (fabric). 
[INFO] 1414161266.288218 - MainThread - Initial password for admin/mysql set 
Password set for admin/mysql from configuration file. 
[INFO] 1414161266.291762 - MainThread - Password set for admin/mysql from configuration 
file. 
[INFO] 1414161266.292421 - MainThread - Initial password for admin/xmlrpc set 
Password set for admin/xmlrpc from configuration file. 
[INFO] 1414161266.295928 - MainThread - Password set for admin/xmlrpc from configuration 
file. 
Nota.- el comando anterior, crea el schema fabric en el nodo State Store 
( Fabric Controller ) 
Verificar que el schema fabric aparece con el siguiente comando: 
mysql -uroot -p -e "show schemas;" 
Enter password: 
+--------------------+ 
| Database | 
+--------------------+ 
| information_schema | 
| fabric | 
| mysql | 
| performance_schema | 
| test | 
+--------------------+
3. Iniciar servicio de Fabric Controller: 
nohup mysqlfabric manage start & 
cat nohup.out 
[INFO] 1414161186.229210 - MainThread - Initializing persister: user (fabric), server 
(localhost:3306), database (fabric). 
Error: Invalid database connection. 
[INFO] 1414161201.063115 - MainThread - Initializing persister: user (fabric), server 
(localhost:3306), database (fabric). 
Error: Invalid database connection. 
[INFO] 1414161303.457295 - MainThread - Initializing persister: user (fabric), server 
(localhost:3306), database (fabric). 
[INFO] 1414161303.465428 - MainThread - Loading Services. 
[INFO] 1414161303.478065 - MainThread - MySQL-RPC protocol server started, listening on 
localhost:32275 
[INFO] 1414161303.491165 - MainThread - Fabric node starting. 
[INFO] 1414161303.494004 - MainThread - Starting Executor. 
[INFO] 1414161303.494116 - MainThread - Setting 5 executor(s). 
[INFO] 1414161303.494521 - Executor-0 - Started. 
[INFO] 1414161303.495578 - Executor-1 - Started. 
[INFO] 1414161303.497107 - Executor-2 - Started. 
[INFO] 1414161303.498405 - Executor-3 - Started. 
[INFO] 1414161303.501844 - Executor-4 - Started. 
[INFO] 1414161303.502936 - MainThread - Executor started. 
[INFO] 1414161303.510773 - MainThread - Starting failure detector. 
[INFO] 1414161303.512187 - XML-RPC-Server - XML-RPC protocol server ('127.0.0.1', 32274) 
started. 
[INFO] 1414161303.512884 - XML-RPC-Server - Setting 1 XML-RPC session(s). 
[INFO] 1414161303.513301 - XML-RPC-Session-0 - Started XML-RPC-Session. 
mysqlfabric manage ping 
Fabric UUID: 5ca1ab1e-a007-feed-f00d-cab3fe13249e 
Time-To-Live: 1 
Success (empty result set) 
Nota.- debe retornar success 
4.- Crear grupo MySQL Fabric 
mysqlfabric group create groupTest 
Fabric UUID: 5ca1ab1e-a007-feed-f00d-cab3fe13249e 
Time-To-Live: 1 
uuid finished success result 
------------------------------------ -------- ------- ------ 
1fe8a135-fda9-4b9b-be0f-061f51e1793c 1 1 1 
state success when description 
----- ------- ------------- ------------------------------------------------------------- 
3 2 1.41416e+09 Triggered by <mysql.fabric.events.Event object at 0x12f6190>.
4 2 1.41416e+09 Executing action (_create_group). 
5 2 1.41416e+09 Executed action (_create_group). 
mysqlfabric group lookup_groups 
Fabric UUID: 5ca1ab1e-a007-feed-f00d-cab3fe13249e 
Time-To-Live: 1 
group_id description failure_detector master_uuid 
----------- ----------- ---------------- ------------------------------------ 
groupTest None 0 None 
En este punto, no hay servers asociados al grupo
4.- Agregar nodos a Grupo 
Antes de agregar nodos, el nodo debe cumplir con: 
– Tener instalado MySQL 5.6.10 ó superior 
Usuario fabric 
mysql>GRANT ALL ON fabric.* TO 'fabric'@'localhost' identified by 'oracle'; 
mysql -uroot -p -S /tmy. 
mysql>GRANT ALL ON *.* TO 'fabric'@'localhost' identified by 'oracle' with grant 
option; 
mysql>flush privileges; 
b) Contener un Server UUID único 
$DATDIR/auto.cnf 
Importante.- el Serer UUID, debe ser un valor único para cada server 
mysqlfabric group add groupTest localhost:1300 
mysqlfabric group add groupTest localhost:1301 
mysqlfabric group lookup_servers groupTest 
mysqlfabric group health groupTest 
mysqlfabric group promote groupTest 
mysqlfabric group lookup_servers groupTest 
mysqlfabric group activate ha_group_nombre

More Related Content

What's hot

OSMC 2008 | Monitoring MySQL by Geert Vanderkelen
OSMC 2008 | Monitoring MySQL by Geert VanderkelenOSMC 2008 | Monitoring MySQL by Geert Vanderkelen
OSMC 2008 | Monitoring MySQL by Geert VanderkelenNETWAYS
 
Oracle 12c r1 installation on solaris 11.1
Oracle 12c r1 installation on solaris 11.1Oracle 12c r1 installation on solaris 11.1
Oracle 12c r1 installation on solaris 11.1Laurent Leturgez
 
Installing OpenStack Juno using RDO on RHEL
Installing OpenStack Juno using RDO on RHELInstalling OpenStack Juno using RDO on RHEL
Installing OpenStack Juno using RDO on RHELopenstackstl
 
Hdf installing-hdf
Hdf installing-hdfHdf installing-hdf
Hdf installing-hdfnmrrsc
 
OFY-2015-Cloud-In-A-Day
OFY-2015-Cloud-In-A-DayOFY-2015-Cloud-In-A-Day
OFY-2015-Cloud-In-A-Daykbshiv
 
Install Solaris 11.1 on a Virtualbox VM
Install Solaris 11.1 on a Virtualbox VMInstall Solaris 11.1 on a Virtualbox VM
Install Solaris 11.1 on a Virtualbox VMLaurent Leturgez
 
Openstack installation using rdo multi node
Openstack installation using rdo multi nodeOpenstack installation using rdo multi node
Openstack installation using rdo multi nodeNarasimha sreeram
 
MySQL Document Store
MySQL Document StoreMySQL Document Store
MySQL Document StoreI Goo Lee
 
Providence a kfiler12 and 13 upgrade
Providence a kfiler12 and 13 upgradeProvidence a kfiler12 and 13 upgrade
Providence a kfiler12 and 13 upgradeAccenture
 
Whitepaper MS SQL Server on Linux
Whitepaper MS SQL Server on LinuxWhitepaper MS SQL Server on Linux
Whitepaper MS SQL Server on LinuxRoger Eisentrager
 
了解Oracle rac brain split resolution
了解Oracle rac brain split resolution了解Oracle rac brain split resolution
了解Oracle rac brain split resolutionmaclean liu
 
How to assign unowned disk in the netapp cluster 8.3
How to assign unowned disk in the netapp cluster 8.3 How to assign unowned disk in the netapp cluster 8.3
How to assign unowned disk in the netapp cluster 8.3 Saroj Sahu
 
High Availability Server Clustering without ILB(Internal Load Balancer) (MEMO)
High Availability Server Clustering without ILB(Internal Load Balancer) (MEMO)High Availability Server Clustering without ILB(Internal Load Balancer) (MEMO)
High Availability Server Clustering without ILB(Internal Load Balancer) (MEMO)Naoto MATSUMOTO
 
Deleting a vserver in Netapp cluster mode
Deleting a vserver in Netapp cluster mode  Deleting a vserver in Netapp cluster mode
Deleting a vserver in Netapp cluster mode Saroj Sahu
 
MySQL Monitoring using Prometheus & Grafana
MySQL Monitoring using Prometheus & GrafanaMySQL Monitoring using Prometheus & Grafana
MySQL Monitoring using Prometheus & GrafanaYoungHeon (Roy) Kim
 
在Oel5上安装配置oracle gird control 10.2.0.5
在Oel5上安装配置oracle gird control 10.2.0.5在Oel5上安装配置oracle gird control 10.2.0.5
在Oel5上安装配置oracle gird control 10.2.0.5maclean liu
 

What's hot (20)

Query logging with proxysql
Query logging with proxysqlQuery logging with proxysql
Query logging with proxysql
 
Mysql56 replication
Mysql56 replicationMysql56 replication
Mysql56 replication
 
OSMC 2008 | Monitoring MySQL by Geert Vanderkelen
OSMC 2008 | Monitoring MySQL by Geert VanderkelenOSMC 2008 | Monitoring MySQL by Geert Vanderkelen
OSMC 2008 | Monitoring MySQL by Geert Vanderkelen
 
Oracle 12c r1 installation on solaris 11.1
Oracle 12c r1 installation on solaris 11.1Oracle 12c r1 installation on solaris 11.1
Oracle 12c r1 installation on solaris 11.1
 
Installing OpenStack Juno using RDO on RHEL
Installing OpenStack Juno using RDO on RHELInstalling OpenStack Juno using RDO on RHEL
Installing OpenStack Juno using RDO on RHEL
 
Hdf installing-hdf
Hdf installing-hdfHdf installing-hdf
Hdf installing-hdf
 
OFY-2015-Cloud-In-A-Day
OFY-2015-Cloud-In-A-DayOFY-2015-Cloud-In-A-Day
OFY-2015-Cloud-In-A-Day
 
Intalacion de owncloud
Intalacion de owncloudIntalacion de owncloud
Intalacion de owncloud
 
Install Solaris 11.1 on a Virtualbox VM
Install Solaris 11.1 on a Virtualbox VMInstall Solaris 11.1 on a Virtualbox VM
Install Solaris 11.1 on a Virtualbox VM
 
Openstack installation using rdo multi node
Openstack installation using rdo multi nodeOpenstack installation using rdo multi node
Openstack installation using rdo multi node
 
MySQL Document Store
MySQL Document StoreMySQL Document Store
MySQL Document Store
 
Providence a kfiler12 and 13 upgrade
Providence a kfiler12 and 13 upgradeProvidence a kfiler12 and 13 upgrade
Providence a kfiler12 and 13 upgrade
 
Whitepaper MS SQL Server on Linux
Whitepaper MS SQL Server on LinuxWhitepaper MS SQL Server on Linux
Whitepaper MS SQL Server on Linux
 
MySQLinsanity
MySQLinsanityMySQLinsanity
MySQLinsanity
 
了解Oracle rac brain split resolution
了解Oracle rac brain split resolution了解Oracle rac brain split resolution
了解Oracle rac brain split resolution
 
How to assign unowned disk in the netapp cluster 8.3
How to assign unowned disk in the netapp cluster 8.3 How to assign unowned disk in the netapp cluster 8.3
How to assign unowned disk in the netapp cluster 8.3
 
High Availability Server Clustering without ILB(Internal Load Balancer) (MEMO)
High Availability Server Clustering without ILB(Internal Load Balancer) (MEMO)High Availability Server Clustering without ILB(Internal Load Balancer) (MEMO)
High Availability Server Clustering without ILB(Internal Load Balancer) (MEMO)
 
Deleting a vserver in Netapp cluster mode
Deleting a vserver in Netapp cluster mode  Deleting a vserver in Netapp cluster mode
Deleting a vserver in Netapp cluster mode
 
MySQL Monitoring using Prometheus & Grafana
MySQL Monitoring using Prometheus & GrafanaMySQL Monitoring using Prometheus & Grafana
MySQL Monitoring using Prometheus & Grafana
 
在Oel5上安装配置oracle gird control 10.2.0.5
在Oel5上安装配置oracle gird control 10.2.0.5在Oel5上安装配置oracle gird control 10.2.0.5
在Oel5上安装配置oracle gird control 10.2.0.5
 

Viewers also liked

Fabric-让部署变得简单
Fabric-让部署变得简单Fabric-让部署变得简单
Fabric-让部署变得简单Eric Lo
 
Automation - fabric, django and more
Automation - fabric, django and moreAutomation - fabric, django and more
Automation - fabric, django and moreIlian Iliev
 
Fabric - a server management tool from Instagram
Fabric - a server management tool from InstagramFabric - a server management tool from Instagram
Fabric - a server management tool from InstagramJay Ren
 
Python Deployment with Fabric
Python Deployment with FabricPython Deployment with Fabric
Python Deployment with Fabricandymccurdy
 
Scaling mysql with python (and Docker).
Scaling mysql with python (and Docker).Scaling mysql with python (and Docker).
Scaling mysql with python (and Docker).Roberto Polli
 
Pythonic Deployment with Fabric 0.9
Pythonic Deployment with Fabric 0.9Pythonic Deployment with Fabric 0.9
Pythonic Deployment with Fabric 0.9Corey Oordt
 
Fabric, Cuisine and Watchdog for server administration in Python
Fabric, Cuisine and Watchdog for server administration in PythonFabric, Cuisine and Watchdog for server administration in Python
Fabric, Cuisine and Watchdog for server administration in PythonFFunction inc
 
Programa setmana cultural ac falla mocador
Programa setmana cultural ac falla mocadorPrograma setmana cultural ac falla mocador
Programa setmana cultural ac falla mocadorFalla El Mocador
 
Lecture 13 unemployment
Lecture 13 unemploymentLecture 13 unemployment
Lecture 13 unemploymentGale Pooley
 
Inatherm Company Profile
Inatherm Company ProfileInatherm Company Profile
Inatherm Company Profilewillemsikkers
 
Yana&qnar new year in rome
Yana&qnar new year in romeYana&qnar new year in rome
Yana&qnar new year in rome87honey
 
ProgettiAMO IL FUTURO IVG
ProgettiAMO IL FUTURO IVGProgettiAMO IL FUTURO IVG
ProgettiAMO IL FUTURO IVGFilippo Curti
 
clean tech Industry Analysis
clean tech Industry Analysisclean tech Industry Analysis
clean tech Industry AnalysisManvindra Singh
 

Viewers also liked (20)

Fabric (python)
Fabric (python)Fabric (python)
Fabric (python)
 
Fabric
FabricFabric
Fabric
 
Fabric-让部署变得简单
Fabric-让部署变得简单Fabric-让部署变得简单
Fabric-让部署变得简单
 
fabfile.py
fabfile.pyfabfile.py
fabfile.py
 
Automation - fabric, django and more
Automation - fabric, django and moreAutomation - fabric, django and more
Automation - fabric, django and more
 
Fabric - a server management tool from Instagram
Fabric - a server management tool from InstagramFabric - a server management tool from Instagram
Fabric - a server management tool from Instagram
 
DevOps with Fabric
DevOps with FabricDevOps with Fabric
DevOps with Fabric
 
Python Deployment with Fabric
Python Deployment with FabricPython Deployment with Fabric
Python Deployment with Fabric
 
Scaling mysql with python (and Docker).
Scaling mysql with python (and Docker).Scaling mysql with python (and Docker).
Scaling mysql with python (and Docker).
 
Pythonic Deployment with Fabric 0.9
Pythonic Deployment with Fabric 0.9Pythonic Deployment with Fabric 0.9
Pythonic Deployment with Fabric 0.9
 
Fabric
FabricFabric
Fabric
 
Fabric, Cuisine and Watchdog for server administration in Python
Fabric, Cuisine and Watchdog for server administration in PythonFabric, Cuisine and Watchdog for server administration in Python
Fabric, Cuisine and Watchdog for server administration in Python
 
Programa setmana cultural ac falla mocador
Programa setmana cultural ac falla mocadorPrograma setmana cultural ac falla mocador
Programa setmana cultural ac falla mocador
 
Lecture 13 unemployment
Lecture 13 unemploymentLecture 13 unemployment
Lecture 13 unemployment
 
Natsumesoseki kokoro
Natsumesoseki kokoroNatsumesoseki kokoro
Natsumesoseki kokoro
 
Inatherm Company Profile
Inatherm Company ProfileInatherm Company Profile
Inatherm Company Profile
 
Skepsis2012
Skepsis2012Skepsis2012
Skepsis2012
 
Yana&qnar new year in rome
Yana&qnar new year in romeYana&qnar new year in rome
Yana&qnar new year in rome
 
ProgettiAMO IL FUTURO IVG
ProgettiAMO IL FUTURO IVGProgettiAMO IL FUTURO IVG
ProgettiAMO IL FUTURO IVG
 
clean tech Industry Analysis
clean tech Industry Analysisclean tech Industry Analysis
clean tech Industry Analysis
 

Similar to Lab 1 my sql tutorial

ProxySQL & PXC(Query routing and Failover Test)
ProxySQL & PXC(Query routing and Failover Test)ProxySQL & PXC(Query routing and Failover Test)
ProxySQL & PXC(Query routing and Failover Test)YoungHeon (Roy) Kim
 
MySQL 5.7 innodb_enhance_partii_20160527
MySQL 5.7 innodb_enhance_partii_20160527MySQL 5.7 innodb_enhance_partii_20160527
MySQL 5.7 innodb_enhance_partii_20160527Saewoong Lee
 
Vagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptopVagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptopLorin Hochstein
 
See what happened with real time kvm when building real time cloud pezhang@re...
See what happened with real time kvm when building real time cloud pezhang@re...See what happened with real time kvm when building real time cloud pezhang@re...
See what happened with real time kvm when building real time cloud pezhang@re...LinuxCon ContainerCon CloudOpen China
 
TrinityCore server install guide
TrinityCore server install guideTrinityCore server install guide
TrinityCore server install guideSeungmin Shin
 
Basic Knowledge on MySql Replication
Basic Knowledge on MySql ReplicationBasic Knowledge on MySql Replication
Basic Knowledge on MySql ReplicationTasawr Interactive
 
How to deploy docker container inside ikoula's cloud
How to deploy docker container inside ikoula's cloudHow to deploy docker container inside ikoula's cloud
How to deploy docker container inside ikoula's cloudNicolas Trauwaen
 
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0Yury Velikanov
 
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...ginniapps
 
Drizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free MigrationDrizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free MigrationAndrew Hutchings
 
Vbox virtual box在oracle linux 5 - shoug 梁洪响
Vbox virtual box在oracle linux 5 - shoug 梁洪响Vbox virtual box在oracle linux 5 - shoug 梁洪响
Vbox virtual box在oracle linux 5 - shoug 梁洪响maclean liu
 
Bpug mcollective 20140624
Bpug mcollective 20140624Bpug mcollective 20140624
Bpug mcollective 20140624Johan De Wit
 
MySQL 8.0.18 - New Features Summary
MySQL 8.0.18 - New Features SummaryMySQL 8.0.18 - New Features Summary
MySQL 8.0.18 - New Features SummaryOlivier DASINI
 
Couch to OpenStack: Neutron (Quantum) - August 13, 2013 Featuring Sean Winn
Couch to OpenStack: Neutron (Quantum) - August 13, 2013 Featuring Sean WinnCouch to OpenStack: Neutron (Quantum) - August 13, 2013 Featuring Sean Winn
Couch to OpenStack: Neutron (Quantum) - August 13, 2013 Featuring Sean WinnTrevor Roberts Jr.
 
Advanced percona xtra db cluster in a nutshell... la suite plsc2016
Advanced percona xtra db cluster in a nutshell... la suite plsc2016Advanced percona xtra db cluster in a nutshell... la suite plsc2016
Advanced percona xtra db cluster in a nutshell... la suite plsc2016Frederic Descamps
 
Couch to OpenStack: Nova - July, 30, 2013
Couch to OpenStack: Nova - July, 30, 2013Couch to OpenStack: Nova - July, 30, 2013
Couch to OpenStack: Nova - July, 30, 2013Trevor Roberts Jr.
 
MySQL Performance Schema in 20 Minutes
 MySQL Performance Schema in 20 Minutes MySQL Performance Schema in 20 Minutes
MySQL Performance Schema in 20 MinutesSveta Smirnova
 

Similar to Lab 1 my sql tutorial (20)

ProxySQL & PXC(Query routing and Failover Test)
ProxySQL & PXC(Query routing and Failover Test)ProxySQL & PXC(Query routing and Failover Test)
ProxySQL & PXC(Query routing and Failover Test)
 
MySQL 5.7 innodb_enhance_partii_20160527
MySQL 5.7 innodb_enhance_partii_20160527MySQL 5.7 innodb_enhance_partii_20160527
MySQL 5.7 innodb_enhance_partii_20160527
 
Instalar MySQL CentOS
Instalar MySQL CentOSInstalar MySQL CentOS
Instalar MySQL CentOS
 
Vagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptopVagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptop
 
See what happened with real time kvm when building real time cloud pezhang@re...
See what happened with real time kvm when building real time cloud pezhang@re...See what happened with real time kvm when building real time cloud pezhang@re...
See what happened with real time kvm when building real time cloud pezhang@re...
 
TrinityCore server install guide
TrinityCore server install guideTrinityCore server install guide
TrinityCore server install guide
 
Curso de MySQL 5.7
Curso de MySQL 5.7Curso de MySQL 5.7
Curso de MySQL 5.7
 
Basic Knowledge on MySql Replication
Basic Knowledge on MySql ReplicationBasic Knowledge on MySql Replication
Basic Knowledge on MySql Replication
 
How to deploy docker container inside ikoula's cloud
How to deploy docker container inside ikoula's cloudHow to deploy docker container inside ikoula's cloud
How to deploy docker container inside ikoula's cloud
 
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
 
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...
 
Drizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free MigrationDrizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free Migration
 
Operation outbreak
Operation outbreakOperation outbreak
Operation outbreak
 
Vbox virtual box在oracle linux 5 - shoug 梁洪响
Vbox virtual box在oracle linux 5 - shoug 梁洪响Vbox virtual box在oracle linux 5 - shoug 梁洪响
Vbox virtual box在oracle linux 5 - shoug 梁洪响
 
Bpug mcollective 20140624
Bpug mcollective 20140624Bpug mcollective 20140624
Bpug mcollective 20140624
 
MySQL 8.0.18 - New Features Summary
MySQL 8.0.18 - New Features SummaryMySQL 8.0.18 - New Features Summary
MySQL 8.0.18 - New Features Summary
 
Couch to OpenStack: Neutron (Quantum) - August 13, 2013 Featuring Sean Winn
Couch to OpenStack: Neutron (Quantum) - August 13, 2013 Featuring Sean WinnCouch to OpenStack: Neutron (Quantum) - August 13, 2013 Featuring Sean Winn
Couch to OpenStack: Neutron (Quantum) - August 13, 2013 Featuring Sean Winn
 
Advanced percona xtra db cluster in a nutshell... la suite plsc2016
Advanced percona xtra db cluster in a nutshell... la suite plsc2016Advanced percona xtra db cluster in a nutshell... la suite plsc2016
Advanced percona xtra db cluster in a nutshell... la suite plsc2016
 
Couch to OpenStack: Nova - July, 30, 2013
Couch to OpenStack: Nova - July, 30, 2013Couch to OpenStack: Nova - July, 30, 2013
Couch to OpenStack: Nova - July, 30, 2013
 
MySQL Performance Schema in 20 Minutes
 MySQL Performance Schema in 20 Minutes MySQL Performance Schema in 20 Minutes
MySQL Performance Schema in 20 Minutes
 

Recently uploaded

Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....kzayra69
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Velvetech LLC
 
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)jennyeacort
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanyChristoph Pohl
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Hr365.us smith
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作qr0udbr0
 

Recently uploaded (20)

Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...
 
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作
 

Lab 1 my sql tutorial

  • 1. ****************************************************** MySQL Tutorial (1) autor: manuel.contreras@oracle.com Actualización: Noviembre 13, 2014 ****************************************************** Pre-requisitos: Aprovisionamiento de entorno Virtual 1) Descargar e Instalar MySQL Vagrant https://www.vagrantup.com/downloads.html 2) Descargar box Oracle Linux 6.5 vagrant box add oel65-64 https://storage.us2.oraclecloud.com/v1/istoilis-istoilis/vagrant/oel65-64.box 3) Inicializar VM instance vagrant init oel65-64 4) Ingresar a consola: vagrant ssh Una vez instalado la maquina virtual con Oracle Linux, continuar con la instalación de: – MySQL Fabric Controller, MySQL Server version 5.6.10 ó superior. – MySQL Utilities ( mysqlfabric 1.5.2 ) requiere Python 2.6 ó superior ) & Connector/Python 2.0 ó superior. Para descargar binarios en: edelivery.oracle.com ( Registro Trial 30 días ) o bien http://dev.mysql.com/downloads/ ( Binarios GPL ) ************************** Laboratorio 1 ***************************** Instalación MySQL Server 5.6.10+ & MySQL Fabric 1.5 ************************************************************************* 1. Instalar MySQL Enterprise Server 5.6.19+ Remover MySQL Community Server sudo rpm -qa|grep mysql sudo rpm -e --nodeps mysql-libs-5.1.71-1.el6.x86_64
  • 2. Una vez removido MySQL Community & Libs, continuar instalando MySQL Enterprise 5.6.10 ó superior sudo rpm -Uvh MySQL-server-advanced-5.6.19-1.el6.x86_64.rpm sudo rpm -Uvh MySQL-client-advanced-5.6.19-1.el6.x86_64.rpm sudo chown -R mysql:mysql /var/lib/mysql/ sudo passwd mysql *** Nota.- Asignar password oracle sudo /etc/init.d/mysql start Nota.- visualizar el password asignado por default para root MySQL sudo cat /root/.mysql_secret mysql -uroot -p Enter password: Nota.- ingresar password indicando en el archivo /root/.mysql_secret mysql>show schemas; Nota.- debe mostrar únicamente los schemas de sistema: information_schema, mysql, performance_schema sudo mysql_secure_installation Nota.- Asignar password oracle 2. Instalar MySQL Python Connector sudo rpm -Uvh mysql-connector-python-2.0.1-1.el6.noarch 3. Instalar MySQL Utilities ( Fabric 1.5 ) sudo rpm -Uvh mysql-utilities-commercial-1.5.2-1.el6.noarch.rpm sudo rpm -Uvh mysql-utilities-commercial-extra-1.5.2-1.el6.noarch.rpm sudo vi /etc/mysql/fabric.cfg Nota.- asignar password oracle en todas la lineas que requiera “password” ************************** Laboratorio 2 ***************************** Configuración MySQL Fabric 1.5 ************************************************************************* 1. Configuración Privilegios MySQL Fabric mysql>GRANT ALL ON fabric.* TO 'fabric'@'localhost' identified by 'oracle'; mysql>GRANT ALL ON *.* TO 'fabric'@'localhost' identified by 'oracle' with grant option; mysql>flush privileges;
  • 3. 2. Configurar Backing Store Tables su – mysql mysqlfabric manage setup [INFO] 1414161265.564337 - MainThread - Initializing persister: user (fabric), server (localhost:3306), database (fabric). [INFO] 1414161266.288218 - MainThread - Initial password for admin/mysql set Password set for admin/mysql from configuration file. [INFO] 1414161266.291762 - MainThread - Password set for admin/mysql from configuration file. [INFO] 1414161266.292421 - MainThread - Initial password for admin/xmlrpc set Password set for admin/xmlrpc from configuration file. [INFO] 1414161266.295928 - MainThread - Password set for admin/xmlrpc from configuration file. Nota.- el comando anterior, crea el schema fabric en el nodo State Store ( Fabric Controller ) Verificar que el schema fabric aparece con el siguiente comando: mysql -uroot -p -e "show schemas;" Enter password: +--------------------+ | Database | +--------------------+ | information_schema | | fabric | | mysql | | performance_schema | | test | +--------------------+
  • 4. 3. Iniciar servicio de Fabric Controller: nohup mysqlfabric manage start & cat nohup.out [INFO] 1414161186.229210 - MainThread - Initializing persister: user (fabric), server (localhost:3306), database (fabric). Error: Invalid database connection. [INFO] 1414161201.063115 - MainThread - Initializing persister: user (fabric), server (localhost:3306), database (fabric). Error: Invalid database connection. [INFO] 1414161303.457295 - MainThread - Initializing persister: user (fabric), server (localhost:3306), database (fabric). [INFO] 1414161303.465428 - MainThread - Loading Services. [INFO] 1414161303.478065 - MainThread - MySQL-RPC protocol server started, listening on localhost:32275 [INFO] 1414161303.491165 - MainThread - Fabric node starting. [INFO] 1414161303.494004 - MainThread - Starting Executor. [INFO] 1414161303.494116 - MainThread - Setting 5 executor(s). [INFO] 1414161303.494521 - Executor-0 - Started. [INFO] 1414161303.495578 - Executor-1 - Started. [INFO] 1414161303.497107 - Executor-2 - Started. [INFO] 1414161303.498405 - Executor-3 - Started. [INFO] 1414161303.501844 - Executor-4 - Started. [INFO] 1414161303.502936 - MainThread - Executor started. [INFO] 1414161303.510773 - MainThread - Starting failure detector. [INFO] 1414161303.512187 - XML-RPC-Server - XML-RPC protocol server ('127.0.0.1', 32274) started. [INFO] 1414161303.512884 - XML-RPC-Server - Setting 1 XML-RPC session(s). [INFO] 1414161303.513301 - XML-RPC-Session-0 - Started XML-RPC-Session. mysqlfabric manage ping Fabric UUID: 5ca1ab1e-a007-feed-f00d-cab3fe13249e Time-To-Live: 1 Success (empty result set) Nota.- debe retornar success 4.- Crear grupo MySQL Fabric mysqlfabric group create groupTest Fabric UUID: 5ca1ab1e-a007-feed-f00d-cab3fe13249e Time-To-Live: 1 uuid finished success result ------------------------------------ -------- ------- ------ 1fe8a135-fda9-4b9b-be0f-061f51e1793c 1 1 1 state success when description ----- ------- ------------- ------------------------------------------------------------- 3 2 1.41416e+09 Triggered by <mysql.fabric.events.Event object at 0x12f6190>.
  • 5. 4 2 1.41416e+09 Executing action (_create_group). 5 2 1.41416e+09 Executed action (_create_group). mysqlfabric group lookup_groups Fabric UUID: 5ca1ab1e-a007-feed-f00d-cab3fe13249e Time-To-Live: 1 group_id description failure_detector master_uuid ----------- ----------- ---------------- ------------------------------------ groupTest None 0 None En este punto, no hay servers asociados al grupo
  • 6. 4.- Agregar nodos a Grupo Antes de agregar nodos, el nodo debe cumplir con: – Tener instalado MySQL 5.6.10 ó superior Usuario fabric mysql>GRANT ALL ON fabric.* TO 'fabric'@'localhost' identified by 'oracle'; mysql -uroot -p -S /tmy. mysql>GRANT ALL ON *.* TO 'fabric'@'localhost' identified by 'oracle' with grant option; mysql>flush privileges; b) Contener un Server UUID único $DATDIR/auto.cnf Importante.- el Serer UUID, debe ser un valor único para cada server mysqlfabric group add groupTest localhost:1300 mysqlfabric group add groupTest localhost:1301 mysqlfabric group lookup_servers groupTest mysqlfabric group health groupTest mysqlfabric group promote groupTest mysqlfabric group lookup_servers groupTest mysqlfabric group activate ha_group_nombre