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

Windows7×°²»ÉÏMysql½â¾ö·½°¸

³õ´Î°²×°·½·¨£º
1¡¢È¥¹Ù·½ÏÂÔØMYSQL 5.0¡£
¡¡¡¡2¡¢Ð޸ķÀ»ðǽµÄÉèÖã¬ÔÚÔÊÐíÀýÍâÀïÌí¼ÓеĶ˿ڣ¬Ãû×ÖΪmysql£¬¿ª·ÅµÄ¶Ë¿ÚΪTCP 3306¡£
¡¡¡¡Õâ¸ö´ó¼ÒÓ¦¸Ã¶¼»á£¬ÔÚVista¿ØÖÆÃæ°åµÄWindows·À»ðǽÀïÃ棬µã»÷“¸ü¸ÄÉèÖÔ-“ÀýÍ┣¬µã»÷“Ìí¼Ó¶Ë¿Ú”¾Í¿ÉÒÔ¡£¡¡¡¡
    
    3¡¢°²×°MYSQL 5.0£¬¿ÉÒÔ×Ô¼ºÐ޸ݲװ·¾¶ºÍ×é¼þµÈ¡£
¡¾°²×°³É¹¦ºó£¬²»ÄÜÔËÐÐMySQLInstanceConfig.exe£¬Ö±½Ó´ÓÕâ±ß¿´¡¿
¡¡ 4¡¢°²×°Íê³Éºó£¬Mysql server instance config wizardÓ¦¸ÃÊÇÆô¶¯²»Á˵ģ¬ÏÂÃæµÄ¹¤×÷¾ÍÊÇΪÁ˽â¾öÕâ¸öÎÊÌâµÄ£¬ÒòΪÕâÊÇÅäÖÃMysqlµÄΨһ;¾¶¡£
¡¡ 5¡¢ÏÂÔØResource HackerµÃ¼òÌåÖÐÎÄ°æ(Èç¹ûÄã¿´µÄ¶®Ó¢ÎÄ£¬ÄǾÍÖ±½ÓÏÂÔ­°æµÄ)¡£
http://www.programfan.com/showdown.asp?id=132
eXeScopeÒ²¿ÉÒÔ¡£¡£¡£¡£
¡¡ 6¡¢½âѹrh_chinese_big5.zip £¬Ö´ÐÐ ResHacker.exe
¡¡ 7¡¢´ò¿ªMySQLInstanceConfig.exe (ÔÚ°²裝 MySQL µÄbin Ŀ¼ÖÐ) £¬¿ÉÒÔÓÃÊó±êÖ±½Ó°ÑexeµÈ×ÊÔ´ÎļþÍϵ½Resource Hacker´°ÌåÉÏÃæ¡£
¡¡ 8¡¢×ó²àÕ¹¿ª¡¸24¡¹→¡¸1¡¹→¡¸1033¡¹
¡¡ 9¡¢ÓÒ²àÕÒµ½ ÕâÐÐ
¡¡ 10¡¢½« level="asAdministrator" ¸Ä³É level="requireAdministrator"
¡¡ 11¡¢ÖØбàÒë
¡¡ 12¡¢±£´æºó¹Ø±Õ (Èç¹û²»Äܱ£´æ£¬Áí´æÔÚ bin Ŀ¼Í⣬Ȼºó¸²¸Ç»Ø來Ò²¿ÉÒÔ)
¡¡ 13¡¢Õâʱ£¬Äã¾Í»á·¢ÏÖMySQLInstanceConfig.exe¿ÉÒÔÕý³£µÄÅäÖÃÀ²¡£


Ïà¹ØÎĵµ£º

ÉèÖÃmysqlĬÈϱàÂë

°²×°ºó
/etc/init.d/mysql start (stop) ΪÆô¶¯ºÍÍ£Ö¹·þÎñÆ÷
/etc/mysql/ Ö÷ÒªÅäÖÃÎļþËùÔÚλÖà my.cnf
/var/lib/mysql/ ·ÅÖõÄÊÇÊý¾Ý¿â±íÎļþ¼Ð£¬ÕâÀïµÄmysqlÏ൱ÓÚwindowsÏÂmysqlµÄdateÎļþ¼Ð
Æô¶¯mysqlºó£¬ÒÔrootµÇ¼mysql
isher@isher-ubuntu:~$ mysql -u root
>show variables like 'character%'; #Ö´ÐбàÂëÏ ......

UbuntuÖÐ Mysql Ô¶³ÌµÇ¼µÄ½â¾ö·½·¨

mysql>use mysql;
mysql>update user set host='%' where user='root';
ÖØÆôMysql
sudo /etc/init.d/mysql restart
[sudo] password for wangzw:
*Stopping MySQL database server mysqld                   & ......

MySQL³£ÓõÄһЩÓÐЧÃüÁîÂÞÁÐ

¼ò¼òµ¥µ¥µÄÂÞÁÐһЩÈÕ³£³£ÓõÄMySQLÃüÁî¡£
show variables;
²é¿´Êý¾Ý¿âÅäÖõÄһЩÅäÖÃÏî
show status;
²é¿´µ±Ç°Æô¶¯µÄMySQL״̬
select @@autocommit;
²é¿´MySQLµ±Ç°Ö´ÐÐSQLµÄÌá½»ÀàÐÍ£¨ÊÇ·ñ×Ô¶¯Ìá½»£©
\s
µ±Ç°Á¬½ÓÊý¾Ý¿âÃû£¬Óû§Ãû£¬MySQL°æ±¾£¬×Ö·û¼¯µÈµÈ¡£
show create table table_name \G
²é¿´´´½¨±íµÄSQLÓï ......

Mysql Explain Ïê½â

Ò».Óï·¨
explain < table_name >
ÀýÈç: explain select * from t3 where id=3952602;
¶þ.explainÊä³ö½âÊÍ
+----+-------------+-------+-------+-------------------+---------+---------+-------+------+-------+
| id | select_type | table | type  | possible_keys     | key ......

MySql³£ÓÃÃüÁî

MySQL³£ÓòÙ×÷»ù±¾²Ù×÷£¬ÒÔ϶¼ÊÇMySQL5.0ϲâÊÔͨ¹ýÊ×ÏÈ˵Ã÷Ï£¬¼ÇסÔÚÿ¸öÃüÁî½áÊøʱ¼ÓÉÏ£»£¨·ÖºÅ£©
1.µ¼³öÕû¸öÊý¾Ý¿â
mysqldump -u Óû§Ãû -p --default-character-set=latin1 Êý¾Ý¿âÃû > µ¼³öµÄÎļþÃû(Êý¾Ý¿âĬÈϱàÂëÊÇlatin1)
mysqldump -u wcnc -p smgp_apps_wcnc > wcnc.sql
2.µ¼³öÒ»¸ö±í
mysqldump -u Ó ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ