SlideShare a Scribd company logo
****************************************************** 
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 (20)

PPTX
Query logging with proxysql
YoungHeon (Roy) Kim
 
PDF
Mysql56 replication
Chris Makayal
 
PDF
OSMC 2008 | Monitoring MySQL by Geert Vanderkelen
NETWAYS
 
PDF
Oracle 12c r1 installation on solaris 11.1
Laurent Leturgez
 
PPTX
Installing OpenStack Juno using RDO on RHEL
openstackstl
 
PDF
Hdf installing-hdf
nmrrsc
 
PPTX
OFY-2015-Cloud-In-A-Day
kbshiv
 
TXT
Intalacion de owncloud
Fredy Ntn Bautista
 
PDF
Install Solaris 11.1 on a Virtualbox VM
Laurent Leturgez
 
PDF
Openstack installation using rdo multi node
Narasimha sreeram
 
PDF
MySQL Document Store
I Goo Lee
 
DOCX
Providence a kfiler12 and 13 upgrade
Accenture
 
PDF
Whitepaper MS SQL Server on Linux
Roger Eisentrager
 
PPTX
MySQLinsanity
Stanley Huang
 
PDF
了解Oracle rac brain split resolution
maclean liu
 
DOCX
How to assign unowned disk in the netapp cluster 8.3
Saroj Sahu
 
PPTX
High Availability Server Clustering without ILB(Internal Load Balancer) (MEMO)
Naoto MATSUMOTO
 
PPTX
Deleting a vserver in Netapp cluster mode
Saroj Sahu
 
PPTX
MySQL Monitoring using Prometheus & Grafana
YoungHeon (Roy) Kim
 
PDF
在Oel5上安装配置oracle gird control 10.2.0.5
maclean liu
 
Query logging with proxysql
YoungHeon (Roy) Kim
 
Mysql56 replication
Chris Makayal
 
OSMC 2008 | Monitoring MySQL by Geert Vanderkelen
NETWAYS
 
Oracle 12c r1 installation on solaris 11.1
Laurent Leturgez
 
Installing OpenStack Juno using RDO on RHEL
openstackstl
 
Hdf installing-hdf
nmrrsc
 
OFY-2015-Cloud-In-A-Day
kbshiv
 
Intalacion de owncloud
Fredy Ntn Bautista
 
Install Solaris 11.1 on a Virtualbox VM
Laurent Leturgez
 
Openstack installation using rdo multi node
Narasimha sreeram
 
MySQL Document Store
I Goo Lee
 
Providence a kfiler12 and 13 upgrade
Accenture
 
Whitepaper MS SQL Server on Linux
Roger Eisentrager
 
MySQLinsanity
Stanley Huang
 
了解Oracle rac brain split resolution
maclean liu
 
How to assign unowned disk in the netapp cluster 8.3
Saroj Sahu
 
High Availability Server Clustering without ILB(Internal Load Balancer) (MEMO)
Naoto MATSUMOTO
 
Deleting a vserver in Netapp cluster mode
Saroj Sahu
 
MySQL Monitoring using Prometheus & Grafana
YoungHeon (Roy) Kim
 
在Oel5上安装配置oracle gird control 10.2.0.5
maclean liu
 

Viewers also liked (20)

ODP
Fabric (python)
Fanani M. Ihsan
 
PDF
Fabric
Joe_noh
 
PDF
Fabric-让部署变得简单
Eric Lo
 
TXT
fabfile.py
Corey Oordt
 
PDF
Automation - fabric, django and more
Ilian Iliev
 
PDF
Fabric - a server management tool from Instagram
Jay Ren
 
PPTX
DevOps with Fabric
Simone Federici
 
PPT
Python Deployment with Fabric
andymccurdy
 
PDF
Scaling mysql with python (and Docker).
Roberto Polli
 
PDF
Pythonic Deployment with Fabric 0.9
Corey Oordt
 
PPT
Fabric
Calvin Cheng
 
PDF
Fabric, Cuisine and Watchdog for server administration in Python
FFunction inc
 
PDF
Programa setmana cultural ac falla mocador
Falla El Mocador
 
PDF
Lecture 13 unemployment
Gale Pooley
 
PDF
Natsumesoseki kokoro
JunichiTaniguchi
 
PPTX
Inatherm Company Profile
willemsikkers
 
PPT
Skepsis2012
Maarten Koller
 
PPT
Yana&qnar new year in rome
87honey
 
PPT
ProgettiAMO IL FUTURO IVG
Filippo Curti
 
PDF
clean tech Industry Analysis
Manvindra Singh
 
Fabric (python)
Fanani M. Ihsan
 
Fabric
Joe_noh
 
Fabric-让部署变得简单
Eric Lo
 
fabfile.py
Corey Oordt
 
Automation - fabric, django and more
Ilian Iliev
 
Fabric - a server management tool from Instagram
Jay Ren
 
DevOps with Fabric
Simone Federici
 
Python Deployment with Fabric
andymccurdy
 
Scaling mysql with python (and Docker).
Roberto Polli
 
Pythonic Deployment with Fabric 0.9
Corey Oordt
 
Fabric
Calvin Cheng
 
Fabric, Cuisine and Watchdog for server administration in Python
FFunction inc
 
Programa setmana cultural ac falla mocador
Falla El Mocador
 
Lecture 13 unemployment
Gale Pooley
 
Natsumesoseki kokoro
JunichiTaniguchi
 
Inatherm Company Profile
willemsikkers
 
Skepsis2012
Maarten Koller
 
Yana&qnar new year in rome
87honey
 
ProgettiAMO IL FUTURO IVG
Filippo Curti
 
clean tech Industry Analysis
Manvindra Singh
 
Ad

Similar to Lab 1 my sql tutorial (20)

PDF
MySQL Fabric Tutorial, October 2014
Lars Thalmann
 
PDF
My sql fabric webinar v1.1
Ricky Setyawan
 
PDF
My sql fabric ha and sharding solutions
Louis liu
 
PDF
Orchestrating MySQL with Python and Docker
Roberto Polli
 
PDF
My sql fabric webinar tw2
Ivan Tu
 
PDF
MySQL Webinar 2/4 Performance tuning, hardware, optimisation
Mark Swarbrick
 
PDF
MySQL Fabric: Easy Management of MySQL Servers
Mats Kindahl
 
DOCX
Multiple instances second method
Vasudeva Rao
 
PDF
MySQL Spider Architecture
I Goo Lee
 
PDF
Sharding and Scale-out using MySQL Fabric
Mats Kindahl
 
PDF
Highly Available MySQL/PHP Applications with mysqlnd
Jervin Real
 
PPTX
MySQL London Tech Tour March 2015 - MySQL Fabric
Mark Swarbrick
 
PDF
Elastic Scalability in MySQL Fabric Using OpenStack
Mats Kindahl
 
PDF
MySQL Fabric
Mark Swarbrick
 
PDF
Scaling MySQL -- Swanseacon.co.uk
Dave Stokes
 
PDF
MySQL for Beginners - part 1
Ivan Zoratti
 
PDF
MySQL in your laptop
Giuseppe Maxia
 
PPT
Scaling MySQL using Fabric
Karthik .P.R
 
PPT
Scaling MySQL Using Fabric
Remote MySQL DBA
 
PPTX
Scalability at GROU.PS
esokullu
 
MySQL Fabric Tutorial, October 2014
Lars Thalmann
 
My sql fabric webinar v1.1
Ricky Setyawan
 
My sql fabric ha and sharding solutions
Louis liu
 
Orchestrating MySQL with Python and Docker
Roberto Polli
 
My sql fabric webinar tw2
Ivan Tu
 
MySQL Webinar 2/4 Performance tuning, hardware, optimisation
Mark Swarbrick
 
MySQL Fabric: Easy Management of MySQL Servers
Mats Kindahl
 
Multiple instances second method
Vasudeva Rao
 
MySQL Spider Architecture
I Goo Lee
 
Sharding and Scale-out using MySQL Fabric
Mats Kindahl
 
Highly Available MySQL/PHP Applications with mysqlnd
Jervin Real
 
MySQL London Tech Tour March 2015 - MySQL Fabric
Mark Swarbrick
 
Elastic Scalability in MySQL Fabric Using OpenStack
Mats Kindahl
 
MySQL Fabric
Mark Swarbrick
 
Scaling MySQL -- Swanseacon.co.uk
Dave Stokes
 
MySQL for Beginners - part 1
Ivan Zoratti
 
MySQL in your laptop
Giuseppe Maxia
 
Scaling MySQL using Fabric
Karthik .P.R
 
Scaling MySQL Using Fabric
Remote MySQL DBA
 
Scalability at GROU.PS
esokullu
 
Ad

Recently uploaded (20)

PPTX
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
PDF
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
PDF
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
PPTX
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
PDF
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
PPTX
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
PPTX
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
PPTX
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
PDF
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
PDF
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
PDF
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
PDF
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
PDF
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
PDF
Top Agile Project Management Tools for Teams in 2025
Orangescrum
 
PDF
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
PDF
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
PDF
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
PDF
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
Empower Your Tech Vision- Why Businesses Prefer to Hire Remote Developers fro...
logixshapers59
 
Top Agile Project Management Tools for Teams in 2025
Orangescrum
 
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 

Lab 1 my sql tutorial

  • 1. ****************************************************** MySQL Tutorial (1) autor: [email protected] 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