Skip to content

Commit d3c27cb

Browse files
committed
Update instructions for mysql docker
1 parent e755280 commit d3c27cb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

RUNNING_TESTS.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,16 @@ The `mysql` client can be run through Docker as well:
7373
docker run -it --link mysql:mysql --rm mysql sh -c 'exec mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD"'
7474
```
7575

76-
Set up the database for the unit tests:
76+
Set up the database for the unit tests (you may need to replace 'localhost' with your container's IP):
7777

7878
```sql
7979
CREATE USER 'rails'@'localhost' IDENTIFIED BY 'testtest9';
80-
CREATE DATABASE activerecord_unittest2;
81-
GRANT Create,Drop,Select,Insert,Update,Delete,Lock Tables ON activerecord_unittest2.* TO 'rails'@'localhost';
80+
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';
8282
```
8383

84+
Then edit test/rails/config.yml for the appropriate configuration credentials.
85+
8486
### ActiveRecord (Rails) Tests
8587

8688
We also can run our adapters against Rails ActiveRecord tests. There are two

0 commit comments

Comments
 (0)