eFtp数据库脚本.sql
上传用户:maryhy001
上传日期:2007-05-02
资源大小:2317k
文件大小:2k
- # Connection: 7.222
- # Host: 192.168.7.222
- # Saved: 2005-03-18 12:20:47
- #
- # Connection: 7.222
# Host: 192.168.7.222
# Saved: 2005-03-18 12:17:03
#
# Connection: 192.168.7.222
# Host: 192.168.7.222
# Saved: 2004-10-25 15:30:22
#
# Connection: 192.168.7.222
# Host: 192.168.7.222
# Saved: 2004-10-25 11:20:13
#
# Connection: eFtp
# Host: 127.0.0.1
# Saved: 2004-06-27 15:12:37
#
# Connection: eFtp
# Host: 127.0.0.1
# Saved: 2004-06-27 15:11:15
#
DROP DATABASE if exists eftp;
CREATE DATABASE eftp;
use eftp;
GRANT ALL PRIVILEGES ON *.* TO eftp@"%" IDENTIFIED BY '888888' WITH GRANT OPTION;
Create Table sysuser(
NAME VARCHAR(32) NOT NULL,
PASSWRD VARCHAR(64) NULL,
PRIVLEVEL smallint NOT NULL DEFAULT 1,
PRIMARY KEY(NAME)
);
insert into sysuser(name, passwrd, privlevel)
values('Administrator', password('888888'), 8);
Create Table agents(
ID INT NOT NULL auto_increment,
HOSTNAME VARCHAR(64) NOT NULL,
IPADDR VARCHAR(32) NOT NULL,
HDID VARCHAR(64) NOT NULL,
DEPARTID INT NOT NULL DEFAULT -1,
STATE SMALLINT NOT NULL DEFAULT 0,
NAME VARCHAR(32) NOT NULL DEFAULT 'UNKNOWN',
PRIMARY KEY(ID)
);
Create Table depart(
ID INT NOT NULL auto_increment,
NAME VARCHAR(64) NOT NULL,
PARENTID INT NOT NULL DEFAULT -1,
PRIMARY KEY(ID)
);
INSERT INTO depart(ID, NAME, PARENTID) VALUES(1, '???', -1);
Create Table servers(
ID INT NOT NULL default 1,
IP VARCHAR(16) NOT NULL,
AGCOUNTS INT NOT NULL DEFAULT 0,
PRIMARY KEY(ID)
);