Skip to content

Commit

Permalink
use 127.0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hongyuanw committed Apr 11, 2017
1 parent 5f5b193 commit 9957660
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
- mysql

before_install:
- mysql -u root < src/test/resources/create_schema.sql
- mysql -h 127.0.0.1 -u root < src/test/resources/create_schema.sql

script:
- mvn clean install
4 changes: 2 additions & 2 deletions src/test/resources/datasource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@

<bean id="physicalDataSource0" class="com.mchange.v2.c3p0.ComboPooledDataSource">
<property name="driverClass" value="com.mysql.jdbc.Driver"/>
<property name="jdbcUrl" value="jdbc:mysql://localhost:3306/passport_0"/>
<property name="jdbcUrl" value="jdbc:mysql://127.0.0.1:3306/passport_0"/>
<property name="user" value="root"/>
<property name="password" value=""/>
</bean>

<bean id="physicalDataSource1" class="com.mchange.v2.c3p0.ComboPooledDataSource">
<property name="driverClass" value="com.mysql.jdbc.Driver"/>
<property name="jdbcUrl" value="jdbc:mysql://localhost:3306/passport_1"/>
<property name="jdbcUrl" value="jdbc:mysql://127.0.0.1:3306/passport_1"/>
<property name="user" value="root"/>
<property name="password" value=""/>
</bean>
Expand Down

0 comments on commit 9957660

Please sign in to comment.