mysql Ïà¹ØÅäÖÃ
mysqlÖв»Çø·Ö´óСд£º
LinuxÖÐMySQLµÄÅäÖÃÎļþÖÐ(/etc/my.cnf)£¬ÊÇûÓÐlower_case_table_names=1ÕâÐеġ£
ÔÚWindows°²×°µÄMySQLµÄÅäÖÃÎļþÖÐ(my.ini)£¬ÊÇÓÐlower_case_table_names=1ÕâÐеġ£
lower_case_table_names=1µÄÓÃ;ÊÇÈÃMySQLʵÏÖ²»Çø·Ö´óСд
mysqlÖÐÔÊÐíÆäËû»úÆ÷·ÃÎÊ£º
mysql> use mysql;
Õâ¾ä»°µÄÒâ˼ £¬ÔÊÐíÈκÎIPµØÖ·£¨ÉÏÃæµÄ % ¾ÍÊÇÕâ¸öÒâ˼£©µÄµçÄÔ ÓÃadminÕÊ»§ ºÍÃÜÂ루admin£©À´·ÃÎÊÕâ¸öMySQL Server
mysql> GRANT ALL ON *.* TO admin@'%' IDENTIFIED BY 'admin' WITH GRANT OPTION;
#
#±ØÐë¼ÓÀàËÆÕâÑùµÄÕÊ»§£¬²Å¿ÉÒÔÔ¶³ÌµÇ½¡£ rootÕÊ»§ÊÇÎÞ·¨Ô¶³ÌµÇ½µÄ£¬Ö»¿ÉÒÔ±¾µØµÇ½
Ïà¹ØÎĵµ£º
1¡¢HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\MySQL
Ŀ¼ɾ³ý
2¡¢HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003\Services\Eventlog\Application\MySQL
Ŀ¼ɾ³ý
3¡¢HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\MySQL
Ŀ¼ɾ³ý ......
1¡¢´´½¨Ò»¸öÊý¾Ý¿â
create database Êý¾Ý¿âÃû
2¡¢´´½¨Ò»¸öÊý¾Ý±í
create table Êý¾Ý±íÃû(
×Ö¶ÎÃû ÀàÐÍ(³¤¶È),
×Ö¶ÎÃû ÀàÐÍ(³¤¶È),
×Ö¶ÎÃû ÀàÐÍ(³¤¶È),
×Ö¶ÎÃû ÀàÐÍ(³¤¶È),
......
×Ö¶ÎÃû ÀàÐÍ(³¤¶È)
);
3¡¢²é¿´Êý¾Ý±í½á¹¹
describe Êý¾Ý±íÃû;
4¡¢²åÈëÒ»ÌõмǼ
insert into Êý¾Ý±íÃû values(Öµ1,Öµ2,....Öµn ......
×Ö¶ÎpageNum
1£¬6£¬9£¬11
Ï£ÍûÅÅÐò˳ÐòΪ1£¬6£¬9£¬11
µ«ÊÇʵ¼ÊÅÅÐòΪ1£¬11£¬6£¬9
ºóÀ´·¢ÏÖÊÇÒòΪpageNumÕâ¸ö×Ö¶ÎÊÇvarcharÀàÐ͵IJ»ÊÇintÐÍ£¬ËùÒÔÅÅÐò»á³öÎÊÌâ¡£
ÍøÉϵĽâ¾ö·½·¨Îª
order by pageNum+0
order by pageNum×1
²»ÖªµÀΪʲôorder by pageNum×1 Êý¾Ý¿âͨ²»¹ý
µ«ÊÇpageNum+0ÊǺÃÓÃµÄ ......
Ðí¶àÅóÓÑÔÚʹÓÃmysql½øÐÐÖÐÎÄÄ£ºý²éÕÒʱ(Èçselect * from mytable where mysqlname like "%ÖÐÎÄ%"),¾ÍÏóÎÒÏÖÔÚÒ»Ñù£¬ÕÒµ½²»Ó¦ÕÒµ½µÄÐÐ!
ÓÐһЩÅóÓÑÌá³öÁ˽â¾ö°ì·¨£¬´óÖÂÓÐÁ½ÖÖ£º
ÆäÒ»£¬¼Ó×Ö¶ÎÊôÐÔbinary(),
Æä¶þ,¸Ämy.cfgÆô¶¯²ÎÊýΪdefault-character-set =gbk(»ògb2312).
ÎÒ´ÓÎÊÌâµÄ¸ù±¾ÔÒò·ÖÎö£¬
ÆäÒ»£¬×Öĸ ......
MySQL ±¸·ÝºÍ»Ö¸´
ÖÜÁù, 2006/09/30 - 14:21 — yejr
MySQL ±¸·ÝºÍ»Ö¸´
×÷/ÒëÕߣºÒ¶½ðÈÙ£¨Email:
£©£¬À´Ô´£ºhttp://imysql.cn
£¬×ªÔØÇë×¢Ã÷×÷/ÒëÕߺͳö´¦£¬²¢ÇÒ²»ÄÜÓÃÓÚÉÌÒµÓÃ;£¬Î¥Õ߱ؾ¿¡£
ÈÕÆÚ£º2006/10/01
±¾ÎÄÌÖÂÛ MySQL µÄ±¸·ÝºÍ»Ö¸´»úÖ ......