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 <[email protected]>
AuthorDate: Tue Sep 13 23:24:07 2022 +0800

    Optimize SQL, create database automatically if it doesn't exist (#1596)
    
    Co-authored-by: lvlin241 <[email protected]>
---
 .../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;
 

Reply via email to