me config file:
..
ServerType standalone
DefaultServeron
Port21
Umask022
Usernobody
Groupnobody
MaxInstances100
PidFile/usr/local/var/proftpd.pid
ScoreboardPath/usr/local/var
SystemLog/usr/local/var/syslog
TransferLog/usr/local/var/xferlog
TimeoutLogin 120
TimeoutIdle 600
TimeoutStalled 3600
RequireValidShelloff
AllowOverwriteon
RootLoginon
UseFtpUsersoff
PersistentPasswd off
AuthPAMAuthoritativeoff
<Directory /*>
AllowOverwriteon
</Directory>
<Global>
AllowRetrieveRestarton
AllowStoreRestart off
DeferWelcome on
DefaultRoot~
AuthPAMoff
#SQLDoAuthon
SQLConnectInfoproftpd@localhost:3306 root ********
SQLAuthTypesPlaintext
SQLUserInfousers NULL uid gid username password NULL NULL shell homedir count
SQLDefaultHomedir"/tmp"
SQLGroupInfogroups groupname gid members
SQLAuthenticateusers groups usersetfast groupsetfast
#SQLAuthenticate users* groups* usersetfast groupsetfast
SQLNamedQuerygetcount SELECT "count, username from users where username='%u'"
SQLNamedQueryupdatecount UPDATE "count=count+1 WHERE username='%u'" users
SQLShowInfoPASS "230" "You've logged on %{getcount} times, %u"
SQLLogPASS updatecount
</Global>