Instalando mySQL y PostgreSQL

  • Punto de partida
    • Una Raspberry pi model B con Raspbian
  • Procedimiento
    • mySQL
      • sudo apt-get install mysql-server
      • Pedirá password de root
    • PostgreSQL
      • sudo apt-get install postgresql-9.4
      • Creará el usuario postgres (sin clave)
      • Se cambia la clave del usuario postgres
        • sudo -u postgres psql postgres
          • postgres=# \password postgres 
          • Enter new password: 
          • Enter it again: 
          • postgres=# \q
      • Se configura la autentificacion de Postgresql
        • sudo vi /etc/postgresql/9.4/main/pg_hba.conf
        • Se incluye la linea:
          • host    all         all         192.168.1.0/24          md5
      • Se configuracion de TCP/IP
        • sudo vi /etc/postgresql/9.4/main/postgresql.conf
        • Se verifica que no estan comentadas
        • listen_addresses = 'localhost'
        • port = 5432
      • Se reinicia el servicio
        • sudo systemctl restart postgresql

No hay comentarios:

Publicar un comentario