Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
058a8451
Commit
058a8451
authored
Jan 26, 2018
by
stylefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改默认sql数据库名称
parent
cc38f37b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
32 deletions
+39
-32
guns-rest/db/guns_rest.sql
+38
-0
guns-rest/db/rest.sql
+0
-31
guns-rest/src/main/resources/application.yml
+1
-1
No files found.
guns-rest/db/guns_rest.sql
0 → 100644
View file @
058a8451
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Type : MySQL
Source Server Version : 50721
Source Host : localhost:3306
Source Schema : guns_rest
Target Server Type : MySQL
Target Server Version : 50721
File Encoding : 65001
Date: 26/01/2018 21:16:47
*/
DROP
DATABASE
IF
EXISTS
guns_rest
;
CREATE
DATABASE
IF
NOT
EXISTS
guns_rest
DEFAULT
CHARSET
utf8
COLLATE
utf8_general_ci
;
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP
TABLE
IF
EXISTS
`user`
;
CREATE
TABLE
`user`
(
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
,
`userName`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
2
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
ROW_FORMAT
=
Dynamic
;
-- ----------------------------
-- Records of user
-- ----------------------------
INSERT
INTO
`user`
VALUES
(
1
,
'admin'
);
SET
FOREIGN_KEY_CHECKS
=
1
;
guns-rest/db/rest.sql
deleted
100644 → 0
View file @
cc38f37b
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50621
Source Host : localhost:3306
Source Database : rest
Target Server Type : MYSQL
Target Server Version : 50621
File Encoding : 65001
Date: 2017-08-23 15:38:50
*/
SET
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP
TABLE
IF
EXISTS
`user`
;
CREATE
TABLE
`user`
(
`id`
bigint
(
20
)
NOT
NULL
,
`userName`
varchar
(
40
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
-- ----------------------------
-- Records of user
-- ----------------------------
INSERT
INTO
`user`
VALUES
(
'1'
,
'admin'
);
guns-rest/src/main/resources/application.yml
View file @
058a8451
...
@@ -28,7 +28,7 @@ mybatis-plus:
...
@@ -28,7 +28,7 @@ mybatis-plus:
spring
:
spring
:
datasource
:
datasource
:
url
:
jdbc:mysql://127.0.0.1:3306/rest?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull
url
:
jdbc:mysql://127.0.0.1:3306/
guns_
rest?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull
username
:
root
username
:
root
password
:
root
password
:
root
filters
:
log4j,wall,mergeStat
filters
:
log4j,wall,mergeStat
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment