rails / rails-dev-box

A virtual machine for Ruby on Rails core development
MIT License
2.05k stars 580 forks source link

No mention of mySQL/postgreSQL username/password #122

Open vedant1811 opened 7 years ago

vedant1811 commented 7 years ago

I think it should be mentioned somewhere in the readme or in the guides that we need to use

mysql -uroot -proot

to login to mysql. Ideally, it should be in this guide, in 5.7.4 Testing Active Record before mentioning create database activerecord_unittest

SirByronic commented 7 years ago

The login/password for MySQL are root/root

sobrinho commented 6 years ago

@fxn this makes sense to add to README or can we close this?

fxn commented 6 years ago

The guide points to the config file where credentials are stored for the test databases. I believe that is enough because the guide cannot assume how did you set things up.

Credentials specific for the dev box could go to the README, saying that MySQL can be used with rails without password, and that vagrant is a PostgreSQL superuser (so no need for credentials).

For that to be useful, the rails user in MySQL should have permissions to manage databases. We can add that to bootstrap.sh. Better than documenting root/root for apps, and rails for tests I think.

@sobrinho would you like to work on it?

sobrinho commented 6 years ago

@fxn sure, I will open a PR.