Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IanCao committed Mar 21, 2020
1 parent 6dc027b commit 28ec27f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 266 deletions.
262 changes: 0 additions & 262 deletions .idea/workspace.xml

This file was deleted.

6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ services:
image: crawler:0.0.1
depends_on:
- database
entrypoint: "sleep 30s"
entrypoint: "sleep 300s"
environment:
account: root
passwd: 123456
url: "database:3307"
url: "database:3306"
networks:
- crawlers_net
database:
image: crawler-mysql:0.0.1
ports:
- "3307:3306"
- "3306:3306"
networks:
- crawlers_net
environment:
Expand Down
2 changes: 1 addition & 1 deletion mysql/privileges.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ use mysql;
select host, user from user;
-- 因为mysql版本是5.7,因此新建用户为如下命令:
-- create user root identified by '123456';
grant all on house.* to root@'%' identified by '123456' with grant option;
grant all on * to root@'%' identified by '123456' with grant option;
-- 这一条命令一定要有:
flush privileges;

0 comments on commit 28ec27f

Please sign in to comment.