mysql Íü¼ÇROOTÃÜÂëµÄ¼òµ¥½â¾ö·½°¸
1.Í£µômysqld
service mysqld stop
2.ÖØÆômysqld£¬Ö¸¶¨²ÎÊý
service mysqld start --skip-networking --skip-grant-tables
»òÕß
/opt/mysql/bin/mysqld_safe --skip-networking --skip-grant-tables &
/opt/mysql/ÊÇÎÒµÄMYSQL°²×°Â·¾¶
skip-grant-tables:Á¬½ÓʱÌø¹ýÊÚȨ±í¼ì²é
skip-networking:ÍêÈ«½ûÖ¹tcp/ipÁ¬½Ó£¬ÕâÊÇΪÁË°²È«Æð¼û£¬ÒòΪskip-grant-tablesÆÚ¼äÈκÎÓû§¶¼¿ÉÒÔÒÔÈκη½Ê½µÇ¼¡£
3.ÐÞ¸ÄrootÃÜÂë
update mysql.user set password=password('newpasswd') where user='root';
ÕâÀïÓÃpassword()¼ÓÃÜÊDZØÐëµÄ£¬Ò²Ã»±ØÒªflush privilegesÁË£¬ÒòΪÎÒÃÇÂíÉÏÖØÆô¡£
×¢Ò⣬set password forµÄ·½·¨²»ÊÊÓá£
4.mysqldÖØÆô£¬ok.
Ïà¹ØÎĵµ£º
Transact_SQLСÊÖ²á
*******************Transact_SQL********************
--Óï ¾ä ¹¦ ÄÜ
--Êý¾Ý²Ù×÷
SELECT & ......
ÏÈ×¼±¸ºÃÈí¼þ£º
·Ö±ðÔÚApache¹Ù·½¡¢php¹Ù·½¡¢mysql¹Ù·½ÏÂÔØ×îлòÎȶ¨°æ±¾
Ò»¡¢°²×°Apache£¬ÅäÖóɹ¦Ò»¸öÆÕͨÍøÕ¾·þÎñÆ÷
ÔËÐÐÏÂÔغõēapache_2.0.55-win32-x86-no_ssl.msi”£¬³öÏÖÈçϽçÃ棺
³öÏÖApache HTTP Server 2.0.55µÄ°²×°Ïòµ¼½çÃ棬µã“Next”¼ÌÐø
È·È ......
1¡¢±à¼MySQLÅäÖÃÎļþ£º
windows»·¾³ÖУº%MySQL_installdir%\my.ini¡¡//Ò»°ãÔÚMySQL°²×°Ä¿Â¼ÏÂÓÐmy.ini¼´MySQLµÄÅäÖÃÎļþ¡£
linux»·¾³ÖУº/etc/my.cnf
ÔÚ[MySQLd]ÅäÖöÎÌí¼ÓÈçÏÂÒ»ÐУº
skip-grant-tables
±£´æÍ˳ö±à¼¡£
2¡¢È»ºóÖØÆôMySQL·þÎñ
windows»·¾³ÖУº
net stop MySQL
net start MySQL
linux»·¾³ÖÐ ......