Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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Ìí¼ÓÓû§

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

MySQLн¨Óû§,ÊÚȨ,ɾ³ýÓû§,ÐÞ¸ÄÃÜÂë²Ù×÷

Ê×ÏÈÒªÉùÃ÷һϣºÒ»°ãÇé¿öÏ£¬ÐÞ¸ÄMySQLÃÜÂ룬ÊÚȨ£¬ÊÇÐèÒªÓÐmysqlÀïµÄrootȨÏ޵ġ£
×¢£º±¾²Ù×÷ÊÇÔÚWINÃüÁîÌáʾ·ûÏ£¬phpMyAdminͬÑùÊÊÓá£
    Óû§£ºphplamp  Óû§Êý¾Ý¿â£ºphplampDB
1.н¨Óû§¡£
//怬MYSQL
@>mysql -u root -p
@>ÃÜÂë
//´´½¨Óû§
mysql> insert into mysql.user ......

MySQL±Ê¼Ç

mysqldump -uÓû§Ãû -pÃÜÂë Êý¾Ý¿âÃû >dumpÎļþµÄ·¾¶ºÍÃû³Æ
mysql> source dump.sql
There are three general ways to invoke mysqldump:
shell> mysqldump [options] db_name [tbl_name ...]
shell> mysqldump [options] --databases db_name ...
shell> mysqldump [options] --all-databases
......

MySQL Master Slave Replication

MySQL±¾ÉíûÓÐÌṩreplication failoverµÄ½â¾ö·½°¸(¼ûHow can I use replication to provide redundancy or high availability?)
ÈçºÎʹReplication·½°¸¾ßÓÐHA£¿
´ð°¸ÊÇMMM(MySQL Master-Master Replication Manager)
MMM¶ÔMySQL Master-Slave Replication¾ø¶ÔÊÇÒ»¸öºÜÓÐÒæµÄ²¹³ä!
ÒýÑÔ
Master-SlaveµÄÊý¾Ý¿â»ú¹¹ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ