mysql>create database pureftpd;
mysql>grant privileges all on pureftpd.* to pureftpuser@localhost identified by 'pureftpuser';
mysql>flush privileges;
mysql>use pureftpd;
Mysql> create table if not exists `users`(
`user` varchar(16) not null default '',
`password` varchar(32) not null default '',
`uid` int(11) not null,
`gid` int (11) not null,
`dir` varchar(128) not null default '',
`quotafiles` int(10) not null default '500',
`quotasize` int(10) not null default '30',
`ulbandwidth` int(10) not null default '80',
`dlbandwidth` int(10) not null default '80',
`ipaddress` varchar(15) not null default '*',
`comment` tinytext,
`status` enum('0','1') not null default '1',
`ulratio` smallint(5) not null default '1',
`dlratio` smallint(5) not null default '1',
primary key (`user`),
unique key `user` (`user`)
)engine=innodb default charset=utf8;
mysql> show tables;
+--------------------+
| Tables_in_pureftpd |
+--------------------+
| users |
+--------------------+
1 row in set (0.00 sec)
mysql> desc users;
+-------------+---------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------+---------------+------+-----+---------+-------+
| user | varchar(16) | NO | PRI | | |
| password | varchar(32) | NO | | | |
| uid | int(11) | NO | | NULL | |
| gid | int(11) | NO | | NULL | |
| dir | varchar(128) | NO | | | |
| quotafiles | int(10) | NO | | 500 | |
| quotasize | int(10) | NO | | 30 | |
| ulbandwidth | int(10) | NO | | 80 | |
| dlbandwidth | int(10) | NO | | 80 | |
| ipaddress | varchar(15) | NO | | * | |
| comment | tinytext | YES | | NULL | |
| status | enum('0','1') | NO | | 1 | |
| ulratio | smallint(5) | NO | | 1 | |
| dlratio | smallint(5) | NO | | 1 | |
+-------------+---------------+------+-----+---------+-------+
14 rows in set (0.15 sec)
<p>
<br>
</p>
<p>
<br>
</p>