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

MysqlÓû§ÃÜÂëÐÞ¸Ä

1.Ö±½ÓÔÚÊý¾Ý¿âÖÐÐ޸ļǼ
mysql> use mysql
mysql> update user set password = password(”new_password”) where user = “user_name”;
mysql> flush privileges;
ÆäʵÕâÖÖ·½·¨¾ÍÊǸüÐÂÒ»ÌõÊý¾Ý¿â¼Ç¼£¬ÓëÆÕͨupdateÓï¾ä²»Í¬µÄÊÇ£¬ÃÜÂë¼ÓÃÜ´æ´¢£¬ÐèÓÃpassword()º¯ÊýÀ´Éú³É£¬ÁíÒ»¸ö²»Í¬µãÊÇÐèҪˢÐÂȨÏÞ±í¡£
2.ÔÚÊý¾Ý¿âÖÐÔËÐÐset password
mysql> set password for user_name = password(”new_password”);
mysql> flush privileges;
ͬµÚÒ»ÖÖ·½·¨£¬Ò²ÒªË¢ÐÂȨÏÞ±í
3.Ö±½ÓÔÚshell»·¾³ÔËÐÐmysqladmin
> mysqladmin -u user_name -p password “new_password”
> mysqladmin flush-privileges
Õâ¸ö·½·¨ÎÒÊÔÁ˼¸´Î£¬Ã¿´Î¶¼Äܽ«ÃÜÂë¼Ç¼Ð޸ĵô£¬µ«ÊÇÿ´ÎÐ޸ĺó¶¼ÎÞ·¨µÇ¼£¬¼´Ê¹ÖØÆôÊý¾Ý¿âÒ²ÎÞ¼ÃÓÚÊ¡£ËùÒÔ½¨Òé²»Òª²ÉÓñ¾·½·¨ÐÞ¸ÄÓû§ÃÜÂ룬ÓÈÆäÊÇrootÃÜÂë¡£
4.
grant all privileges on db.table to user_name@localhost identified by “your_pwd”;
Óû§ÃûÃÜÂëµÄÉúЧ²»±ØÓÃflush privilegesË¢ÐÂ
×¢£º
db.table: db±íʾÊÚȨÄĸö¿â£¬tableÊÇÏàÓ¦¿âÀïµÄ±í¡£¿ÉÒÔÓÃ*.*±íʾËùÓпâËùÓÐ±í¡£×¢Ò⣬Èç¹ûÏë±íʾij¸ö¿âµÄËùÓÐ±í£¬±ØÐëÓÃdb_name.*£¬ºóÃæµÄ”.*”²»¿ÉÊ¡ÂÔ£¬·ñÔòȨÏÞ½«ÎÞ·¨¸³Óè¡£
user_name@localhost: user_name±íʾÓû§Ãû£¬localhost±íʾ¸ÃÓû§Ö»ÄÜÔÚ±¾µØ·ÃÎʸÿ⣬¿ÉÒÔÓÃ%±íʾ´ÓÈκεط½·ÃÎʸÿ⣬Ҳ¿ÉÒÔÓÃ111.11.22.33À´±íʾµØÖ·
your_pwd: ¸øÓû§ÉèÖõÄÃÜÂë


Ïà¹ØÎĵµ£º

MYSQL³õѧÕßʹÓÃÖ¸ÄÏ

Ò»¡¢Á¬½ÓMYSQL¡£
¸ñʽ£º mysql –hÖ÷»úµØÖ· –uÓû§Ãû £­pÓû§ÃÜÂë
1¡¢Àý1£ºÁ¬½Óµ½±¾»úÉϵÄMYSQL¡£
Ê×ÏÈÔÚ´ò¿ªDOS´°¿Ú£¬È»ºó½øÈëĿ¼ mysqlbin£¬ÔÙ¼üÈëÃüÁîmysql -uroot -p£¬»Ø³µºóÌáʾÄãÊäÃÜÂ룬Èç¹û¸Õ°²×°ºÃMYSQL£¬³¬¼¶Óû§rootÊÇûÓÐÃÜÂëµÄ£¬¹ÊÖ±½Ó»Ø³µ¼´¿É½øÈëµ½MYSQLÖÐÁË£¬MYSQLµÄÌáʾ·ûÊÇ£º ......

mysqlµÄ±¸·ÝºÍ»¹Ô­µÄ±àÂëÎÊÌâ½â¾ö


½ñÌìÐèÒª´ÓÔ¶³Ì·þÎñÆ÷downÒ»¸öuchomeµÄÊý¾Ý¿âÏÂÀ´£¬ÔÚ±¾µØ»¹Ô­¡£
·¢ÏÖÒ»¸öºÜ²»Ë¬µÄÊÂÇ飺Զ³Ì8G£¬NºËµÄlinux»úÆ÷£¬±¸·Ý»¹Ô­²Ù×÷˳ÁïÁïµÄ£¬¿ÉÊÇÔÚ±¾µØµÄwindows£¬2GÆÕͨPCÉÏ£¬²Å100MµÄÎļþ£¬ÓÃuchome×Ô´øµÄ·Ö¾í±¸·Ý»¹Ô­£¬»ù±¾ÉÏÖм䶼»á¶Ïµô£¬ÒªÃ´Ìáʾ“Ö´ÐÐʱ¼ä¹ý³¤”£¨¸Ä³É200Ã룬·Ö¾íΪ20M¶¼²»ÐУ©£¬ÒªÃ´¾ÍÊ ......

MYSQL ×Ö·û¼¯¼°±àÂëÎÊÌâ

MySQLµÄ×Ö·û¼¯Ö§³Ö(Character Set Support)ÓÐÁ½¸ö·½Ã棺
     ×Ö·û¼¯(Character set)ºÍÁ¬½ÓУ¶Ô(Collation)¡£
¶ÔÓÚ×Ö·û¼¯µÄÖ§³Öϸ»¯µ½Ëĸö²ã´Î:
     ·þÎñÆ÷(server)£¬Êý¾Ý¿â(database)£¬Êý¾Ý±í(table)ºÍÁ¬½Ó(connection)¡£
1.MySQLĬÈÏ×Ö·û¼¯
  MySQL¶ÔÓÚ×Ö·û¼¯µÄ ......

MySQLÊý¾Ý¿âµÄdb.optÎļþ


MySQLµÄÿ¸öÊý¾Ý¿âĿ¼ÖÐÓÐÒ»¸öÎļþdb.opt,¸ÃÎļþÖ÷Òª ÓÃÀ´´æ´¢µ±Ç°Êý¾Ý¿âµÄĬÈÏ×Ö·û¼¯ºÍ×Ö·ûУÑé¹æÔò¡£
eg.default-character-set=latin1
default-collation=latin1_swedish_ci
¸ÃÎļþÖд洢µÄÊÇ´´½¨Êý¾Ý¿âʱĬÈϵÄ×Ö·û¼¯ºÍ×Ö·û¼¯Ð£Ñé¹æÔò£¬Ôò¸ÃÊý¾Ý¿âÔÚÒÔºó´´½¨±íʱÈç¹ûûÓÐÖ¸¶¨×Ö·û¼¯ºÍУÑé¹æÔò£¬Ôò¸Ã±íµÄÕâÁ½¸ö ......

mySqlÓëWampServerͬʱ°²×°Ê±³öÏÖµÄÎÊÌâ


 
½ñÌìÅöµ½ÕâÑùµÄÒ»¸öÎÊÌ⣺
ÎÒµçÄÔÉÏ°²×°ÁËwampserver£¬È»ºó´ò¿ªphpMyAdmin½øÐÐÊý¾Ý¿â¹ÜÀí²Ù×÷ʱ£¨´´½¨Êý¾Ý¿â£©£¬´´½¨ÍêÖ®ºó£¬µ½wampserver°²×°Ä¿Â¼µÄmysqlĿ¼Ï²鿴¸Õ´´½¨µÄÊý¾Ý¿â¡£¡£¡£ÔõôÕÒҲûÕÒµ½£¬ÎÒ¾ÍÓôÃÆ£¬È»ºó¾ÍÈ¥²éÕÒÎÊÌâµÄÔ­Òò£¬½á¹ûÊÇÕ⣺ÒòΪÎÒµçÄÔÉÏ°²×°WampServer֮ǰÓа²×°¹ýMysql£¬ËùÒÔÖ®ºó¶Ô ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ