1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-05-21 02:42:28 +02:00
seaweedfs/docker/seaweedfs.sql
Konstantin Lebedev 6b4e9eef57 k8s build
2020-12-21 20:58:41 +05:00

12 lines
550 B
SQL

CREATE DATABASE IF NOT EXISTS seaweedfs;
CREATE USER IF NOT EXISTS 'seaweedfs'@'%' IDENTIFIED BY 'secret';
GRANT ALL PRIVILEGES ON seaweedfs_fast.* TO 'seaweedfs'@'%';
FLUSH PRIVILEGES;
USE seaweedfs;
CREATE TABLE IF NOT EXISTS filemeta (
dirhash BIGINT COMMENT 'first 64 bits of MD5 hash value of directory field',
name VARCHAR(1000) COMMENT 'directory or file name',
directory TEXT COMMENT 'full path to parent directory',
meta LONGBLOB,
PRIMARY KEY (dirhash, name)
) DEFAULT CHARSET=utf8;