Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem installing Mysql-4.0.2 RPM on RedHat 7.3

Status
Not open for further replies.

mfasis

Programmer
Aug 15, 2002
2
US
I am having some trouble installing Mysql-4.0.2 RPM on RedHat 7.3. I installed both the server and the client. My problem occurs when I try to access mysqladmin. After the install occurs I am prompted to set a password for the Mysql root user:

/usr/bin/mysqladmin -u root password 'new-password'

I get the following error:

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

Anybody have an idea why this is happening?
 
if /usr/bin/mysql -u root returns the same error, user root has some password set up
you need to provide it with the -p option
something like /usr/bin/mysqladmin -u root -poldpassword password 'newpass'
 
/usr/bin/mysqladmin -u root -poldpassword password 'newpass'

is -poldpassword supposed to be one word? And should I replace oldpassword with an actual password?
 
yes the it should be -poldpassword and not -p oldpassword

and again yes - you have to provide the actual password, if not anybody could change password for root, provided he has rights to grant access to mysql server
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top