-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
76c2ab8
commit cb5b0e2
Showing
2 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
-- -------------------------------------------------------- | ||
-- 主机: 127.0.0.1 | ||
-- 服务器版本: 5.7.15-log - MySQL Community Server (GPL) | ||
-- 服务器操作系统: Win64 | ||
-- HeidiSQL 版本: 9.4.0.5125 | ||
-- -------------------------------------------------------- | ||
|
||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
/*!40101 SET NAMES utf8 */; | ||
/*!50503 SET NAMES utf8mb4 */; | ||
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
|
||
|
||
-- 导出 todolist 的数据库结构 | ||
CREATE DATABASE IF NOT EXISTS `todolist` /*!40100 DEFAULT CHARACTER SET utf8 */; | ||
USE `todolist`; | ||
|
||
-- 导出 表 todolist.list 结构 | ||
CREATE TABLE IF NOT EXISTS `list` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT, | ||
`user_id` int(11) NOT NULL, | ||
`content` char(255) NOT NULL, | ||
`status` tinyint(1) unsigned zerofill NOT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; | ||
|
||
-- 正在导出表 todolist.list 的数据:~0 rows (大约) | ||
DELETE FROM `list`; | ||
/*!40000 ALTER TABLE `list` DISABLE KEYS */; | ||
/*!40000 ALTER TABLE `list` ENABLE KEYS */; | ||
|
||
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; | ||
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; | ||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
-- -------------------------------------------------------- | ||
-- 主机: 127.0.0.1 | ||
-- 服务器版本: 5.7.15-log - MySQL Community Server (GPL) | ||
-- 服务器操作系统: Win64 | ||
-- HeidiSQL 版本: 9.4.0.5125 | ||
-- -------------------------------------------------------- | ||
|
||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
/*!40101 SET NAMES utf8 */; | ||
/*!50503 SET NAMES utf8mb4 */; | ||
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | ||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | ||
|
||
|
||
-- 导出 todolist 的数据库结构 | ||
CREATE DATABASE IF NOT EXISTS `todolist` /*!40100 DEFAULT CHARACTER SET utf8 */; | ||
USE `todolist`; | ||
|
||
-- 导出 表 todolist.user 结构 | ||
CREATE TABLE IF NOT EXISTS `user` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT, | ||
`user_name` char(50) NOT NULL, | ||
`password` char(32) NOT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; | ||
|
||
-- 正在导出表 todolist.user 的数据:~0 rows (大约) | ||
DELETE FROM `user`; | ||
/*!40000 ALTER TABLE `user` DISABLE KEYS */; | ||
INSERT INTO `user` (`id`, `user_name`, `password`) VALUES | ||
(1, 'molunerfinn', '202cb962ac59075b964b07152d234b70'); | ||
/*!40000 ALTER TABLE `user` ENABLE KEYS */; | ||
|
||
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; | ||
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; | ||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; |