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

ת MYSQLÖеÄmy.ini»òmy.cnfÅäÖÃ˵Ã÷

mysqld³ÌÐò--Ŀ¼ºÍÎļþ
basedir = path ʹÓøø¶¨Ä¿Â¼×÷Ϊ¸ùĿ¼(°²×°Ä¿Â¼)¡£
character-sets-dir = path ¸ø³ö´æ·Å×Å×Ö·û¼¯µÄĿ¼¡£
datadir = path ´Ó¸ø¶¨Ä¿Â¼¶ÁÈ¡Êý¾Ý¿âÎļþ¡£
pid-file = filename Ϊmysqld³ÌÐòÖ¸¶¨Ò»¸ö´æ·Å½ø³ÌIDµÄÎļþ(½öÊÊÓÃÓÚUNIX/Linuxϵͳ); Init-V½Å±¾ÐèҪʹÓÃÕâ¸öÎļþÀïµÄ½ø³ÌID½áÊømysqld½ø³Ì¡£
socket = filename ΪMySQL¿Í»§³ÌÐòÓë·þÎñÆ÷Ö®¼äµÄ±¾µØͨÐÅÖ¸¶¨Ò»¸öÌ×½Ó×ÖÎļþ(½öÊÊÓÃÓÚUNIX/Linuxϵͳ; ĬÈÏÉèÖÃÒ»°ãÊÇ/var/lib/mysql/mysql.sockÎļþ)¡£
    ÔÚWindows»·¾³Ï£¬Èç¹ûMySQL¿Í»§Óë·þÎñÆ÷ÊÇͨ¹ýÃüÃû¹ÜµÀ½øÐÐͨÐŵģ¬--sockÑ¡Ïî¸ø³öµÄ½«ÊǸÃÃüÃû¹ÜµÀµÄÃû×Ö(ĬÈÏÉèÖÃÊÇMySQL)¡£
lower_case_table_name = 1/0 ÐÂĿ¼ºÍÊý¾Ý±íµÄÃû×ÖÊÇ·ñÖ»ÔÊÐíʹÓÃСд×Öĸ; Õâ¸öÑ¡ÏîÔÚWindows»·¾³ÏµÄĬÈÏÉèÖÃÊÇ1(Ö»ÔÊÐíʹÓÃСд×Öĸ)¡£
mysqld³ÌÐò--ÓïÑÔÉèÖÃ
character-sets-server = name ÐÂÊý¾Ý¿â»òÊý¾Ý±íµÄĬÈÏ×Ö·û¼¯¡£ÎªÁËÓëMySQLµÄÔçÆÚ°æ±¾±£³Ö¼æÈÝ£¬Õâ¸ö×Ö·û¼¯Ò²¿ÉÒÔÓÃ--default-character-setÑ¡Ïî¸ø³ö; µ«Õâ¸öÑ¡ÏîÒѾ­ÏÔµÃÓеã¹ýʱÁË¡£
collation-server = name ÐÂÊý¾Ý¿â»òÊý¾Ý±íµÄĬÈÏÅÅÐò·½Ê½¡£
lanuage = name ÓÃÖ¸¶¨µÄÓïÑÔÏÔʾ³ö´íÐÅÏ¢¡£
mysqld³ÌÐò--ͨÐÅ¡¢ÍøÂç¡¢ÐÅÏ¢°²È«
enable-named-pipes ÔÊÐíWindows 2000/XP»·¾³ÏµĿͻ§ºÍ·þÎñÆ÷ʹÓÃÃüÃû¹ÜµÀ(named pipe)½øÐÐͨÐÅ¡£Õâ¸öÃüÃû¹ÜµÀµÄĬÈÏÃû×ÖÊÇMySQL£¬µ«¿ÉÒÔÓÃ--socketÑ¡ÏîÀ´¸Ä±ä¡£
local-infile [=0] ÔÊÐí/½ûֹʹÓÃLOAD DATA LOCALÓï¾äÀ´´¦Àí±¾µØÎļþ¡£
myisam-recover [=opt1, opt2, ...] ÔÚÆô¶¯Ê±×Ô¶¯ÐÞ¸´ËùÓÐÊÜËðµÄMyISAMÊý¾Ý±í¡£Õâ¸öÑ¡ÏîµÄ¿ÉÈ¡ÖµÓÐ4ÖÖ:DEFAULT¡¢BACKUP¡¢QUICKºÍFORCE; ËüÃÇÓëmyisamchk³ÌÐòµÄͬÃûÑ¡Ïî×÷ÓÃÏàͬ¡£
old-passwords ʹÓÃMySQL 3.23ºÍ4.0°æ±¾ÖеÄÀÏËã·¨À´¼ÓÃÜmysqlÊý¾Ý¿âÀïµÄÃÜÂë(ĬÈÏʹÓÃMySQL 4.1°æ±¾¿ªÊ¼ÒýÈëµÄмÓÃÜËã·¨)¡£
port = n ΪMySQL³ÌÐòÖ¸¶¨Ò»¸öTCP/IPͨÐŶ˿Ú(ͨ³£ÊÇ3306¶Ë¿Ú)¡£
safe-user-create Ö»ÓÐÔÚmysql.userÊý¾Ý¿â±íÉÏÓµÓÐINSERTȨÏÞµÄÓû§²ÅÄÜʹÓÃGRANTÃüÁî; ÕâÊÇÒ»ÖÖË«±£ÏÕ»úÖÆ(´ËÓû§»¹±ØÐë¾ß±¸GRANTȨÏÞ²ÅÄÜÖ´ÐÐGRANTÃüÁî)¡£
shared-memory ÔÊÐíʹÓÃÄÚ´æ(shared memory)½øÐÐͨÐÅ(½öÊÊÓÃÓÚWindows)¡£
shared-memory-base-name = name ¸ø¹²ÏíÄÚ´æ¿éÆðÒ»¸öÃû×Ö(ĬÈϵÄÃû×ÖÊÇMySQL)¡£
skip-grant-tables ²»Ê¹ÓÃmysqlÊý¾Ý¿âÀïµÄÐÅÏ¢À´½øÐзÃÎÊ¿ØÖÆ(¾¯¸æ:Õ⽫ÔÊÐíÓû§ÈκÎÓû


Ïà¹ØÎĵµ£º

mysql ʱ¼äº¯Êý

ÀïÊÇÒ»¸öʹÓÃÈÕÆÚº¯ÊýµÄÀý×Ó¡£ÏÂÃæµÄ²éѯѡÔñÁËËùÓмǼ£¬Æädate_colµÄÖµÊÇÔÚ×îºó30ÌìÒÔÄÚ£º 
¡¡¡¡mysql> SELECT something from table 
¡¡¡¡WHERE TO_DAYS(NOW()) - TO_DAYS(date_col) <= 30; 
   select   TO_DAYS(NOW());
   select now() ;
¡¡¡¡DAYOFWEEK( ......

iis+php5+mysqlÅäÖÃ

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

PHPÍæתMySQLÖ®Íâ¼üÔ¼Êø ÄÏÈý·½

ÔÚ±¾ÎÄÖУ¬ÎÒÃǽ«Ñ§Ï°ÈçºÎͨ¹ýPHP 5µÄÒ»¸ö»ù±¾³éÏóÀàʹÓÃÍâ¼üÔ¼ÊøÀ´¸üÐÂÁ½¸öInnoDB±íµÄÊý¾Ý¡£ ÎÒÃǽ«Í¨¹ý¾ßÌåʾÀýÀ´ËµÃ÷ÈçºÎͨ¹ý·þÎñÆ÷¶Ë½Å±¾ÓïÑÔÀ´Ê¹ÓÃÍâ¼üÔ¼Êø¡£
¡¡¡¡Ò»¡¢ÀûÓÃÍâ¼üÔ¼Êø¸üÐÂMySQLÖеÄÊý¾Ý
¡¡¡¡ÏÖÔÚ£¬×îÁ÷ÐеĿªÔ´¹ØϵÐÍÊý¾Ý¿â¹ÜÀíϵͳ·ÇMySQLĪÊô£¬¶øMySQLÓÖÖ§³Ö¶à¸ö´æ´¢ÒýÇ棬ÆäÖÐĬÈϵÄÒ²ÊÇËٶȽϿìµÄ´ ......

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_mys ......

mysql һЩ¼òµ¥²Ù×÷ Rubicon

Á˽âÁËһЩ×î»ù±¾µÄ²Ù×÷ÃüÁîºó£¬ÎÒÃÇÔÙÀ´Ñ§Ï°ÈçºÎ´´½¨Ò»¸öÊý¾Ý¿âºÍÊý¾Ý¿â±í¡£
¡¡¡¡1¡¢Ê¹ÓÃSHOWÓï¾äÕÒ³öÔÚ·þÎñÆ÷Éϵ±Ç°´æÔÚʲôÊý¾Ý¿â£º
mysql> SHOW DATABASES; +----------+
| Database | +----------+ | mysql |
| test | +----------+ 3 rows in set (0.00 sec)
¡¡¡¡2¡¢´´½¨Ò»¸öÊý¾Ý¿âabccs
¡¡¡¡mysql> ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ