Skip to content

Commit

Permalink
👋 my geek time
Browse files Browse the repository at this point in the history
  • Loading branch information
zkep committed Dec 28, 2024
1 parent 317c29f commit 3577d23
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 23 deletions.
1 change: 0 additions & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions docker/mysql/init/tasks.sql

This file was deleted.

21 changes: 2 additions & 19 deletions docs/guide/data_default.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 3577d23

Please sign in to comment.