visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Databases :: MySql :: New Install - Change Password / Describe Users


By: Squibi U.S.A.  Date: 12/04/2003 00:00:00  English  Points: 50 Status: Answered
Quality : Excellent
I am a beginner with MySQL and have just installed v4.0.12. I am trying to understand what accounts get set up OOTB, but don't know how to query the dB for a list of pre-defined USERS. I assume that there is a USER called "root" since I ran the following command to try and change the password:

mysqladmin -u root password newpw

Now, I can't get to a "mysql>" prompt. I get an error "ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)

1) Can someone tell me what exactly I have done and how to correct it?

2) How can I query the USERS table to find out what accounts are built OOTB so that I can secure them?
By: VGR Date: 13/04/2003 05:57:00 English  Type : Answer
1) you've now to access the mysqld by issuing :
mysql --user=root --password=newpw

2) after connection :
use mysql;
select * from user;

(or select Host,User,Password from user; )

Do register to be able to answer

EContact
browser fav
page generated in 292.252060 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page