Functions used by the Pureftpd MYSQL database

Source: Internet
Author: User

PureftpdIt is a fast, high-quality, and fully functional ftp server. The most important thing is that it supports setting the Default Client encoding. Pureftpd is very powerful and useful, this article analyzes the functions used by MYSQL databases under Pureftpd.

MYSQLGetPW SELECT Password FROM users WHERE User = "L"

# Password field. I use the Password in the users table as the Password field.

MYSQLGetUID SELECT Uid FROM users WHERE User = "L"

# UID user ID field

MYSQLDefaultUID 1000

# Default UID (Note: If this option is enabled, MYSQLGetUID will be ineffective)

MYSQLGetGID SELECT Gid FROM users WHERE User = "L"

# GID group ID field

MYSQLDefaultGID 1000

# Default GID (Note: If this option is enabled, MYSQLGetGID will be ineffective)

MYSQLGetDir SELECT Dir FROM users WHERE User = "L"

# FTP user directory such as/home/web/www-9812-net

MySQLGetQTAFS SELECT QuotaFiles FROM users WHERE User = "L"

# Disk Quota and file quantity limit. For example, 1000 allows users to upload thousands of files.

MySQLGetQTASZ SELECT QuotaSize FROM users WHERE User = "L"

# Disk quota, FTP user space limit (unit: M), for example: 100 M

MySQLGetRatioUL SELECT ULRatio FROM users WHERE User = "L"

MySQLGetRatioDL SELECT DLRatio FROM users WHERE User = "L"

# Upload/download Ratio. MySQLGetRatioUL indicates the upload ratio and MySQLGetRatioDL indicates the download ratio. Example: 1: 5

MySQLGetBandwidthUL SELECT ULBandwidth FROM users WHERE User = "L"

MySQLGetBandwidthDL SELECT DLBandwidth FROM users WHERE User = "L"

# Download/download bandwidth (unit: KB/s ). MySQLGetBandwidthUL upload bandwidth and MySQLGetBandwidthDL download bandwidth. For example, upload

Kb/s, download 50KB/s

MySQLForceTildeExpansion 1

MySQLTransactions On

Through the description and analysis in the article, we learned which functions are used in the MYSQL database and their Chinese parsing! Hope to help you!

  • Pureftpd-mysql.conf settings
  • Pureftpd
  • PureFTPd adds an FTP user database to mysql
  • PureFTPd configuration file Overview
  • Pureftpd tips to benefit you
  • Introduction to Pureftpd
  • Folder permission for Pureftpd configuration in ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.