diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index 185039f..0000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,262 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - file://$PROJECT_DIR$/../crawlers/crawlers/core/zufang/58.go - 73 - - - file://$PROJECT_DIR$/../crawlers/crawlers/core/zufang/58.go - 92 - - - - - \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 721795f..1573ba1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: diff --git a/mysql/privileges.sql b/mysql/privileges.sql index 6b1aaf1..681238c 100644 --- a/mysql/privileges.sql +++ b/mysql/privileges.sql @@ -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; \ No newline at end of file