考试网 >> IT认证 >> Linux >> Linux动态 >> ProFTPD支持MySQL添加虚拟用户认证及磁盘限额

ProFTPD支持MySQL添加虚拟用户认证及磁盘限额

发布时间:2006-06-28 09:54     点击:
分页:上一页  1 2 [3] 4 5 6 7 8 9 10  下一页  后10页

Enter password: 注:在这里请您输入MySQL的管理密码;

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 41 to server version: 4.1.11

Type ’help;’ or ’\h’ for help. Type ’\c’ to clear the buffer.

mysql>create database proftpd;

mysql>Grant select,insert,update,delete,create,drop,index,alter,create temporary tables,lock tables on proftpd.* to proftpd@localhost Identified by "123456";

mysql>quit

说明:

create database proftpd; 这行是创建名为proftpd的数据库;

Grant 这行是为proftpd 数据库授权,让用户名为proftpd,密码为123456(这只是一个例子,密码自己定义),这个用来管理proftpd这个数据库;

quit 这行是退出mysql界面;

3.2、导入proftpd数据库;

下面是一个现成的数据库,你只需要导入就行了,比较简单;把下面的代码拷贝下来,然后另存为 proftpd.sql;然后通过下面的命令来导入;

[root@localhost ~]# mysql -uproftpd -p proftpd <proftpd.sql

Enter password: 在这里输入proftpd 数据库管理员proftpd 的密码,我们前面举例是123456,以你设置的为准;

下面是proftpd的数据库,您可以拷贝下来,另存为 proftpd.sql ,然后用上面的命令来导入;

-- 数据库: `proftpd`

--

-- --------------------------------------------------------

--

-- 表的结构 `ftpgroups`

-- 

CREATE TABLE `ftpgroups` (

  `groupname` varchar(30) NOT NULL default ’’,
分页:上一页  1 2 [3] 4 5 6 7 8 9 10  下一页  后10页
版权申明:未经书面授权请勿转载本站信息!!作品版权归所属媒体与作者所有!!
发表评论: 匿名发表 用户名: 查看评论
您将承担一切因您的行为、言论而直接或间接导致的民事或刑事法律责任
留言板管理人员有权保留或删除其管辖留言中的任意内容
本站提醒:不要进行人身攻击。谢谢配合。
在本站搜索相关信息
2003-2005 Ksw123.com All Rights Reserved. - TOP
Copyright © 2006 Ksw123.com. All rights reserved.中国考题网 版权所有