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

MySQLÃâ°²×°ÅäÖã¨Vista£©

MySql°æ±¾£ºmysql-noinstall-5.1.43-win32
ϵͳ£ºVista
ÔÚC:\myProgram Files\mysql-5.1.43-win32£¨½âѹµÄĿ¼£©Ï½«Ñ¡Ò»¸öÅäÖÃÎļþ£¨my-small.ini£©±à¼­£º
1.ÔÚ[client]ÏÂÌí¼Ó£º
   default-character-set=utf8                                                                 //×Ö·û¼¯
2.ÔÚ[mysqld]ÏÂÌí¼Ó£º
   default-character-set=utf8                                                                 //×Ö·û¼¯
   basedir="C:/myProgram Files/mysql-5.1.43-win32"                           //Îļþ¼Ð·¾¶
   datadir="C:/myProgram Files/mysql-5.1.43-win32/Data"                   //dataÎļþ¼Ð·¾¶
½«Ð޸ĵÄÎļþÁí´æΪmy.ini£¬²¢·Åµ½C:\WindowsÏ¡£
×¢£ºÔÚVistaϵͳϳöÏÖÈçÏÂÇé¿ö£¬Ð´¸öС¼Ç¼¡£
Õâʱ£¬ÎÒ¾ÍÈ¥ ¿ªÊ¼->ÔËÐÐ->cmd£»Ö±½ÓÊäÈëÁË  mysqld -install  £¨ÒѾ­½«ÅäÖÃÁË»·¾³±äÁ¿path£© £¬ÔËÐнá¹û install/remove of the service denied ´íÎó£¡
½â¾öÈçÏ£º
      ¿ªÊ¼->³ÌÐò->¸½¼þ£¬ÓÒ»÷ "ÃüÁîÌáʾ·û"  µã»÷ "ÒÔ¹ÜÀíÔ±Éí·ÝÔËÐÐ"£»È»ºó£¬ÊäÈëÁË  mysqld -install£¬³É¹¦°²×°·þÎñ£»
    £¨ÐèÒª¹ÜÀíÔ±Éí·Ý²ÅÄÜ°²×°·þÎñ£¬ÍøÉϲéÀ´µÄ£¬¼ÇÏÂ…&h


Ïà¹ØÎĵµ£º

MySQLÊý¾Ýµ¼Èëµ¼³öcsvÎļþÃüÁî

MySqlÊý¾Ý¿âµ¼³öcsvÎļþÃüÁ
mysql> select first_name,last_name,email from account into outfile 'e:\\output1.csv' fields terminated by ','optionally enclosed by ''lines terminated by '\n';
csvÎļþЧ¹û£º



sunny
Grigoryan
lovechoosesun@gmail.com
Jon
Siegal
sun@riliantech.net
Joe
S ......

MysqlÖеÄisolation level

MysqlÖеÄÊÂÎñ¿ÉÒÔÔËÐÐÔÚÏÂÃæ4¸öisolation levelÖУ¬Ó°Ïì×Åselect²Ù×÷µÄ½á¹û£º
1. Read Uncommitted
ÊÂÎñ¿ÉÒÔ¶Áµ½ÆäËûÊÂÎñûÓÐÌá½»µÄÄÚÈÝ
2. Read Committed
ÊÂÎñ¿ÉÒÔ¶Áµ½ÆäËûÊÂÎñÒѾ­Ìá½»µÄÄÚÈÝ
3. Repeatable Read
InnoDBµÄĬÈÏlevel£¬¿ÉÒÔÈ·±££¬ÔÚÊÂÎñÖÐÿ´ÎÖ´ÐеĶÁ²Ù×÷·µ»ØµÄ½á¹û¶¼ÓëµÚÒ»´ÎʱµÄÒ»ÖÂ
4. Seriali ......

[ORACLE]ORACLE ʵÏÖmysqlÖеÄlimit ¹¦ÄÜ

ÏîÄ¿´ÓmysqlǨÒƵ½ORACLEÖÐÓöµ½ÒÆÖ²ÎÊÌ⣬mysqlÖÐÖ§³Ölimit ¶øORACLE say no .
½â¾ö·½·¨ ÀûÓÃORACLEµÄαÁÐ rownumÀ´¿ØÖÆ¡£¡£
Mysql : select * from table limit 10
equl
ORACLE£º select * from table where rownum <= 10
ORACLE αÁнéÉÜ£º
ËæÊý¾Ý×ÖµäÒ»Æð×Ô¶¯´´½¨µÄÒ»¸ö±í,ÊôÓÚsysģʽ,ÈκÎÓû§¶¼¿ÉÒÔ·ÃÎÊ,&nbs ......

MYSQL ±¸Íü¼

MySQL client programs:
mysql
The command-line tool for interactively entering SQL statements or executing them from a file in batch mode. See Section 4.5.1, “mysql — The MySQL Command-Line Tool”.
mysqladmin
A client that performs administrative operations, such as crea ......

debianÏÂmysql¶ÔÖÐÎĵÄÖ§³ÖÎÊÌâ

ÐÞ¸Ä /etc/mysql/my.cnf Îļþ£¬
ÔÚ £Ûclient£Ý ϼÓÈë default-character-set=utf8,
ÔÚ   [mysqld] ϼÓÈë default-character-set=utf8,
ÔòÔÚviÀï¿ÉÒÔÕýÈ·µÄÏÔʾÖÐÎÄÁË£¨Ç°ÌáÊÇviҲʹÓÃutf8£©¡£
²»¹ýÔÚ²éѯµÄʱºò£¬½á¹ûÀïµÄÖÐÎÄÈ´»áÏÔʾ³É "?"£¬Õâ¸öÎÊÌâ±È½Ï¼òµ¥µÄ·½·¨Óм¸ÖÖ£¬·Ö±ðÊÇ£º
1.ÔÚ´´½¨Ê ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ