diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index d77733c..a8ef697 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -15,7 +15,6 @@ services: volumes: - ./mysql/data:/var/lib/mysql - ./mysql/init/init.sql:/docker-entrypoint-initdb.d/init.sql - - ./mysql/init/tasks.sql:/docker-entrypoint-initdb.d/tasks.sql - /etc/localtime:/etc/localtime:ro ports: - 33060:3306 diff --git a/docker/mysql/init/tasks.sql b/docker/mysql/init/tasks.sql deleted file mode 100644 index 6471c8e..0000000 --- a/docker/mysql/init/tasks.sql +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bf8dd32deac382e6f1fef8f3af16f2363a65b2cb52f749c506dca85da193547b -size 378196894 diff --git a/docs/guide/data_default.md b/docs/guide/data_default.md index a4f6f5e..e931344 100644 --- a/docs/guide/data_default.md +++ b/docs/guide/data_default.md @@ -3,28 +3,11 @@ **默认数据库,缓存了一些VIP课程,可以直接使用mygeektime进行在线观看** -## 方式一: [releases下载sql文件导入mysql](https://github.com/zkep/mygeektime/releases) +## [releases下载sql文件导入mysql](https://github.com/zkep/mygeektime/releases) -## 方式二: git-lfs下载默认数据库表导入mysql - -### 安装 git-lfs - -```shell -sudo apt-get install git-lfs -``` - -### 拉取仓库大文件 -```shell -git clone https://github.com/zkep/mygeektime.git - -cd mygeektime - -git lfs pull -``` - ## 将tasks.sql导入到mysql ```shell -mysqldump -uroot -P3306 -p123456 mygeektime < docker/mysql/init/tasks.sql +mysqldump -uroot -P3306 -p123456 mygeektime < tasks.sql ```