diff --git a/README.md b/README.md index aebb2a1..c230ba2 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,8 @@ If there is no code, clickable link, or this is an advertisement email, return: When you execute the [Wrangler](https://developers.cloudflare.com/workers/wrangler/get-started/) login command for the first time, you will be prompted to log in. Just follow the prompts. ```bash - npx wrangler d1 execute inbox-d1 --local --file=./db/schema.sql # creating a d1 database called 'inbox-d1' + npx npx wrangler d1 create inbox-d1 # creating a d1 database called 'inbox-d1' + npx wrangler d1 execute inbox-d1 --local --file=./db/schema.sql # write the schema.sql to the database ``` you will get the result like this: ```bash diff --git a/README_CN.md b/README_CN.md index 8eace38..7a7b93e 100644 --- a/README_CN.md +++ b/README_CN.md @@ -146,7 +146,8 @@ If there is no code, clickable link, or this is an advertisement email, return: 当你第一次执行 [Wrangler](https://developers.cloudflare.com/workers/wrangler/get-started/) 登录命令时,系统会提示你登录。按提示操作即可。 ```bash - npx wrangler d1 execute inbox-d1 --local --file=./db/schema.sql # 创建名为 'inbox-d1' 的 d1 数据库 + npx wrangler d1 create inbox-d1 # 创建名为 'inbox-d1' 的 d1 数据库 + npx wrangler d1 execute inbox-d1 --local --file=./db/schema.sql # 执行 schema.sql 文件 ``` 你将会看到如下结果: ```bash