免费注册 查看新帖 |

Chinaunix

广告
  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2117 | 回复: 4
打印 上一主题 下一主题

晕死啊,启动pureftp出现"无效的SQL语句"421错误! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-08-30 23:43 |只看该作者 |倒序浏览
刚装过pureftp,一切正常,今天在另一台机器上装,出现这种无聊的错误,偶的配置文件是完全一样的啊

#/usr/local/sbin/pure-config.pl /usr/local/etc/pure-ftpd.conf
Running: /usr/local/sbin/pure-ftpd -A -b -c10 -B -C3 -D -E -fftp -H -I15 -lmysql:/usr/local/etc/pureftpd-mysql.conf -L2000:8 -m4 -s -T300 -U133:022 -u2000 -w -Ow3c:/var/log/pureftpd.log -R -j -k99 -Z
421 配置错误: 无效的SQL语句: /usr/local/etc/pureftpd-mysql.conf

pureftpd-mysql.conf:


  1. ##############################################
  2. #                                            #
  3. # Sample Pure-FTPd Mysql configuration file. #
  4. # See README.MySQL for explanations.         #
  5. #                                            #
  6. ##############################################


  7. # Optional : MySQL server name or IP. Don't define this for unix sockets.

  8. MYSQLServer     192.168.0.2


  9. # Optional : MySQL port. Don't define this if a local unix socket is used.

  10. MYSQLPort       3306


  11. # Optional : define the location of mysql.sock if the server runs on this host.

  12. MYSQLSocket     /tmp/mysql.sock


  13. # Mandatory : user to bind the server as.

  14. MYSQLUser       pureftpd


  15. # Mandatory : user password. You must have a password.

  16. MYSQLPassword   xxxxx


  17. # Mandatory : database to open.

  18. MYSQLDatabase   pureftpd


  19. # Mandatory : how passwords are stored
  20. # Valid values are : "cleartext", "crypt", "md5" and "password"
  21. # ("password" = MySQL password() function)
  22. # You can also use "any" to try "crypt", "md5" *and* "password"

  23. MYSQLCrypt      md5


  24. # In the following directives, parts of the strings are replaced at
  25. # run-time before performing queries :
  26. #
  27. # \L is replaced by the login of the user trying to authenticate.
  28. # \I is replaced by the IP address the user connected to.
  29. # \P is replaced by the port number the user connected to.
  30. # \R is replaced by the IP address the user connected from.
  31. # \D is replaced by the remote IP address, as a long decimal number.
  32. #
  33. # Very complex queries can be performed using these substitution strings,
  34. # especially for virtual hosting.


  35. # Query to execute in order to fetch the password

  36. MYSQLGetPW      SELECT Password FROM users WHERE User="\L"


  37. # Query to execute in order to fetch the system user name or uid

  38. MYSQLGetUID     SELECT Uid FROM users WHERE User="\L"


  39. # Optional : default UID - if set this overrides MYSQLGetUID

  40. MYSQLDefaultUID 2000


  41. # Query to execute in order to fetch the system user group or gid

  42. MYSQLGetGID     SELECT Gid FROM users WHERE User="\L"


  43. # Optional : default GID - if set this overrides MYSQLGetGID

  44. MYSQLDefaultGID 2000


  45. # Query to execute in order to fetch the home directory
  46. MYSQLGetDir     SELECT Dir FROM users WHERE User="\L"


  47. # Optional : query to get the maximal number of files
  48. # Pure-FTPd must have been compiled with virtual quotas support.

  49. MySQLGetQTAFS  SELECT QuotaFiles FROM users WHERE User="\L"


  50. # Optional : query to get the maximal disk usage (virtual quotas)
  51. # The number should be in Megabytes.
  52. # Pure-FTPd must have been compiled with virtual quotas support.

  53. MySQLGetQTASZ  SELECT QuotaSize FROM users WHERE User="\L"


  54. # Optional : ratios. The server has to be compiled with ratio support.

  55. MySQLGetRatioUL SELECT ULRatio FROM users WHERE User="\L"
  56. MySQLGetRatioDL SELECT DLRatio FROM users WHERE User="\L"


  57. # Optional : bandwidth throttling.
  58. # The server has to be compiled with throttling support.
  59. # Values are in KB/s .

  60. MySQLGetBandwidthUL SELECT ULBandwidth FROM users WHERE User="\L"
  61. MySQLGetBandwidthDL SELECT DLBandwidth FROM users WHERE User="\L"

  62. # Enable ~ expansion. NEVER ENABLE THIS BLINDLY UNLESS :
  63. # 1) You know what you are doing.
  64. # 2) Real and virtual users match.

  65. # MySQLForceTildeExpansion 1


  66. # If you upgraded your tables to transactionnal tables (Gemini,
  67. # BerkeleyDB, Innobase...), you can enable SQL transactions to
  68. # avoid races. Leave this commented if you are using the
  69. # traditionnal MyIsam databases or old (< 3.23.x) MySQL versions.

  70. MySQLTransactions On

复制代码

论坛徽章:
2
丑牛
日期:2013-09-29 09:47:222015七夕节徽章
日期:2015-08-21 11:06:17
2 [报告]
发表于 2005-08-31 09:18 |只看该作者

晕死啊,启动pureftp出现"无效的SQL语句"421错误!

数据库pureftpd有吗?用户pureftpd有吗?

论坛徽章:
2
丑牛
日期:2013-09-29 09:47:222015七夕节徽章
日期:2015-08-21 11:06:17
3 [报告]
发表于 2005-08-31 09:19 |只看该作者

晕死啊,启动pureftp出现"无效的SQL语句"421错误!

http://bbs.chinaunix.net/forum/viewtopic.php?t=591054&show_type=
参考这个帖子试试吧

论坛徽章:
0
4 [报告]
发表于 2005-08-31 13:52 |只看该作者

晕死啊,启动pureftp出现"无效的SQL语句"421错误!

晕死啊,那个Makefile就算多个空格,都会出些很奇怪的问题。奉劝大家对Makefile添加东西时,小心点。

论坛徽章:
2
丑牛
日期:2013-09-29 09:47:222015七夕节徽章
日期:2015-08-21 11:06:17
5 [报告]
发表于 2005-08-31 15:03 |只看该作者

晕死啊,启动pureftp出现"无效的SQL语句"421错误!

只知道mrtg的配置文件多空格会不对,Makefile的好像没这么严重吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP