Files
mir-godot/wiki/course/2.0.0.md
makeyangcom 91b6141418 2.0.0
2024-03-07 11:58:00 +08:00

63 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 第二课
> 第二课时操作引导文档。
### 更新课程源码
```shell
git pull
```
### 虚拟IP地址固定
> 根据课程在Hyper-V管理器中进行相关的设置
### GitHub的访问加速
> 将wiki目录中hosts文件中的服务器IP修改后覆盖到`C:\Windows\System32\drivers\etc`
> 根据课程创建自己的代码仓库并上传源码到自己的仓库
```shell
# 上传源码到仓库的命令脚本
git add .;git commit -m "main";git push origin main
```
### GoLand编辑器配置
```shell
# 配置代理,加速依赖库的下载
GOPROXY=https://goproxy.io,direct
```
### 数据库管理工具
> 创建名为`database`的数据库
```shell
database
```
> 执行下面的MySQL脚本创建游戏玩家数据表
```mysql
CREATE TABLE `game_play_data` (
`user_id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '编号',
`user_server_id` int(11) NOT NULL DEFAULT '0' COMMENT '服务器编号',
`user_account` varchar(140) NOT NULL DEFAULT '' COMMENT '账号',
`user_password` varchar(50) NOT NULL DEFAULT '' COMMENT '密码',
`user_name` varchar(50) NOT NULL DEFAULT '' COMMENT '真实姓名',
`user_number` varchar(140) NOT NULL DEFAULT '' COMMENT '身份证号码',
`user_question_a` varchar(140) NOT NULL DEFAULT '' COMMENT '问题一',
`user_question_b` varchar(140) NOT NULL DEFAULT '' COMMENT '问题二',
`user_answer_a` varchar(140) NOT NULL DEFAULT '' COMMENT '答案一',
`user_answer_b` varchar(140) NOT NULL DEFAULT '' COMMENT '答案二',
`user_status` tinyint(2) NOT NULL DEFAULT '2' COMMENT '状态 1停用 2启用',
`create_at` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_at` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
`delete_at` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`user_id`),
KEY `status` (`user_status`),
KEY `server_id` (`user_server_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='游戏用户数据表';
```