Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

README & .travis.yml update

* DB setup must follow Travis CI requirements
* added Node.js 0.6 to .travis.yml
  • Loading branch information...
commit e93aa95b9c1471d6da2f71328387faa1671f4018 1 parent 559a7e6
@DrBenton authored
Showing with 11 additions and 9 deletions.
  1. +1 −1  .travis.yml
  2. +10 −8 README.md
View
2  .travis.yml
@@ -1,7 +1,7 @@
language: node_js
node_js:
- 0.8
- #- 0.6
+ - 0.6
before_script:
- mysql -e 'create database node_dbi_test;'
View
18 README.md
@@ -186,29 +186,31 @@ Any SQL database engine can theorically be added, with only a quick Adapter writ
To run tests manual DB configuration is required first.
-MySQL is expected to be available on localhost with user, pass and DB all set to "test".
+See ```test/config.js``` for databases setup.
+
+According to Travis CI requirements, MySQL is expected to be available on localhost with user "root", empty password and DB "node_dbi_test".
E.g. this should work:
- $ mysql -hlocalhost -utest -ptest test
+ $ mysql -hlocalhost -uroot node_dbi_test
This can usually be achieved by installing mysql and at the mysql interactive prompt issuing the following commands:
- mysql> create database test;
+ mysql> create database node_dbi_test;
Query OK, 1 row affected (0.00 sec)
- mysql> grant all on test.* to 'test'@'localhost' identified by 'test';
+ mysql> grant all on node_dbi_test.* to 'root'@'localhost';
Query OK, 0 rows affected (0.08 sec)
PostgreSQL is similar to MySQL, e.g. this should work:
- $ $ psql -U test -W test
- Password for user test: (manually typing "test" here)
+ $ $ psql -U postgres -W node_dbi_test
+ Password for user postgres: (manually typing empty password here)
Once PostgreSQL is installed this can usually be achieved with by issuing the following commands at the psql interactive prompt:
- postgres=# create user test password 'test';
+ postgres=# create user postgres password '';
CREATE ROLE
- postgres=# create database test owner test;
+ postgres=# create database node_dbi_test owner postgres;
CREATE DATABASE
## Driver Differences
Please sign in to comment.
Something went wrong with that request. Please try again.