LAMP配置MYsql問題-1045
LAMP 配置MYsql 1045問題:
在windows操作系統(tǒng)安裝mysql數(shù)據(jù)庫,碰到Error 1045(28000) Access Denied for user 'root'@'localhost' (Using password:NO)錯誤時,你需要重新設(shè)置密碼。
LAMP 配置MYsql問題-1045的具體方法是:
1.先在安裝目錄找到my.ini配置文件,打開配置文件
2.找到[mysqld]一行,在下面添加skip-grant-tables后保存該文件,重新啟mysql動服務(wù);
windows7下裝了mysql5.1,error1045,刪除實例后服務(wù)就啟動不了,試了很多方法都不能解決,***重裝了個6.0的beta,出現(xiàn)剛裝5.1時的初始錯誤error 1045最終錯誤解決:
1、mysql -u root
2、use mysql
3、update user set password=old_password('scf') where user='root' and host='localhost' ;
4、FLUSH PRIVILEGES;
這樣Error 1045(28000) Access Denied for user 'root'@'localhost' (Using password:NO)錯誤1045就可以迎刃而解了!
【編輯推薦】
Ubuntu Server中LAMP下MySQL無法遠程連接問題1130