Skip to content

Instantly share code, notes, and snippets.

@g3ortega
Created September 8, 2015 23:44
Show Gist options
  • Save g3ortega/1d7dc00fa2c6b97031d3 to your computer and use it in GitHub Desktop.
Save g3ortega/1d7dc00fa2c6b97031d3 to your computer and use it in GitHub Desktop.

Revisions

  1. g3ortega created this gist Sep 8, 2015.
    23 changes: 23 additions & 0 deletions conf.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    # En el proceso de instalación se pedirá un password, si es en producción recuerda escoger un password seguro. En un entorno de desarrollo se puede ser más fléxible.

    $ sudo apt-get install mysql-server
    $ sudo apt-get install mysql-client

    # Para verificar si se instaló correctamente

    $ sudo netstat -tap | grep mysql

    # Para rails asegurate de instalar la siguiente dependencia

    $ sudo apt-get install libmysqlclient-dev

    # Por último recuerda agregar la gema de mysql al Gemfile, y tu database.yml debería lucir algo así

    development:
    adapter: mysql2
    encoding: utf8
    database: ejemplo
    username: usuario_ejemplo
    password: 123456
    host: localhost