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

mysql noinstall°æ°²×°

mysql noinstall°æ°²×°
1¡¢Èí¼þµÄÏÂÔØ
¡¡¡¡µ½mysqlµÄ¹Ù·½ÍøÕ¾ÏÂÔØMySQLµÄ½âѹ°ü£¬Èçmysql-noinstall-5.0.51b-win32.zip
¡¡¡¡È»ºó½«Æä½âѹµ½ÄãÏ£ÍûÊý¾Ý¿âËùÔÚµÄij¸öλÖã¬ÈçC:\
¡¡¡¡ÕâÑùÔÚC:ÅÌÏÂÃæ¾ÍÓÐÁËC:\mysql-5.0.51b-win32ÕâÑùµÄÒ»¸öĿ¼£¬ÀïÃæ¾ÍÊÇMySQLÊý¾Ý¿âµÄÈ«²¿ÄÚÈÝ¡£
2¡¢ÅäÖÃ
¡¡¡¡Ê×ÏÈÎÒÃÇÀ´¿´MySQLµÄ¸ùĿ¼£¬ÀïÃæÓжà¸öÎļþÃûÈçmy-****.iniÐÎʽµÄÎļþ£¬Õâ¾ÍÊÇMySQLÅäÖõÄÑùÀýÎļþ£¬Äã¿ÉÒÔÑ¡È¡ÆäÖÐÒ»¸ö£¬½«ÆäÃû×Ö¸ÄΪmy.ini£¬MySQLÆô¶¯µÄʱºò¾ÍÊǶÁÈ¡Õâ¸ömy.iniÎļþÀ´¾ö¶¨Êý¾Ý¿âµÄ¸÷Ïî²ÎÊý¡£
¡¡¡¡ÔÚmy.iniÎļþÖÐÐèÒª½øÐÐÅäÖõÄÖ÷ÒªÊÇÁ½¸ö·½Ã棬һ¸öÊÇ¿Í»§¶Ë£¬Ò»¸öÊÇ·þÎñÆ÷¶Ë¡£
¡¡¡¡* ¿Í»§¶ËÅäÖÃ
¡¡¡¡# CLIENT SECTION
#-----------------------------------------------------
[client]
port = 3306
[mysql]
default-character-set = gbk
¡¡¡¡ÐèÒªÅäÖõÄÖ÷ÒªÊÇÁ½Ïһ¸öÊÇ¿Í»§¶Ë¶Ë¿Ú£¬Ò»¸öÊÇĬÈϵÄ×Ö·û¼¯(gbk¾ÍÊÇÉèÖóÉÁËÖÐÎÄ)£¬ÕâÀï¶Ë¿ÚÑ¡ÓÃĬÈϵÄ3306£¬×Ö·û¼¯¿ÉÒÔ¸ù¾ÝÐèÒªÐÞ¸ÄΪUTF-8»òGBK¡£
¡¡¡¡* ·þÎñÆ÷¶ËÅäÖÃ
#SERVER SECTION
#-----------------------------------------------------
[mysqld]
port = 3306
basedir= "C:/mysql-5.0.51b-win32"
datadir= "C:/mysql-5.0.51b-win32/Data"
Server="c:/mysql-5.0.51b-win32/bin/mysqld-nt.exe"
default-character-set = gbk
default-storage-engine = INNODB
max_connections = 100
max_allowed_packet = 16M
ÕâÀïÖ÷ÒªµÄÊǶ˿Úport£¬Êý¾Ý¿â°²×°Ä¿Â¼(Ò²¾ÍÊÇÎÒÃǽâѹµÄĿ¼)basedir£¬Êý¾Ý¿âÖÐÊý¾ÝµÄ´æ´¢Â·¾¶(Ò²¾ÍÊÇÄ㽫À´½¨Á¢µÄDatabaseºÍTable´æ·ÅµÄλÖÃ)datadir¡£
Æä´Î¾ÍÊÇ×Ö·û¼¯µÄÉèÖã¬×î´óÁ¬½ÓÊýµÄÉèÖõȣ¬Êµ¼ÊµÄÉèÖÃÏîÒª¸ù¾Ý¿ª·¢ÓëʹÓõÄÐèÒª£¬²Î¿¼½âѹĿ¼Öеļ¸¸öÑùÀýÎļþ½øÐÐÈ¡ÉáÅäÖá£
3¡¢Æô¶¯MysqlÊý¾Ý¿â
¡¡¡¡* ¿ÉÒÔÔÚWindows»·¾³±äÁ¿µÄpathÖÐÏȼÓÈëC:\mysql-5.0.51b-win32\binÕâÏÕâÑùÎÒÃǾͿÉÒÔÔÚÃüÁîÐÐÖÐÖ±½ÓʹÓÃmysqlµÄ¸÷ÏîÃüÁîÁË
¡¡¡¡* ½øÈëÃüÁîÐд°¿Ú£¬ÔËÐÐc:\mysqld-nt£¬ÕâÊDz鿴WindowsÈÎÎñ¹ÜÀíÆ÷£¬·¢ÏÖ½ø³ÌÖжà³öÀ´Ò»¸ömysqld-nt.exe£¬Õâ˵Ã÷Êý¾Ý¿âÒѾ­³É¹¦µÄÆô¶¯µÄÁË¡£
¡¡¡¡* ´ËÍ⣬ÎÒÃÇ¿ÉÒÔ°ÑÊý¾Ý¿â×¢²á³ÉÒ»¸ö·þÎñ£¬Ëæ×ÅϵͳµÄÆô¶¯¶øÆô¶¯£¬¾ßÌåÃüÁîÈçÏ£º
¡¡¡¡¡¡¡¡c:\mysqld-nt -install
¡¡¡¡¡¡ÔËÐÐÉÏÃæµÄÃüÁîºó£¬¾Í»áÔÚϵͳ·þÎñÖÐ×¢²áÁËÒ»¸öÃû×ÖΪMySQL£¬Æô¶¯À´ÐÔΪAutomaticµÄ·þÎñ£¬Õâ¸ö·þÎñĬÈÏÇé¿öÏÂÊÇ×Ô¶¯Æô¶¯µÄ¡£
¡¡¡¡¡


Ïà¹ØÎĵµ£º

MySql ±íµÄÖ÷¼üË÷ÒýÎÊÌâ

²é¿´Ä³¸ö±íµÄ½¨±íÓï¾ä £ºshow create table data_statdata;
drop index ts on data_statdata;
Ë÷ÒýÊǼÓËÙ²éѯµÄÖ÷ÒªÊֶΣ¬Ìرð¶ÔÓÚÉæ¼°¶à¸ö±íµÄ²éѯ¸üÊÇÈç´Ë¡£±¾½ÚÖУ¬½«½éÉÜË÷ÒýµÄ×÷Óá¢Ìص㣬ÒÔ¼°´´½¨ºÍɾ³ýË÷ÒýµÄÓï·¨¡£
13.4.1 ʹÓÃË÷ÒýÓÅ»¯²éѯ
Ë÷ÒýÊÇ¿ìËÙ¶¨Î»Êý¾ÝµÄ¼¼Êõ£¬Ê×ÏÈͨ¹ýÒ»¸öʾÀýÀ´Á˽âÆ京Òå¼°×÷Óã ......

mysqlÔÚcmdϵÄһЩÓï¾ä

ÉèÖÃ×ֶεÄĬÈÏÖµ£º
    ´´½¨±íµÄʱºò£ºcreate table
tablename(columnname columntype default
defaultvalue);
    Ð޸ıíµÄʱºò£ºalter table
tablename alter column
columnname set 
default
deflaultvalue; ......

phpÁ¬½Ómysql²âÊÔºÍÅäÖÃ


phpÁ¬½Ómysql²âÊÔ´úÂ룺
$link=mysql_connect('localhost','root','123456');
if(!$link) echo "ʧ°Ü!";
else echo "³É¹¦!";
mysql_close();
?>
ÔËÐдúÂë³öÏÖ£ºCall   to   undefined   function   'mysql_connect()'… ʧ°Ü
°Ù¶ÈÕÒµ½½á¹ûÊÇPHP+MYSQL »·¾³Ã ......

mysqlÌí¼ÓÓû§

mysqlÌí¼ÓÓû§·½·¨ 
½¨Á¢Êý¾Ý¿âgamesp
create database gamesp;
Ìí
¼ÓÓû§
grant  all  on  Êý¾Ý¿âÃû.*   to   Óû§
Ãû
@localhost  identified  by  'ÃÜÂë';
grant all on gamesp.* to
newuser@localhost
identified by
'pas ......

mysql С¼¼ÇÉ£¬×Ö·û¼¯£¬»·¾³±äÁ¿

Ò»¡¢MySql£¬ÓÃcmdÃüÁîÌáʾÐÐÁ¬½ÓÊý¾Ý¿â£¬·¢ÏÖ²éѯÊý¾Ý¿âÖеÄÖÐÎijöÏÖÂÒÂ룬¶øÊý¾Ý¿âÀïÃæ´æµÄÊÇutf8£¬¶¼ÊÇÕýÈ·µÄ
ÓÚÊÇÉÏÍøËÑË÷һϣ¬
ÕÒµ½Ïà¹ØÉèÖ÷½·¨ÈçÏ¡£
1¡¢MySQLÊÇÓÐһЩ»·¾³±äÁ¿¿ÉÒÔÉèÖã¬
¿ÉÊäÈ룺show variables;¿É²é¿´µ±Ç°µÄ»·¾³±äÁ¿ÉèÖã»
2¡¢ÕâЩ±äÁ¿µ±ÖÐÓÐÒ»²¿·ÖÓë×Ö·ûÏà¹ØµÄÉèÖã¬
¿ÉÊäÈ룺show variabl ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ