Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

vsftpÅäÖÃÑéÖ¤·½Ê½mysqlºÍÎļþÂÇÄâÓû§

ÒÔÏÂÄÚÈÝÔÚubuntu 9.04 serverϵͳÉϲâÊÔͨ¹ý
ÓÃapt-get install vsftp°²×°µÄʱºòÏà¹ØµÄÎļþλÖãº
Ö÷ÅäÖÃÎļþ£º/etc/vsftpd.conf
ÑéÖ¤ÅäÖÃÎļþ/etc/pam.d/vsftpd
ÖØÆô£º/etc/init.d/vsftpd restart
vsftp MysqlÑéÖ¤·½Ê½£º
MYSQLÒѾ­°²×°ÔÚ/usr/local/mysql
Ö±½Ó°²×°vsftp
sudo apt-get install vsftp
°²×°pam_mysql
ÏÂÔØ£ºhttp://sourceforge.net/projects/pam-mysql/
½âѹ£º
tar zxvf pam_mysql....tar.gz
cd pam_mysql...
./configure--with-openssl --with-mysql=/usr/local/mysql/
Èç¹û³öÏÖ£ºconfigure: error: Cannot find pam headers. Please check if your system is ready for pam module development
°²×°libpam0g-dev:
sudo apt-get install libpam0g-dev
È»ºó±àÒë²¢°²×°£º
sudo make install
»áÔÚ/lib/security/´´½¨£ºpam_mysql.so
´´½¨Êý¾Ý¿â£ºftp
create database ftp;
´´½¨±í£º
CREATE TABLE IF NOT EXISTS `users` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `name` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
  `passwd` char(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE `ftp`.`logs` (
`id` INT(10) NOT NULL AUTO_INCREMENT,
`pid` INT( 10 ) NOT NULL  ,
`content` TEXT NOT NULL ,
`user` VARCHAR( 32 ) NOT NULL ,
`host` VARCHAR( 32 ) NOT NULL ,
`rhost` VARCHAR( 32 ) NOT NULL ,
`logtime` TIMESTAMP NOT NULL ,
PRIMARY KEY ( `id` )
) ENGINE = MYISAM ;
´´½¨Ò»¸öMYSQLÓû§£ºftp
Ö»°Ñftp¿â¸ø´ËÓû§£º
GRANT ALL PRIVILEGES ON `ftp` . * TO 'ftp'@'localhost' WITH GRANT OPTION ;
Ôö¼ÓmysqlÑéÖ¤·½Ê½£º
Ôö¼ÓÒ»¸öÎļþ£º/etc/pam.d/vsftpd.mysqlÄÚÈÝÈçÏÂ
auth required /lib/security/pam_mysql.so config_file=/srv/ftp/pam_mysql.conf
account required /lib/security/pam_mysql.so config_file=/srv/ftp/pam_mysql.conf
È»ºóн¨Ò»¸ö/srv/ftp/pam_mysql.conf
ÄÚÈÝÈçÏ£º
ÑéÖ¤²¿·Ö£º
users.host=localhost
users.database=ftp
users.db_user=ftp
users.db_passwd=123456
users.table=users
users.user_column=name
users.password_column=passwd
users.password_crypt=0´Ë´¦Îª0ʱÃÜÂëΪÃ÷ÎÄ£¬


Ïà¹ØÎĵµ£º

DebianÏÂMySQLÔÊÐíÔ¶³ÌÁ¬½ÓµÄһЩÉèÖã¡

ÒòΪMySQLÔÙdebianÏÂĬÈÏÊDz»ÔÊÐíÔ¶³ÌÁ¬½ÓµÄ£¬ËùÒÔÐèҪעÊ͵ôÕâ¸öÏÞÖÆ¡£ÎÒµÄMySQLÊÇÓÃapt-get°²×°µÄ£¬ËùÒÔ·¾¶ÊÇĬÈϵģ¨Èç¹ûÊÇ×Ô¼º
ÊÖ¶¯°²×°£¬¿ÉÒÔ×Ô¼ºÑ°ÕÒÏÂÕýÈ·µÄ·¾¶£©£¬ÓÃÃüÁî vi /etc/mysql/my.cnf ´ò¿ªÎļþ£¬×¢Ê͵ô bind-address = 127.0.0.1   ±£´æ:wq »Ø³µ¡£
È»ºóÔٵǼµ½MySQL·þÎñÆ÷¶Ë£¬ÔÚmysql¿âÏÂÖ ......

iis+php5+mysqlÅäÖÃ

ÔËÐл·¾³£ºwindows xp sp2
          IIS v5.1
          PHP 5.3.1-Win32-VC9-x86
          Mysql 5.0
°²×°²½Ö裺
       °²×°IIS5.1
ÔÚ ......

mysql,sqlserver,oracleÈýÖÖÊý¾Ý¿âµÄ´ó¶ÔÏó´æÈ¡


mysql ´ó¶ÔÏó´æÈ¡:
ÀàÐÍÒ»°ãÓ¦¸ÃÓÃmediumblod,
blobÖ»ÄÜ´æ2µÄ16´Î·½¸öbyte,
mediumblodÊÇ24´Î·½,
Ò»°ãÀ´Ëµ¹»ÓÃÁË.longblobÊÇ32´Î·½ÓÐЩ´ó.
MYSQLĬÈÏÅäÖÃÖ»ÄÜ´æ1M´óСµÄÎļþ,ÒªÐÞ¸ÄÅäÖÃ,WIN°æ±¾µÄÔÚmysql.iniÎļþÖÐ
ÐÞ¸Ämax_allowed_packet,net_buffer_lengthµÈ¼¸¸ö²ÎÊý,»òÖ±½ÓSET GLOBAL varName=value.
linux°æ± ......

MySQL´æ´¢ÒýÇæ Ó¦ÓÃ


MySQL·þÎñÆ÷²ÉÓÃÁËÄ£¿é»¯·ç¸ñ£¬¸÷²¿·ÖÖ®¼ä±£³ÖÏà¶Ô¶ÀÁ¢£¬ÓÈÆäÌåÏÖÔÚ´æ´¢¼Ü¹¹ÉÏ¡£´æ´¢ÒýÇ渺Ôð
¹ÜÀíÊý¾Ý´æ´¢£¬ÒÔ¼°MySQLµÄË÷Òý¹ÜÀí¡£Í¨¹ý¶¨ÒåµÄAPI£¬MySQL·þÎñÆ÷Äܹ»Óë´æ´¢ÒýÇæ½øÐÐͨÐÅ¡£Ä¿Ç°Ê¹ÓÃ×î¶àµÄÊÇMyISAMºÍInnoDB¡£
InnoDB±»OracleÊÕ¹ººó£¬MySQL×ÔÐпª·¢µÄд洢ÒýÇæFalcon½«ÔÚMySQL6.0°æ±¾Òý½ø¡£
MyISAMÒýÇæÊÇÒ ......

mysqlÖÐÎÄÂÒÂë½â¾ö

ÓÉÓÚÄÜÖ±½ÓÔÚMYSQLÊý¾Ý¿âÀïÌí¼ÓÖÐÎÄÊý¾Ý,²¢ÇÒÄÜÕý³£ÏÔʾ,˵Ã÷ÎÒµÄ±í¶¼Ê¹ÓÃÁËÕýÈ·µÄ×Ö·û±àÂë,¾­¹ý²é¿´ºó,È·ÈÏÁË,ÎÒÈ«²¿µÄ±íÒÔ¼°×ֶζ¼Ê¹ÓÃÁËUTF-8µÄ±àÂë,µ«ÊÇΪʲô³ÌÐòÌí¼ÓµÄÖÐÎÄÊý¾Ý¾Í²»ÐÐÄØ?
Æäʵ,Ô­ÒòÔÚÓÚMYSQL·þÎñÆ÷ʹÓõÄĬÈϱàÂë,ÒÔ¼°Êý¾Ý¿âµÄĬÈϱàÂë,ºÜ¶àÈËÒѾ­ºÜСÐĵÄÔÚ½¨Á¢±íʱ¹Ø×¢±íµÄ×Ö·û±àÂë,È´ºöÂÔÁËÊý¾Ý¿â ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ