Include command to create mysql user
The guide mentions that the 'rails' user is needed, but doesn't explicitly include the command to do so.
This commit is contained in:
parent
42cfacfe81
commit
21d87f77f8
|
@ -141,6 +141,9 @@ We need first to delete `.bundle/config` because Bundler remembers in that file
|
||||||
In order to be able to run the test suite against MySQL you need to create a user named `rails` with privileges on the test databases:
|
In order to be able to run the test suite against MySQL you need to create a user named `rails` with privileges on the test databases:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
$ mysql -uroot -p
|
||||||
|
|
||||||
|
mysql> CREATE USER 'rails'@'localhost';
|
||||||
mysql> GRANT ALL PRIVILEGES ON activerecord_unittest.*
|
mysql> GRANT ALL PRIVILEGES ON activerecord_unittest.*
|
||||||
to 'rails'@'localhost';
|
to 'rails'@'localhost';
|
||||||
mysql> GRANT ALL PRIVILEGES ON activerecord_unittest2.*
|
mysql> GRANT ALL PRIVILEGES ON activerecord_unittest2.*
|
||||||
|
|
Loading…
Reference in New Issue