- 安装完成后,开启mysql服务,设置密码:
mysql -u root -p // 输入安装结束时设置的密码,如111111
- 新建数据表
create database test DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
use test;
create table todoList(
id int auto_increment primary key,
title char(30) not null,
completed TINYINT(1) DEFAULT 0;
);
$ npm install
$ npm run dev
$ npm install
$ hey dev