From 175863c75c9270409d2894cab00a6e79e3dc3a81 Mon Sep 17 00:00:00 2001 From: Li Shengzhao Date: Sun, 26 Jul 2015 22:07:55 +0800 Subject: [PATCH] Upgrade mysql version to 5.1.35(old 5.1.6), update some comment issues --- others/database/initial_db.ddl | 8 ++++---- pom.xml | 2 +- src/main/resources/spring-oauth-server.properties | 4 ++-- src/test/resources/test.properties | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/others/database/initial_db.ddl b/others/database/initial_db.ddl index 7140dfd..75b1430 100644 --- a/others/database/initial_db.ddl +++ b/others/database/initial_db.ddl @@ -1,13 +1,13 @@ -- ############### -- create MySQL database , if need create, cancel the comment -- ############### --- create database if not exists spring_oauth default character set utf8; --- use spring_oauth set default character = utf8; +-- create database if not exists oauth2 default character set utf8; +-- use oauth2 set default character = utf8; -- ############### --- grant privileges to spring_oauth/spring_oauth +-- grant privileges to oauth2/oauth2 -- ############### --- GRANT ALL PRIVILEGES ON spring_oauth.* TO spring_oauth@localhost IDENTIFIED BY "spring_oauth"; +-- GRANT ALL PRIVILEGES ON oauth2.* TO oauth2@localhost IDENTIFIED BY "oauth2"; -- ############### -- Domain: User diff --git a/pom.xml b/pom.xml index 0aa41a5..db8bdc3 100644 --- a/pom.xml +++ b/pom.xml @@ -82,7 +82,7 @@ mysql mysql-connector-java - 5.1.6 + 5.1.35 diff --git a/src/main/resources/spring-oauth-server.properties b/src/main/resources/spring-oauth-server.properties index 83f3ab0..539c2c3 100644 --- a/src/main/resources/spring-oauth-server.properties +++ b/src/main/resources/spring-oauth-server.properties @@ -4,5 +4,5 @@ jdbc.driverClassName=com.mysql.jdbc.Driver # localhost ############ jdbc.url=jdbc:mysql://localhost:3306/oauth2?autoReconnect=true&autoReconnectForPools=true&useUnicode=true&characterEncoding=utf8 -jdbc.username=honyee -jdbc.password=honyee \ No newline at end of file +jdbc.username=andaily +jdbc.password=andaily \ No newline at end of file diff --git a/src/test/resources/test.properties b/src/test/resources/test.properties index a3c00dd..adaaba2 100644 --- a/src/test/resources/test.properties +++ b/src/test/resources/test.properties @@ -4,5 +4,5 @@ jdbc.driverClassName=com.mysql.jdbc.Driver # localhost ############ jdbc.url=jdbc:mysql://localhost:3306/oauth2_test?autoReconnect=true&autoReconnectForPools=true&useUnicode=true&characterEncoding=utf8 -jdbc.username=wdcy -jdbc.password=wdcy \ No newline at end of file +jdbc.username=andaily +jdbc.password=andaily \ No newline at end of file