rails-dev-box icon indicating copy to clipboard operation
rails-dev-box copied to clipboard

No mention of mySQL/postgreSQL username/password

Open vedant1811 opened this issue 9 years ago • 4 comments

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

vedant1811 avatar Nov 06 '16 15:11 vedant1811

The login/password for MySQL are root/root

SirByronic avatar Dec 15 '16 15:12 SirByronic

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

sobrinho avatar Dec 13 '17 16:12 sobrinho

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?

fxn avatar Dec 14 '17 08:12 fxn

@fxn sure, I will open a PR.

sobrinho avatar Dec 14 '17 15:12 sobrinho