ERROR 1045 (28000): Access denied for user 'root'@'localhost'

voider

Verified User
Joined
Feb 27, 2008
Messages
10
Location
europe
i am install DA ,next
Code:
#mysqladmin -u root password 123

mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'



Code:
#mysql

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)


why is correct problem?
 
Use this to login to mysql as root (da_admin with root privileges):
Code:
mysql --user=`grep "^user=" /usr/local/directadmin/conf/mysql.conf | cut -d= -f2` --password=`grep "^passwd=" /usr/local/directadmin/conf/mysql.conf | cut -d= -f2`
 
Use this to login to mysql as root (da_admin with root privileges):
Code:
mysql --user=`grep "^user=" /usr/local/directadmin/conf/mysql.conf | cut -d= -f2` --password=`grep "^passwd=" /usr/local/directadmin/conf/mysql.conf | cut -d= -f2`


NO No ,i want >>

Code:
## REPORT_END
Permissions set
# PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
 
Try:
Code:
mysql --user=`grep "^user=" /usr/local/directadmin/conf/mysql.conf | cut -d= -f2` --password=`grep "^passwd=" /usr/local/directadmin/conf/mysql.conf | cut -d= -f2`
use mysql;
UPDATE user SET password=PASSWORD('[B]newpass[/B]') WHERE user='root';
FLUSH PRIVILEGES;
quit
 
Please @kikloo do -not- necropost. Watch file dates... it's almost 15 year old thread.
Create a new thread for your issue and in there, post results of your commands like error notices etc. Keep out of ancient threads please.
 
I was searching for this issue so came across this, sounded like mine so I posted. I think if such issues posts are outdated then these should be deleted after X years anwyays. Coz info gets outdated etc.
 
then these should be deleted after X years anwyays. Coz info gets outdated etc.
That is just not how it works on forums. If they get old, they get down to a place where they are safed, sometimes for future reference.
If that reference is not accurate anymore, it's needed to start a new fresh post after so many years.
 
Back
Top