Monday, March 12, 2012

mysqladmin: connect to server at localhost failed - MySQL

hi all,

I got the error like
[sait6@.localhost treestructure]$ mysqladmin -h localhost -u root -p create bedrock
Enter password: ******
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@.'localhost' (using password: YES)'

[sait6@.localhost treestructure]$ mysqladmin --no-defaults -u root ver
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@.'localhost' (using password: NO)'

and when i type mysql and start to change some password i got

mysql> INSERT INTO user (Host,User,Password)
-> VALUES('%','sait6','sait123');
ERROR 1046 (3D000): No database selected

please give suggestion to eradicate the above problem.

thanyou.
-RAJU

Quote:

Originally Posted by rajbala

hi all,

I got the error like
[sait6@.localhost treestructure]$ mysqladmin -h localhost -u root -p create bedrock
Enter password: ******
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@.'localhost' (using password: YES)'

[sait6@.localhost treestructure]$ mysqladmin --no-defaults -u root ver
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@.'localhost' (using password: NO)'

and when i type mysql and start to change some password i got

mysql> INSERT INTO user (Host,User,Password)
-> VALUES('%','sait6','sait123');
ERROR 1046 (3D000): No database selected

please give suggestion to eradicate the above problem.

thanyou.
-RAJU


I need your help............

No comments:

Post a Comment