ÐÞ¸ÄMySQLµÄrootÃÜÂë(Linux»·¾³)_SQL SERVERÊý¾Ý¿â_ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤»ùµØ--Powered by WWW.RONGSEN.COM.CN

ÐÞ¸ÄMySQLµÄrootÃÜÂë(Linux»·¾³)

×÷ÕߣººÚ¿Í·ÀÏßÍø°²SQLά»¤»ùµØ À´Ô´£ººÚ¿Í·ÀÏßÍø°²SQLά»¤»ùµØ ä¯ÀÀ´ÎÊý£º0

±¾Æª¹Ø¼ü´Ê£º»·¾³ÃÜÂëÐÞ¸Äpassword
ºÚ¿Í·ÀÏßÍø°²ÍøѶ£ºµÚÒ»ÖÖ·½·¨£º rootÓû§µÇ¼ϵͳ /usr/local/mysql/bin/mysqladmin -u root -p password ÐÂÃÜÂë enter password ¾ÉÃÜÂë µÚ¶þÖÖ·½·¨£º rootÓû§µÇ¼mysqlÊý¾Ý¿â mysql> update mysql.user set...

µÚÒ»ÖÖ·½·¨£º

rootÓû§µÇ¼ϵͳ

/usr/local/mysql/bin/mysqladmin -u root -p password ÐÂÃÜÂë

enter password ¾ÉÃÜÂë

µÚ¶þÖÖ·½·¨£º

rootÓû§µÇ¼mysqlÊý¾Ý¿â

mysql> update mysql.user set password=password£¨¡±ÐÂÃÜÂ롱£©where User=¡±root¡±;

mysql> flush privileges;

mysql> quit ;

mysqlÍü¼ÇrootÃÜÂëÈçºÎ´¦Àí?

Èç¹û MySQL ÕýÔÚÔËÐУ¬Ê×ÏȽáÊømysql½ø³Ì£º killall mysqld

Æô¶¯ MySQL (·ÇÕý³£·½Ê½Æð¶¯)£º/usr/local/mysql/bin/mysqld_safe ¨Cskip-grant-tables &

ÕâÑù¾Í¿ÉÒÔ²»ÐèÒªÃÜÂë½øÈë MySQL £º/usr/local/mysql/bin/mysql -u root -p¡¡£¨ÒªÇóÊäÈëÃÜÂëʱֱ½Ó»Ø³µ¼´¿É£©

mysql> update user mysql.set password=password(¡±ÐÂÃÜÂ롱) where user=¡±root¡±;

mysql> flush privileges;

mysql> quit;

ÖØнáÊø½ø³Ì£ºkillall mysqld

ÓÃÕý³£·½Ê½Æô¶¯ MySQL £º/usr/local/mysql/bin/mysqld_safe -user=mysql &

×¢:

updateÓï¾äÀïµÄpassword=password(¡±ÐÂÃÜÂ롱)Ö»ÓÐÐÂÃÜÂëÈý¸ö×ÖÔÚ²Ù×÷ʱÌæ»»³ÉÎÒÃÇÒªÉèÖõÄÃÜÂ룬ÆäËüÔ­ÑùÕÕд£¬Ö®Ç°ÎÒ×öʧ°ÜµÄÔ­Òò¾ÍÔÚÓÚ°ÑÀ¨ºÅ¼°Ç°ÃæµÄpassword¸øÂÔµôÔì³ÉµÄ£®ËüÃǵÄ×÷ÓÃÊÇʹÃÜÂëÒÔ¼ÓÃܵÄÐÎʽ´æ´¢ÔÚÊý¾Ý¿âÀï¡£

    ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤·½°¸±¾ÆªÁ¬½Ó£ºhttp://www.rongsen.com.cn/show-10109-1.html
Íøվά»¤½Ì³Ì¸üÐÂʱ¼ä:2012-03-21 02:29:54  ¡¾´òÓ¡´ËÒ³¡¿  ¡¾¹Ø±Õ¡¿
ÎÒÒªÉêÇë±¾Õ¾£ºNµã | ºÚ¿Í·ÀÏß¹ÙÍø |  
רҵ·þÎñÆ÷ά»¤¼°Íøվά»¤ÊÖ¹¤°²È«´î½¨»·¾³£¬ÍøÕ¾°²È«¼Ó¹Ì·þÎñ¡£ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤»ùµØÕÐÉ̽øÐÐÖУ¡QQ:29769479

footer  footer  footer  footer