You need to create:
Execute these SQL setences on your mysql server:
create database `ccnet-db` character set = 'utf8';
create database `seafile-db` character set = 'utf8';
create database `seahub-db` character set = 'utf8';
create user 'seafile'@'localhost' identified by 'seafile';
GRANT ALL PRIVILEGES ON `ccnet-db`.* to `seafile`;
GRANT ALL PRIVILEGES ON `seafile-db`.* to `seafile`;
GRANT ALL PRIVILEGES ON `seahub-db`.* to `seafile`;
[Database]
ENGINE=mysql
HOST=localhost
USER=seafile
PASSWD=seafile
DB=ccnet-db
database
section of seafile-data/seafile.conf:[database]
type=mysql
host=localhost
user=seafile
password=seafile
db_name=seafile-db
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME' : 'seahub-db',
'USER' : 'seafile',
'PASSWORD' : 'seafile',
'HOST' : 'localhost',
}
}
DATABASE
section of seafile-server/pro-data/seafevents.conf[DATABASE]
type=mysql
username=seafile
password=seafile
name=seahub-db
host=127.0.0.1
port=3306
Now we create the database tables for seahub.
Assume you have uncompressed seafile server to C:/SeafileProgram/seafile-pro-server-3.1.3
,
Open a window command line prompt, and execute the following command:
mysql seahub-db < C:/SeafileProgram/seafile-server-3.1.3/seahub/sql/mysql.sql
Now you can start your seafile server.