Skip to content

Commit 441312a

Browse files
committed
Update testing docs
1 parent 3b07a9e commit 441312a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

RUNNING_TESTS.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Pull the image:
6161
sudo docker pull mysql
6262
```
6363

64-
Start up the database with a root password:
64+
Start up the database with a root password (we show a simple one here but pick one no one else knows):
6565

6666
```
6767
docker run -p 3306:3306 --name mysql -e MYSQL_ROOT_PASSWORD=testtest9 -d mysql
@@ -78,7 +78,9 @@ Set up the database for the unit tests (you may need to replace 'localhost' with
7878
```sql
7979
CREATE USER 'rails'@'localhost' IDENTIFIED BY 'testtest9';
8080
CREATE DATABASE activerecord_unittest;
81-
GRANT Create,Drop,Select,Insert,Update,Delete,Lock Tables,Alter,Alter Routine,Create Routine,References ON activerecord_unittest.* TO 'rails'@'localhost';
81+
GRANT ALL PRIVILEGES ON activerecord_unittest.* TO 'rails'@'localhost';
82+
CREATE DATABASE activerecord_unittest2;
83+
GRANT ALL PRIVILEGES ON activerecord_unittest2.* TO 'rails'@'localhost';
8284
```
8385

8486
Then edit test/rails/config.yml for the appropriate configuration credentials.

0 commit comments

Comments
 (0)