mysql密碼忘記的修改方法
更新時(shí)間:2007年05月30日 00:00:00 作者:
如果 MySQL 正在運(yùn)行,首先殺之: killall -TERM mysqld。
啟動(dòng) MySQL :/usr/bin/safe_mysqld --skip-grant-tables &
就可以不需要密碼就進(jìn)入 MySQL 了。
然后就是
>use mysql
>update user set password=password("new_pass") where user="root";
>flush privileges;
重新殺 MySQL ,用正常方法啟動(dòng) MySQL 。
Redhat的safe_mysqld在/usr/bin下,
而使用tarball缺省安裝在/usr/local/bin下。
啟動(dòng) MySQL :/usr/bin/safe_mysqld --skip-grant-tables &
就可以不需要密碼就進(jìn)入 MySQL 了。
然后就是
>use mysql
>update user set password=password("new_pass") where user="root";
>flush privileges;
重新殺 MySQL ,用正常方法啟動(dòng) MySQL 。
Redhat的safe_mysqld在/usr/bin下,
而使用tarball缺省安裝在/usr/local/bin下。
相關(guān)文章
使用apache和IIS,共用80端口的一個(gè)解決方案
使用apache和IIS,共用80端口的一個(gè)解決方案...2007-03-03Win+Apache+PHP+MySQL+Tcomcat配置
2008-03-03Win2003架設(shè)WEB服務(wù)器與IIS的備份和移植
Win2003架設(shè)WEB服務(wù)器與IIS的備份和移植...2007-05-05解決IIS的Server Application Error的3種方法
The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance2006-12-12linux下編譯安裝kangle web server教程詳解
這篇文章主要介紹了如果在linux下編譯安裝kangle web server,操作簡單,對初學(xué)者很有幫助2017-12-12IIS、Apache、Nginx下用IE下載apk文件變成zip的解決辦法
有時(shí)候我們下載安卓應(yīng)用文件apk的時(shí)候,用IE瀏覽器下載,擴(kuò)展名就被自動(dòng)被重命名成了“xxx.zip”,拷貝到手機(jī)上無法安裝。2014-05-05