You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: install/tpl/pureftpd_mysql.conf.master
+1-39Lines changed: 1 addition & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -5,45 +5,30 @@
5
5
# #
6
6
##############################################
7
7
8
-
9
8
# Optional : MySQL server name or IP. Don't define this for unix sockets.
10
-
11
9
MYSQLServer {mysql_server_ip}
12
10
13
-
14
11
# Optional : MySQL port. Don't define this if a local unix socket is used.
15
-
16
12
# MYSQLPort 3306
17
13
18
-
19
14
# Optional : define the location of mysql.sock if the server runs on this host.
20
-
21
15
# MYSQLSocket /var/run/mysqld/mysqld.sock
22
16
23
-
24
17
# Mandatory : user to bind the server as.
25
-
26
18
MYSQLUser {mysql_server_ispconfig_user}
27
19
28
-
29
20
# Mandatory : user password. You must have a password.
30
-
31
21
MYSQLPassword {mysql_server_ispconfig_password}
32
22
33
-
34
23
# Mandatory : database to open.
35
-
36
24
MYSQLDatabase {mysql_server_database}
37
25
38
-
39
26
# Mandatory : how passwords are stored
40
27
# Valid values are : "cleartext", "crypt", "md5" and "password"
41
28
# ("password" = MySQL password() function)
42
29
# You can also use "any" to try "crypt", "md5" *and* "password"
43
-
44
30
MYSQLCrypt crypt
45
31
46
-
47
32
# In the following directives, parts of the strings are replaced at
48
33
# run-time before performing queries :
49
34
#
@@ -56,73 +41,50 @@ MYSQLCrypt crypt
56
41
# Very complex queries can be performed using these substitution strings,
57
42
# especially for virtual hosting.
58
43
59
-
60
44
# Query to execute in order to fetch the password
61
-
62
45
MYSQLGetPW SELECT password FROM ftp_user WHERE active = 'y' AND server_id = '{server_id}' AND username="\L" AND (expires IS NULL OR expires="0000-00-00 00:00:00" OR expires > NOW())
63
46
64
-
65
47
# Query to execute in order to fetch the system user name or uid
66
-
67
48
MYSQLGetUID SELECT uid FROM ftp_user WHERE active = 'y' AND server_id = '{server_id}' AND username="\L" AND (expires IS NULL OR expires="0000-00-00 00:00:00" OR expires > NOW())
68
49
69
-
70
50
# Optional : default UID - if set this overrides MYSQLGetUID
71
-
72
51
#MYSQLDefaultUID 1000
73
52
74
-
75
53
# Query to execute in order to fetch the system user group or gid
76
-
77
54
MYSQLGetGID SELECT gid FROM ftp_user WHERE active = 'y' AND server_id = '{server_id}' AND username="\L" AND (expires IS NULL OR expires="0000-00-00 00:00:00" OR expires > NOW())
78
55
79
-
80
56
# Optional : default GID - if set this overrides MYSQLGetGID
81
-
82
57
#MYSQLDefaultGID 1000
83
58
84
-
85
59
# Query to execute in order to fetch the home directory
86
-
87
60
MYSQLGetDir SELECT dir FROM ftp_user WHERE active = 'y' AND server_id = '{server_id}' AND username="\L" AND (expires IS NULL OR expires="0000-00-00 00:00:00" OR expires > NOW())
88
61
89
-
90
62
# Optional : query to get the maximal number of files
91
63
# Pure-FTPd must have been compiled with virtual quotas support.
92
-
93
64
MySQLGetQTAFS SELECT quota_files FROM ftp_user WHERE active = 'y' AND server_id = '{server_id}' AND quota_files != '-1' AND username="\L" AND (expires IS NULL OR expires="0000-00-00 00:00:00" OR expires > NOW())
94
65
95
-
96
66
# Optional : query to get the maximal disk usage (virtual quotas)
97
67
# The number should be in Megabytes.
98
68
# Pure-FTPd must have been compiled with virtual quotas support.
99
-
100
69
MySQLGetQTASZ SELECT quota_size FROM ftp_user WHERE active = 'y' AND server_id = '{server_id}' AND quota_size != '-1' AND username="\L" AND (expires IS NULL OR expires="0000-00-00 00:00:00" OR expires > NOW())
101
70
102
-
103
71
# Optional : ratios. The server has to be compiled with ratio support.
104
-
105
72
MySQLGetRatioUL SELECT ul_ratio FROM ftp_user WHERE active = 'y' AND server_id = '{server_id}' AND ul_ratio != '-1' AND username="\L" AND (expires IS NULL OR expires="0000-00-00 00:00:00" OR expires > NOW())
106
73
MySQLGetRatioDL SELECT dl_ratio FROM ftp_user WHERE active = 'y' AND server_id = '{server_id}' AND dl_ratio != '-1' AND username="\L" AND (expires IS NULL OR expires="0000-00-00 00:00:00" OR expires > NOW())
107
74
108
-
109
75
# Optional : bandwidth throttling.
110
76
# The server has to be compiled with throttling support.
111
77
# Values are in KB/s .
112
-
113
78
MySQLGetBandwidthUL SELECT ul_bandwidth FROM ftp_user WHERE active = 'y' AND server_id = '{server_id}' AND ul_bandwidth != '-1' AND username="\L" AND (expires IS NULL OR expires="0000-00-00 00:00:00" OR expires > NOW())
114
79
MySQLGetBandwidthDL SELECT dl_bandwidth FROM ftp_user WHERE active = 'y' AND server_id = '{server_id}' AND dl_bandwidth != '-1' AND username="\L" AND (expires IS NULL OR expires="0000-00-00 00:00:00" OR expires > NOW())
115
80
116
81
# Enable ~ expansion. NEVER ENABLE THIS BLINDLY UNLESS :
117
82
# 1) You know what you are doing.
118
83
# 2) Real and virtual users match.
119
-
120
84
# MySQLForceTildeExpansion 1
121
85
122
-
123
86
# If you upgraded your tables to transactionnal tables (Gemini,
124
87
# BerkeleyDB, Innobase...), you can enable SQL transactions to
125
88
# avoid races. Leave this commented if you are using the
126
89
# traditionnal MyIsam databases or old (< 3.23.x) MySQL versions.
0 commit comments