From 13e635522e257d60c5ac4dcca457b7d684f39a51 Mon Sep 17 00:00:00 2001 From: MARK Date: Tue, 30 Jun 2020 16:16:59 +0800 Subject: [PATCH] Update readme.md --- readme.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/readme.md b/readme.md index 99c29cd..02f3859 100644 --- a/readme.md +++ b/readme.md @@ -51,6 +51,21 @@ ## 项目启动 需要先配置好对应的数据库 +```bash +// 建立yourdb库 +create database yourdb; + +// 创建user表 +USE yourdb;e +CREATE TABLE user( + username char(50) NULL, + password char(50) NULL +)ENGINE=InnoDB; + +// 添加数据 +INSERT INTO user(username, passwd) VALUES('name', 'passwd'); +``` + ```bash make ./bin/server