forked from breezeU/Basic-Single-Module-SSM
-
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.
Fix some bugs on init.sql for Mysql 5.6.15
- Loading branch information
Jason Zhou
committed
May 19, 2016
1 parent
0c25228
commit 47abd2a
Showing
1 changed file
with
4 additions
and
2 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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
# 创建数据库,并创建权限用户 | ||
CREATE DATABASE `ssm` CHARACTER SET utf8; | ||
# CREATE DATABASE 'ssm' CHARACTER SET utf8; | ||
CREATE DATABASE ssm CHARACTER SET utf8 COLLATE utf8_general_ci; | ||
CREATE USER 'ssm'@'%' IDENTIFIED BY 'ssm'; | ||
GRANT ALL PRIVILEGES ON ssm.* TO 'ssm'@'%'; | ||
FLUSH PRIVILEGES; | ||
|
||
|
||
# 创建表 | ||
USE ssm; | ||
CREATE TABLE `sys_user` ( | ||
`sys_user_id` bigint(20) NOT NULL, | ||
`sys_user_login_name` varchar(50) NOT NULL, | ||
|
@@ -31,7 +33,7 @@ CREATE TABLE `sys_user` ( | |
|
||
|
||
# 创建表数据 | ||
|
||
USE ssm; | ||
insert into `sys_user`(`sys_user_id`,`sys_user_login_name`,`sys_user_login_password`,`sys_user_status`,`sys_user_is_delete`,`sys_user_register_datetime`,`sys_user_register_source`,`sys_user_type`,`sys_user_sex`,`sys_user_is_email_active`,`sys_user_is_mobile_active`,`sys_user_register_type`,`sys_user_pay_passwrod`,`sys_user_icon`,`sys_user_real_name`,`sys_user_email`,`sys_user_mobile`,`sys_user_weibo_id`,`sys_user_qq_id`) values (1,'YouMeek1','e10adc3949ba59abbe56e057f20f883e','0','N','2016-02-24 00:12:23','0','0','0','Y','Y','0','e10adc3949ba59abbe56e057f20f883e','','张觉恩1','[email protected]','13800000001','',''); | ||
insert into `sys_user`(`sys_user_id`,`sys_user_login_name`,`sys_user_login_password`,`sys_user_status`,`sys_user_is_delete`,`sys_user_register_datetime`,`sys_user_register_source`,`sys_user_type`,`sys_user_sex`,`sys_user_is_email_active`,`sys_user_is_mobile_active`,`sys_user_register_type`,`sys_user_pay_passwrod`,`sys_user_icon`,`sys_user_real_name`,`sys_user_email`,`sys_user_mobile`,`sys_user_weibo_id`,`sys_user_qq_id`) values (2,'YouMeek2','e10adc3949ba59abbe56e057f20f883e','0','N','2016-02-24 00:12:23','0','0','0','Y','Y','0','e10adc3949ba59abbe56e057f20f883e','','张觉恩2','[email protected]','13800000002','',''); | ||
insert into `sys_user`(`sys_user_id`,`sys_user_login_name`,`sys_user_login_password`,`sys_user_status`,`sys_user_is_delete`,`sys_user_register_datetime`,`sys_user_register_source`,`sys_user_type`,`sys_user_sex`,`sys_user_is_email_active`,`sys_user_is_mobile_active`,`sys_user_register_type`,`sys_user_pay_passwrod`,`sys_user_icon`,`sys_user_real_name`,`sys_user_email`,`sys_user_mobile`,`sys_user_weibo_id`,`sys_user_qq_id`) values (3,'YouMeek3','e10adc3949ba59abbe56e057f20f883e','0','N','2016-02-24 00:12:23','0','0','0','Y','Y','0','e10adc3949ba59abbe56e057f20f883e','','张觉恩3','[email protected]','13800000003','',''); | ||
|