README.txt 394 B

1234567891011121314151617
  1. 1. create "seaweedfs" database
  2. export PGHOME=/Library/PostgreSQL/10
  3. $PGHOME/bin/createdb --username=postgres --password seaweedfs
  4. 2. create "filemeta" table
  5. $PGHOME/bin/psql --username=postgres --password seaweedfs
  6. CREATE TABLE IF NOT EXISTS filemeta (
  7. dirhash BIGINT,
  8. name VARCHAR(65535),
  9. directory VARCHAR(65535),
  10. meta bytea,
  11. PRIMARY KEY (dirhash, name)
  12. );