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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't connect locally to my server

Status
Not open for further replies.
Jun 14, 1999
606
0
0
US
I've run <b>mysqladmin -u root password 'keychain'</b> and it worked. Now I want to continue my installation and I can't connect with <b>mysql</b> or with <b>mysqladmin</b><br><br><FONT FACE=monospace><br>./mysqladmin -u root password 'keychain'<br>./mysqladmin: connect to server at 'localhost' failed<br>error: 'Access denied for user: 'root@localhost' (Using password: NO)'<br></font><br><br>I have AIX 4.3.3 with mysql-3.22.32-ibm-aix4.3.2.0-powerpc<br><br>What I'm doing wrong?<br>TIA
 
Try<br><br>mysql -u root -h localhost(or actual hostname) -p<br><br>The -p will then prompt you to enter the password, before connecting. You can also use<br><br>mysql -u root -h localhost(or actual hostname) -p{password}<br><br>Make sure you leave no space between -p and the password (this method is useful if you want to run a shell script that connects, without needing to be prompted.<br><br>Enjoy...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top