SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
fix:support some databases which not support 'IF NOT EXISTS' keyword of 'create table command'
zzq094942ea18fca4812
diff --git a/weed/filer/mysql2/mysql2_store.go b/weed/filer/mysql2/mysql2_store.goindex a1f54455a7..e50480150b 100644--- a/weed/filer/mysql2/mysql2_store.go+++ b/weed/filer/mysql2/mysql2_store.go@@ -4,6 +4,7 @@ import ("context""database/sql""fmt"+ "strings""time""github.com/chrislusf/seaweedfs/weed/filer"@@ -82,7 +83,7 @@ func (store *MysqlStore2) initialize(createTable, upsertQuery string, enableUpsereturn fmt.Errorf("connect to %s error:%v", sqlUrl, err)}- if err = store.CreateTable(context.Background(), abstract_sql.DEFAULT_TABLE); err != nil {+ if err = store.CreateTable(context.Background(), abstract_sql.DEFAULT_TABLE); err != nil && !strings.Contains(err.Error(), "table already exist") {return fmt.Errorf("init table %s: %v", abstract_sql.DEFAULT_TABLE, err)}