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

Éý¼¶mysqlÊý¾Ý¿âµÄ·½·¨

Éý¼¶mysqlÊý¾Ý¿âµÄ·½·¨£º
1.         ÏÂÔØ°²×°½éÖÊmysql-essential-5.1.46-win32.msi
¿ÉÒÔµ½¹ÙÍøhttp://www.mysql.com/click.php?e=35166»òÆäËûÍøվȥÏÂÔØ£»
2.         ±¸·ÝmysqlµÄÊý¾Ý£»
ÔËÐÐcmd´ò¿ªÃüÁîÌáʾ·û£¬½øÈëµ½mysqlÈí¼þµÄbinĿ¼ÏÂͨ¹ýmysqldumpÃüÁî½øÐб¸·Ý£»
C:\mysql\bin>mysqldump -uroot -p -c -Q --add-drop-table --default-character-set=gb2312 ipmngr > D:\db20100525backup.sql
Enter password:£¨ÊäÈëÃÜÂëÒ»°ãÃÜÂëΪ¿ÕÖ±½Ó»Ø³µ¼´¿É£©
Êý¾Ý¿âÖеÄÐÅÏ¢»áµ¼Èëdb20100525backup.sqlÎļþÖУ»
ÔËÐÐservices.msc´ò¿ª·þÎñ´°¿Ú£¬Í£Ö¹µô¾ÉmysqlµÄ·þÎñ¡£ÎªÁË·ÀÖ¹Éý¼¶Êý¾Ý¿âʧ°Ü±ãÓÚ»Ö¸´£¬ÎÒ»¹¶ÔÎļþ¿½±´×öÁ˸öÓ²±¸·Ý±ãÓÚ»Ö¸´£»
¸´ÖÆmysqlÈí¼þµÄĿ¼£¬Õ³Ìùµ½±£´æµÄĿ¼Ï£»
±¸·ÝÍê±Ï£»
3.         жÔؾɵÄmysqlÈí¼þ£¬¶ÀÁ¢mysql°²×°°ü°²×°µÄÔËÐÐappwiz.cplжÔØmysqlÈí¼þ£»
¼ò»¯°²×°°ü°²×°µÄÔËÐÐappwiz.cplжÔØipaddr managementÈí¼þ£»
ÒªÏë³¹µ×жÔظɾ»£¬»¹¸øɾ³ý֮ǰmysqlÈí¼þµÄÏà¹ØĿ¼£»
ÔËÐÐregedit´Ó×¢²á±íÖÐËÑË÷mysqlÏà¹ØµÄ¼Ç¼£¬È·ÈϺóɾ³ý£»
4.         °²×°Ð°æmysql5.1Èí¼þ£»
ͨ¹ýÏòµ¼°²×°mysqlÈí¼þ£»
Ñ¡ÔñCustom×Ô¶¯ÒÑ°²×°£»
Ñ¡ÔñÊʵ±µÄĿ¼°²×°È«²¿£»
È·ÈÏÏà¹ØÐÅÏ¢ÎÞÎóºóµã»÷Install½øÐа²×°£»
°²×°ºóͨ¹ýÏòµ¼ÅäÖÃmysql£»
ÏêϸÅäÖã»
Ñ¡ÔñServer Machine£»
Ñ¡ÔñMultifunction Database£»
Ñ¡Ôñ±í¿Õ¼ä´æ·ÅµÄλÖã»
Ñ¡ÔñDecision Support£»
Ñ¡ÔñmysqlʹÓõĶ˿ڣ¬²¢¼Óµ½·À»ðǽµ±ÖУ»
Ñ¡ÔñĬÈϵÄ×Ö·ûgbk£»
Ñ¡Ôñ·þÎñÃû½øÐзþÎñµÄ°²×°£»
ÉèÖùÜÀíÔ±µÄÃÜÂ룻
×îºóÖ´Ðа²×°Íê±Ï£»
5.         »Ö¸´¾ÉÓÐmysqlÊý¾Ý¿âµÄÊý¾Ý£»
Ê×ÏÈͨ¹ý³õʼ°²×°µÄD:\BOCO\ipnms\ipaddmgr\db\ ipmngr.sql
»Ö¸´³õʼÊý¾Ý£»
ÔËÐÐcmd´ò¿ªÃüÁîÌáʾ·û£¬½øÈëµ½mysqlÈí¼þµÄbinĿ¼Ï£¬Ö´ÐÐmysql
D:\BOCO\program\MysqlServer5.1\bin>mysql -uroot -p mysql
Enter password: ******
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 463
Server version: 5.1.46-community MySQL Community Server (GPL)
 
Copyright (c) 2000, 2010, Oracle and/o


Ïà¹ØÎĵµ£º

mysqlÁ÷³Ìº¯Êý

MySQLÖеÄÁ÷³Ìº¯Êý
º¯Êý
¹¦ÄÜ
IF(value,t ,f)
Èç¹ûvalueΪÕ棬·µ»Øt£¬·ñÔò·µ»Øf
IFNULL(value1,value2)
Èç¹ûvalue1²»Îª¿Õ·µ»Øvalue1,·ñÔò·µ»Øvalue2
CASE WHEN [value1] THEN [result1] … ELSE [default] END
Èç¹ûvalue1ΪÕæ ·µ»Øresult2 ·ñÔò·µ»Ødefault
CASE [expr] WHEN [value1] THEN [result1] &helli ......

MySQL´æ´¢ÒýÇæ

MySQLÓжàÖÖ´æ´¢ÒýÇ棺
MyISAM¡¢InnoDB¡¢MERGE¡¢MEMORY(HEAP)¡¢BDB(BerkeleyDB)¡¢EXAMPLE¡¢FEDERATED¡¢ARCHIVE¡¢CSV¡¢BLACKHOLE¡£
MySQLÖ§³ÖÊý¸ö´æ´¢ÒýÇæ×÷Ϊ¶Ô²»Í¬±íµÄÀàÐ͵Ĵ¦ÀíÆ÷¡£MySQL´æ´¢ÒýÇæ°üÀ¨´¦ÀíÊÂÎñ°²È«±íµÄÒýÇæºÍ´¦Àí·ÇÊÂÎñ°²È«±íµÄÒýÇ棺
¡ô MyISAM¹ÜÀí·ÇÊÂÎñ±í¡£ËüÌṩ¸ßËÙ´æ´¢ºÍ¼ìË÷£¬ÒÔ¼°È«ÎÄËÑË÷ÄÜÁ¦¡ ......

ÕûºÏfreeBSDÏÂnginx+php+mysql°²×°·½°¸£¨ports°²×°£©

  ×î½üÒ»Ö±ÔÚÑо¿freeBSDÏÂnginx+php+mysqlµÄ°²×°£¬¿´Á˺ܶàÍøÉϵÄ×ÊÁÏÊÕ»ñ²»Ð¡£¬²»¹ý´ó²¿·Ö¶¼ÊDZàÒë°²×°£¬Ïà¶Ô³õѧÕßÀ´Ëµ±È½Ï¸´ÔÓ£¬²»ÈÝÒ×Àí½â£¬ËùÒÔÎÒÕûºÏÁËһЩports°²×°µÄ×ÊÁÏ£¬¶¼ÊǾ­¹ý×Ô¼ºÑéÖ¤ºóµÄ£¬°²×°³É¹¦Ò²±È½ÏÈÝÒ×Àí½â£¬ÏÂÃæÊÇÁ½Öֳɹ¦µÄ°¸Àý£¬ÆäÖÐÓÐÒ»¸öÊÇApache´úÌænginxµÄ°²×°£¬Ï£Íû¶Ô´ó¼ÒÓÐËù°ïÖú¡£
° ......

MySQL´î½¨


Ò»¡¢MySQL°²×°£º
Ìí¼ÓϵͳÓû§£º
groupadd mysql (/usr/sbin/groupadd)
useradd -g mysql mysql
°²×°²½Ö裺
tar zxfv mysql-*.tar.gz(mysql-5.0.51a)
./configure --prefix=/usr/local/mysql
make
make install
cp support-files/my-medium.cnf /etc/my.cnf
cd /usr/local/mysql
bin/mysql_install_db --user ......

OracleºÍMySQLÊý¾Ý¿âµÄһЩ¼òµ¥ÃüÁî¶Ô±È

ÒÔÏÂΪOracleºÍMySQLÊý¾Ý¿âµÄһЩ¼òµ¥ÃüÁî¶Ô±È£¬¿´¿´ËüÃÇÖ®¼ä´æÔÚÄÄЩ²îÒì
¡¡¡¡SQL> select to_char(sysdate,'yyyy-mm-dd') from dual;
¡¡¡¡SQL> select to_char(sysdate,'hh24-mi-ss') from dual;
¡¡¡¡mysql> select date_format(now(),'%Y-%m-%d');
¡¡¡¡mysql> select time_format(now(),'%H-%i-%S');
¡¡¡¡ÈÕÆÚº ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ