You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampark.apache.org by be...@apache.org on 2022/09/13 15:24:14 UTC

[incubator-streampark] branch dev updated: Optimize SQL, create database automatically if it doesn't exist (#1596)

This is an automated email from the ASF dual-hosted git repository.

benjobs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git


The following commit(s) were added to refs/heads/dev by this push:
     new 9c1552947 Optimize SQL, create database automatically if it doesn't exist (#1596)
9c1552947 is described below

commit 9c1552947dbb1b8ecc4a94c4c18b33440ce891f1
Author: lvlin241 <lv...@163.com>
AuthorDate: Tue Sep 13 23:24:07 2022 +0800

    Optimize SQL, create database automatically if it doesn't exist (#1596)
    
    Co-authored-by: lvlin241 <lo...@chinatelecom.cn>
---
 .../src/assembly/script/schema/mysql-schema.sql                        | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/streampark-console/streampark-console-service/src/assembly/script/schema/mysql-schema.sql b/streampark-console/streampark-console-service/src/assembly/script/schema/mysql-schema.sql
index f0b76ad6a..3e805f692 100644
--- a/streampark-console/streampark-console-service/src/assembly/script/schema/mysql-schema.sql
+++ b/streampark-console/streampark-console-service/src/assembly/script/schema/mysql-schema.sql
@@ -15,6 +15,9 @@
  * limitations under the License.
  */
 
+create database if not exists `streampark` character set utf8mb4 collate utf8mb4_general_ci;
+use streampark;
+
 set names utf8mb4;
 set foreign_key_checks = 0;