SlideShare ist ein Scribd-Unternehmen logo
1 von 18
Downloaden Sie, um offline zu lesen
MySQL em 10 minutos
como instalar o MySQL em 10 minutos


                  HTI Consultoria e Tecnologia
                      Alexandre M de Almeida

                                www.hti.com.br
                          alexandre@hti.com.br
Objetivo
•  Fazer uma instalação simples e rápida
•  Reforçar dicas importantes na instalação
Antes de tudo…
•    Qual o tipo de aplicação?
•    Banco de dados OLTP ou OLAP?
•    Storage Engines?
•    Processamento
•    Memória
•    Discos, ah sim, discos
Pacotes
•    Source (fonte)
•    Distro (yum, apt-get, urpmi, etc)
•    RPM
•    Binário
     –  RedHat, Linux Generic*, Solaris
     –  MacOS, Suse, FreeBSD
     –  Uindols
Por que eu prefiro binários?
•  Preguiça de compilar ;-)
•  Não sei usar as melhores opções
•  Não se tenho as bibliotecas:
   –  mais atualizadas
   –  compatíveis entre si (versões)
•  É mais rápido (install e performance)
•  Permite mais threads estáveis
•  Binários de melhor qualidade
Primeiro Passo
•  Antes de disparar o cronômetro…
•  Consiga seu binário (tar.gz)

[root@daredevil ~]# cd /usr/local/
[root@daredevil local]# wget http://dev.mysql.com/get/Downloads/MySQL-5.5/
mysql-5.5.17-linux2.6-x86_64.tar.gz/from/http://ftp.gwdg.de/pub/misc/mysql/
1. Descompactar
•  tar (10s + tempo para lembrar como usar)
•  /usr/local ou /opt

[root@daredevil local]# time tar -zxvf mysql-5.5.17-linux2.6-x86_64.tar.gz
mysql-5.5.17-linux2.6-x86_64/support-files/ndb-config-2-node.ini
mysql-5.5.17-linux2.6-x86_64/support-files/magic
mysql-5.5.17-linux2.6-x86_64/support-files/my-innodb-heavy-4G.cnf
…
real      0m10.165s
user      0m6.305s
sys       0m4.350s
2. Usuário e Grupo
•  Usuário de sistema do mysqld
•  10 segundos (20 se for no escuro)

[root@daredevil local]# useradd mysql
3. Diretórios
•    /var/lib/mysql (normalmente é o default)
•    Um para dados outro para logs
•    Ideal discos diferentes (depende do HW)
•    10 segundos?

[root@daredevil local]# mkdir /dados
[root@daredevil local]# mkdir /logs
4. Link Simbólico
•  Facilita na criação de PATHS
•  E ajuda num eventual upgrade de versão
•  0.05 segundos

[root@daredevil local]# ln -s mysql-5.5.17-linux2.6-x86_64/ mysql
5. Personalização
•     Não é necessário à defaults
•     SepararDados & Logs à Back up Raw
•     3 minutos no máximo

[root@daredevil local]# vi /etc/my.cnf

[mysqld]
  server-id = 100
  port     = 3306
  user     = mysql
  socket = /logs/mysql.sock
  datadir = /dados
  basedir = /usr/local/mysql
  log-error = /logs/errorlog.err
  log-bin = /logs/binlog
  relay-log = /logs/relaylog
  pid-file = /logs/mysqld.pid

[client]
  port   = 3306
  socket = /logs/mysql.sock
6. Permissões
•  Usuário mysql deve reinar (e só ele)

[root@daredevil local]# chown -R mysql: /dados
[root@daredevil local]# chown -R mysql: /logs
[root@daredevil local]# chmod -R 770 /dados
[root@daredevil local]# chmod -R 770 /logs
7. Sistema de Dados
•  Script prepara o datadir e logs

[root@daredevil local]# cd /usr/local/mysql
[root@daredevil mysql]# scripts/mysql_install_db
Installing MySQL system tables...
OK
Filling help tables...
OK

…
8. Subir o servidor
•  Manual à mysqld_safe
•  Automático à mysql.server

[root@daredevil mysql]# bin/mysqld_safe &
111027 15:48:44 mysqld_safe Logging to '/logs/errorlog.err'.
111027 15:48:44 mysqld_safe Starting mysqld daemon with databases from /dados
9. Mínimo Segurança
•  Script: mysql_secure_installation
  –  Senha para root (renomear é o ideal)
  –  Elimina acesso de qq host (%)
  –  Elimina acesso convidado (anônimo)
  –  “Dropa” banco de dados test
10. Pronto para uso
•  Fala sério… 6min 38seg
•  Ajuste o PATH como requerido
[root@daredevil local]# export PATH=$PATH:/usr/local/mysql/bin

[root@daredevil local]# mysql –uroot –p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 2
Server version: 5.5.17-log MySQL Community Server (GPL)

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.

mysql>
Ufa!


Perguntas & Respostas
 (Atenção! Tomates não são permitidos)
Obrigado!

Weitere ähnliche Inhalte

Was ist angesagt?

Linux Binary Exploitation - Heap Exploitation
Linux Binary Exploitation - Heap Exploitation Linux Binary Exploitation - Heap Exploitation
Linux Binary Exploitation - Heap Exploitation Angel Boy
 
01 ip oc180 e1_1 zxr10 m6000_t8000 basic operation (v1.00.20)
01 ip oc180 e1_1 zxr10 m6000_t8000 basic operation (v1.00.20)01 ip oc180 e1_1 zxr10 m6000_t8000 basic operation (v1.00.20)
01 ip oc180 e1_1 zxr10 m6000_t8000 basic operation (v1.00.20)legasu zemene
 
Binary exploitation - AIS3
Binary exploitation - AIS3Binary exploitation - AIS3
Binary exploitation - AIS3Angel Boy
 
MySQL Parallel Replication (LOGICAL_CLOCK): all the 5.7 (and some of the 8.0)...
MySQL Parallel Replication (LOGICAL_CLOCK): all the 5.7 (and some of the 8.0)...MySQL Parallel Replication (LOGICAL_CLOCK): all the 5.7 (and some of the 8.0)...
MySQL Parallel Replication (LOGICAL_CLOCK): all the 5.7 (and some of the 8.0)...Jean-François Gagné
 
InnoDB MVCC Architecture (by 권건우)
InnoDB MVCC Architecture (by 권건우)InnoDB MVCC Architecture (by 권건우)
InnoDB MVCC Architecture (by 권건우)I Goo Lee.
 
Redo log improvements MYSQL 8.0
Redo log improvements MYSQL 8.0Redo log improvements MYSQL 8.0
Redo log improvements MYSQL 8.0Mydbops
 
Intro ProxySQL
Intro ProxySQLIntro ProxySQL
Intro ProxySQLI Goo Lee
 
知って『得』する! Hinemos活用術 ver.OSC2015 Tokyo/Fall
知って『得』する! Hinemos活用術 ver.OSC2015 Tokyo/Fall知って『得』する! Hinemos活用術 ver.OSC2015 Tokyo/Fall
知って『得』する! Hinemos活用術 ver.OSC2015 Tokyo/Fallhinemos_atomitech
 
Sigreturn Oriented Programming
Sigreturn Oriented ProgrammingSigreturn Oriented Programming
Sigreturn Oriented ProgrammingAngel Boy
 
Juniper JNCIA – Juniper RIP and OSPF Route Configuration
Juniper JNCIA – Juniper RIP and OSPF Route ConfigurationJuniper JNCIA – Juniper RIP and OSPF Route Configuration
Juniper JNCIA – Juniper RIP and OSPF Route ConfigurationHamed Moghaddam
 
Keepalived+MaxScale+MariaDB_운영매뉴얼_1.0.docx
Keepalived+MaxScale+MariaDB_운영매뉴얼_1.0.docxKeepalived+MaxScale+MariaDB_운영매뉴얼_1.0.docx
Keepalived+MaxScale+MariaDB_운영매뉴얼_1.0.docxNeoClova
 
JUNOS - Monitoring and Troubleshooting
JUNOS - Monitoring and TroubleshootingJUNOS - Monitoring and Troubleshooting
JUNOS - Monitoring and TroubleshootingZenith Networks
 
MySQL Optimizer Overview
MySQL Optimizer OverviewMySQL Optimizer Overview
MySQL Optimizer OverviewOlav Sandstå
 
MySQL_MariaDB-성능개선-202201.pptx
MySQL_MariaDB-성능개선-202201.pptxMySQL_MariaDB-성능개선-202201.pptx
MySQL_MariaDB-성능개선-202201.pptxNeoClova
 
MariaDB MaxScale monitor 매뉴얼
MariaDB MaxScale monitor 매뉴얼MariaDB MaxScale monitor 매뉴얼
MariaDB MaxScale monitor 매뉴얼NeoClova
 
[오픈소스컨설팅]Day #2 MySQL Tuning, Replication, Cluster
[오픈소스컨설팅]Day #2 MySQL Tuning, Replication, Cluster[오픈소스컨설팅]Day #2 MySQL Tuning, Replication, Cluster
[오픈소스컨설팅]Day #2 MySQL Tuning, Replication, ClusterJi-Woong Choi
 
MySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELKMySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELKYoungHeon (Roy) Kim
 

Was ist angesagt? (20)

Linux Binary Exploitation - Heap Exploitation
Linux Binary Exploitation - Heap Exploitation Linux Binary Exploitation - Heap Exploitation
Linux Binary Exploitation - Heap Exploitation
 
01 ip oc180 e1_1 zxr10 m6000_t8000 basic operation (v1.00.20)
01 ip oc180 e1_1 zxr10 m6000_t8000 basic operation (v1.00.20)01 ip oc180 e1_1 zxr10 m6000_t8000 basic operation (v1.00.20)
01 ip oc180 e1_1 zxr10 m6000_t8000 basic operation (v1.00.20)
 
Binary exploitation - AIS3
Binary exploitation - AIS3Binary exploitation - AIS3
Binary exploitation - AIS3
 
MySQL Parallel Replication (LOGICAL_CLOCK): all the 5.7 (and some of the 8.0)...
MySQL Parallel Replication (LOGICAL_CLOCK): all the 5.7 (and some of the 8.0)...MySQL Parallel Replication (LOGICAL_CLOCK): all the 5.7 (and some of the 8.0)...
MySQL Parallel Replication (LOGICAL_CLOCK): all the 5.7 (and some of the 8.0)...
 
InnoDB MVCC Architecture (by 권건우)
InnoDB MVCC Architecture (by 권건우)InnoDB MVCC Architecture (by 권건우)
InnoDB MVCC Architecture (by 권건우)
 
Redo log improvements MYSQL 8.0
Redo log improvements MYSQL 8.0Redo log improvements MYSQL 8.0
Redo log improvements MYSQL 8.0
 
Intro ProxySQL
Intro ProxySQLIntro ProxySQL
Intro ProxySQL
 
知って『得』する! Hinemos活用術 ver.OSC2015 Tokyo/Fall
知って『得』する! Hinemos活用術 ver.OSC2015 Tokyo/Fall知って『得』する! Hinemos活用術 ver.OSC2015 Tokyo/Fall
知って『得』する! Hinemos活用術 ver.OSC2015 Tokyo/Fall
 
Sigreturn Oriented Programming
Sigreturn Oriented ProgrammingSigreturn Oriented Programming
Sigreturn Oriented Programming
 
Juniper JNCIA – Juniper RIP and OSPF Route Configuration
Juniper JNCIA – Juniper RIP and OSPF Route ConfigurationJuniper JNCIA – Juniper RIP and OSPF Route Configuration
Juniper JNCIA – Juniper RIP and OSPF Route Configuration
 
Keepalived+MaxScale+MariaDB_운영매뉴얼_1.0.docx
Keepalived+MaxScale+MariaDB_운영매뉴얼_1.0.docxKeepalived+MaxScale+MariaDB_운영매뉴얼_1.0.docx
Keepalived+MaxScale+MariaDB_운영매뉴얼_1.0.docx
 
JUNOS - Monitoring and Troubleshooting
JUNOS - Monitoring and TroubleshootingJUNOS - Monitoring and Troubleshooting
JUNOS - Monitoring and Troubleshooting
 
MySQL Optimizer Overview
MySQL Optimizer OverviewMySQL Optimizer Overview
MySQL Optimizer Overview
 
MySQL_MariaDB-성능개선-202201.pptx
MySQL_MariaDB-성능개선-202201.pptxMySQL_MariaDB-성능개선-202201.pptx
MySQL_MariaDB-성능개선-202201.pptx
 
Practical Celery
Practical CeleryPractical Celery
Practical Celery
 
MariaDB MaxScale monitor 매뉴얼
MariaDB MaxScale monitor 매뉴얼MariaDB MaxScale monitor 매뉴얼
MariaDB MaxScale monitor 매뉴얼
 
[오픈소스컨설팅]Day #2 MySQL Tuning, Replication, Cluster
[오픈소스컨설팅]Day #2 MySQL Tuning, Replication, Cluster[오픈소스컨설팅]Day #2 MySQL Tuning, Replication, Cluster
[오픈소스컨설팅]Day #2 MySQL Tuning, Replication, Cluster
 
Query logging with proxysql
Query logging with proxysqlQuery logging with proxysql
Query logging with proxysql
 
Load Data Fast!
Load Data Fast!Load Data Fast!
Load Data Fast!
 
MySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELKMySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELK
 

Ähnlich wie Instalar MySQL em 6min com dicas passo a passo

MySQL em 10min - Alexandre Almeida HTI Tecnologia
MySQL em 10min - Alexandre Almeida HTI TecnologiaMySQL em 10min - Alexandre Almeida HTI Tecnologia
MySQL em 10min - Alexandre Almeida HTI TecnologiaMySQL Brasil
 
PHP, Gearman e Memcache
PHP, Gearman e MemcachePHP, Gearman e Memcache
PHP, Gearman e MemcacheAndre Golvea
 
Linux Deployment: Como instalar Linux sem sair da cadeira - Jonathan Meller e...
Linux Deployment: Como instalar Linux sem sair da cadeira - Jonathan Meller e...Linux Deployment: Como instalar Linux sem sair da cadeira - Jonathan Meller e...
Linux Deployment: Como instalar Linux sem sair da cadeira - Jonathan Meller e...Tchelinux
 
Redis um banco chave valor
Redis um banco chave valorRedis um banco chave valor
Redis um banco chave valorKinn Julião
 
Rodando e instalandosistemas operacionaispela rede - Nasser Othman Rahman - ...
Rodando e instalandosistemas operacionaispela rede - Nasser Othman Rahman  - ...Rodando e instalandosistemas operacionaispela rede - Nasser Othman Rahman  - ...
Rodando e instalandosistemas operacionaispela rede - Nasser Othman Rahman - ...Tchelinux
 
PostgreSQL Tuning: O elefante mais rápido que um leopardo
PostgreSQL Tuning: O elefante mais rápido que um leopardoPostgreSQL Tuning: O elefante mais rápido que um leopardo
PostgreSQL Tuning: O elefante mais rápido que um leopardoelliando dias
 
Arquivos de Inicialização do Linux
Arquivos de Inicialização do LinuxArquivos de Inicialização do Linux
Arquivos de Inicialização do LinuxIvani Nascimento
 
Tutorial servidor debian linux ocs invetory
Tutorial servidor debian linux ocs invetory Tutorial servidor debian linux ocs invetory
Tutorial servidor debian linux ocs invetory gigadrop
 
Debian 6: Instalação e Hardening
Debian 6: Instalação e HardeningDebian 6: Instalação e Hardening
Debian 6: Instalação e HardeningBruna Griebeler
 
Segurança em servidores Linux
Segurança em servidores LinuxSegurança em servidores Linux
Segurança em servidores LinuxImpacta Eventos
 
Otimizacao de websites em PHP
Otimizacao de websites em PHPOtimizacao de websites em PHP
Otimizacao de websites em PHPFelipe Ribeiro
 
Seguranca em Servidores Linux
Seguranca em Servidores LinuxSeguranca em Servidores Linux
Seguranca em Servidores LinuxAlessandro Silva
 
Project HA
Project HAProject HA
Project HAKarpv
 
Novidades do Universo MySQL para PHP Web Developers - Dezembro 2014
Novidades do Universo MySQL para PHP Web Developers - Dezembro 2014Novidades do Universo MySQL para PHP Web Developers - Dezembro 2014
Novidades do Universo MySQL para PHP Web Developers - Dezembro 2014MySQL Brasil
 
Monitoramento de serviços com Zabbix + Grafana + Python - Marcelo Santoto - D...
Monitoramento de serviços com Zabbix + Grafana + Python - Marcelo Santoto - D...Monitoramento de serviços com Zabbix + Grafana + Python - Marcelo Santoto - D...
Monitoramento de serviços com Zabbix + Grafana + Python - Marcelo Santoto - D...Felipe Blini
 

Ähnlich wie Instalar MySQL em 6min com dicas passo a passo (20)

MySQL em 10min - Alexandre Almeida HTI Tecnologia
MySQL em 10min - Alexandre Almeida HTI TecnologiaMySQL em 10min - Alexandre Almeida HTI Tecnologia
MySQL em 10min - Alexandre Almeida HTI Tecnologia
 
PHP, Gearman e Memcache
PHP, Gearman e MemcachePHP, Gearman e Memcache
PHP, Gearman e Memcache
 
Linux Deployment: Como instalar Linux sem sair da cadeira - Jonathan Meller e...
Linux Deployment: Como instalar Linux sem sair da cadeira - Jonathan Meller e...Linux Deployment: Como instalar Linux sem sair da cadeira - Jonathan Meller e...
Linux Deployment: Como instalar Linux sem sair da cadeira - Jonathan Meller e...
 
Redis um banco chave valor
Redis um banco chave valorRedis um banco chave valor
Redis um banco chave valor
 
IntroduçãO Ao Linux
IntroduçãO Ao LinuxIntroduçãO Ao Linux
IntroduçãO Ao Linux
 
Rodando e instalandosistemas operacionaispela rede - Nasser Othman Rahman - ...
Rodando e instalandosistemas operacionaispela rede - Nasser Othman Rahman  - ...Rodando e instalandosistemas operacionaispela rede - Nasser Othman Rahman  - ...
Rodando e instalandosistemas operacionaispela rede - Nasser Othman Rahman - ...
 
PostgreSQL Tuning: O elefante mais rápido que um leopardo
PostgreSQL Tuning: O elefante mais rápido que um leopardoPostgreSQL Tuning: O elefante mais rápido que um leopardo
PostgreSQL Tuning: O elefante mais rápido que um leopardo
 
Arquivos de Inicialização do Linux
Arquivos de Inicialização do LinuxArquivos de Inicialização do Linux
Arquivos de Inicialização do Linux
 
Servidores linux
Servidores linuxServidores linux
Servidores linux
 
Tutorial servidor debian linux ocs invetory
Tutorial servidor debian linux ocs invetory Tutorial servidor debian linux ocs invetory
Tutorial servidor debian linux ocs invetory
 
Debian 6: Instalação e Hardening
Debian 6: Instalação e HardeningDebian 6: Instalação e Hardening
Debian 6: Instalação e Hardening
 
Segurança em servidores Linux
Segurança em servidores LinuxSegurança em servidores Linux
Segurança em servidores Linux
 
Otimizacao de websites em PHP
Otimizacao de websites em PHPOtimizacao de websites em PHP
Otimizacao de websites em PHP
 
Asterisk
AsteriskAsterisk
Asterisk
 
Seguranca em Servidores Linux
Seguranca em Servidores LinuxSeguranca em Servidores Linux
Seguranca em Servidores Linux
 
Project HA
Project HAProject HA
Project HA
 
Segurança Linux
Segurança LinuxSegurança Linux
Segurança Linux
 
Novidades do Universo MySQL para PHP Web Developers - Dezembro 2014
Novidades do Universo MySQL para PHP Web Developers - Dezembro 2014Novidades do Universo MySQL para PHP Web Developers - Dezembro 2014
Novidades do Universo MySQL para PHP Web Developers - Dezembro 2014
 
MigraçãO
MigraçãOMigraçãO
MigraçãO
 
Monitoramento de serviços com Zabbix + Grafana + Python - Marcelo Santoto - D...
Monitoramento de serviços com Zabbix + Grafana + Python - Marcelo Santoto - D...Monitoramento de serviços com Zabbix + Grafana + Python - Marcelo Santoto - D...
Monitoramento de serviços com Zabbix + Grafana + Python - Marcelo Santoto - D...
 

Instalar MySQL em 6min com dicas passo a passo

  • 1. MySQL em 10 minutos como instalar o MySQL em 10 minutos HTI Consultoria e Tecnologia Alexandre M de Almeida www.hti.com.br alexandre@hti.com.br
  • 2. Objetivo •  Fazer uma instalação simples e rápida •  Reforçar dicas importantes na instalação
  • 3. Antes de tudo… •  Qual o tipo de aplicação? •  Banco de dados OLTP ou OLAP? •  Storage Engines? •  Processamento •  Memória •  Discos, ah sim, discos
  • 4. Pacotes •  Source (fonte) •  Distro (yum, apt-get, urpmi, etc) •  RPM •  Binário –  RedHat, Linux Generic*, Solaris –  MacOS, Suse, FreeBSD –  Uindols
  • 5. Por que eu prefiro binários? •  Preguiça de compilar ;-) •  Não sei usar as melhores opções •  Não se tenho as bibliotecas: –  mais atualizadas –  compatíveis entre si (versões) •  É mais rápido (install e performance) •  Permite mais threads estáveis •  Binários de melhor qualidade
  • 6. Primeiro Passo •  Antes de disparar o cronômetro… •  Consiga seu binário (tar.gz) [root@daredevil ~]# cd /usr/local/ [root@daredevil local]# wget http://dev.mysql.com/get/Downloads/MySQL-5.5/ mysql-5.5.17-linux2.6-x86_64.tar.gz/from/http://ftp.gwdg.de/pub/misc/mysql/
  • 7. 1. Descompactar •  tar (10s + tempo para lembrar como usar) •  /usr/local ou /opt [root@daredevil local]# time tar -zxvf mysql-5.5.17-linux2.6-x86_64.tar.gz mysql-5.5.17-linux2.6-x86_64/support-files/ndb-config-2-node.ini mysql-5.5.17-linux2.6-x86_64/support-files/magic mysql-5.5.17-linux2.6-x86_64/support-files/my-innodb-heavy-4G.cnf … real 0m10.165s user 0m6.305s sys 0m4.350s
  • 8. 2. Usuário e Grupo •  Usuário de sistema do mysqld •  10 segundos (20 se for no escuro) [root@daredevil local]# useradd mysql
  • 9. 3. Diretórios •  /var/lib/mysql (normalmente é o default) •  Um para dados outro para logs •  Ideal discos diferentes (depende do HW) •  10 segundos? [root@daredevil local]# mkdir /dados [root@daredevil local]# mkdir /logs
  • 10. 4. Link Simbólico •  Facilita na criação de PATHS •  E ajuda num eventual upgrade de versão •  0.05 segundos [root@daredevil local]# ln -s mysql-5.5.17-linux2.6-x86_64/ mysql
  • 11. 5. Personalização •  Não é necessário à defaults •  SepararDados & Logs à Back up Raw •  3 minutos no máximo [root@daredevil local]# vi /etc/my.cnf [mysqld] server-id = 100 port = 3306 user = mysql socket = /logs/mysql.sock datadir = /dados basedir = /usr/local/mysql log-error = /logs/errorlog.err log-bin = /logs/binlog relay-log = /logs/relaylog pid-file = /logs/mysqld.pid [client] port = 3306 socket = /logs/mysql.sock
  • 12. 6. Permissões •  Usuário mysql deve reinar (e só ele) [root@daredevil local]# chown -R mysql: /dados [root@daredevil local]# chown -R mysql: /logs [root@daredevil local]# chmod -R 770 /dados [root@daredevil local]# chmod -R 770 /logs
  • 13. 7. Sistema de Dados •  Script prepara o datadir e logs [root@daredevil local]# cd /usr/local/mysql [root@daredevil mysql]# scripts/mysql_install_db Installing MySQL system tables... OK Filling help tables... OK …
  • 14. 8. Subir o servidor •  Manual à mysqld_safe •  Automático à mysql.server [root@daredevil mysql]# bin/mysqld_safe & 111027 15:48:44 mysqld_safe Logging to '/logs/errorlog.err'. 111027 15:48:44 mysqld_safe Starting mysqld daemon with databases from /dados
  • 15. 9. Mínimo Segurança •  Script: mysql_secure_installation –  Senha para root (renomear é o ideal) –  Elimina acesso de qq host (%) –  Elimina acesso convidado (anônimo) –  “Dropa” banco de dados test
  • 16. 10. Pronto para uso •  Fala sério… 6min 38seg •  Ajuste o PATH como requerido [root@daredevil local]# export PATH=$PATH:/usr/local/mysql/bin [root@daredevil local]# mysql –uroot –p Enter password: Welcome to the MySQL monitor. Commands end with ; or g. Your MySQL connection id is 2 Server version: 5.5.17-log MySQL Community Server (GPL) Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or 'h' for help. Type 'c' to clear the current input statement. mysql>
  • 17. Ufa! Perguntas & Respostas (Atenção! Tomates não são permitidos)