Created
September 8, 2015 23:44
-
-
Save g3ortega/1d7dc00fa2c6b97031d3 to your computer and use it in GitHub Desktop.
MySQL para Rails en Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment