Configure the database connection of Serv-U

Source: Internet
Author: User
Tags ftp client

Earlier versions of Serv-U (such as versions earlier than 4.1) rely on plug-ins to connect to databases. The latest version 5.0.0.9 provides support for ODBC databases, the configuration process of the Access database is as follows:

1. Create a database file. Assume It is ServU. Create a table in the database. Assume the name is user and four columns are created in the Table. Assume the names are username, password, accessrule, and homedir respectively.

2. Create an ODBC Data Source. Suppose you have created a system DSN named test.

3. Create a new "new domain" in ServU, create it according to the wizard, and select "store in ODBC database" in the last step"

4. Click the newly created domain name in the tree control on the left of ServU, select the "ODBC" tab on the right, and fill in the fields as needed.Note: there is a small problem in the 5.0.0.9 online document. It indicates that at least one table-User Account table is required. This table requires at least three columns: User Name, user password, and home directory. however, in practice, a column is also required: directory/IP access rules.According to the above process, the corresponding input here:

ODBC source name: Test

Table Name of user: User

Column name of Account name: Username

Column name of password: Password

Column name of DIR/IP access rule: Access

Column name of Home Directory: homedir

The above are the minimum Database Configuration Requirements for ServU. Click the application button after the configuration is complete.

Test: Open the database directly, add a user testuser to the table user, and then use the FTP client software to log on as the testuser user (Note: ServU uses MD5 to encrypt the password, if the plain text cannot be entered directly in the password field of the database table, it is best to use ServU to create a user and then copy the value of the password column in the table to testuser)

If the newly created domain cannot be started, you can view the task log in server-> activity-> session log.

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.