MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 7th, 2000, 09:44 PM
webnautics webnautics is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Location: Fitzgerald Ga USA
Posts: 8 webnautics User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to webnautics
I have hit a brick wall with this one:
when I use the command

./bin/mysqladmin -u (user) -p (password)

I get this:
./bin/mysqladmin: unable to change password; error: 'You are using MySQL as an anonymous users
and anonymous users are not allowed to change passwords'

I'm assuming that it is looking for this user to already exist, but I am unsure as to HOW to add new users. I'm new to MySQL, so please be patient. I do, however, have over two year's expierence on Linux administration, so server talk is easy for me to comprehend!

Any help is welcome, will even accept urls to tutorials!!

Regards,
Brant

Reply With Quote
  #2  
Old March 7th, 2000, 11:02 PM
jmholm jmholm is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: Chicago IL, USA
Posts: 16 jmholm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 27 m 54 sec
Reputation Power: 0
Are you trying to log in to MySQL or trying to change the password?

If you are trying to change the password, try this syntax:
./bin/mysqladmin -u root -p 'mynewpassword'

For logging into MySQL, I use this command:
mysql -h localhost -u root -p

This will then prompt me for a password. The -h is for Hostname, which can be myhost.com or localhost.

Also, check out www.mysql.com for the MySQL documentation, as well as http://www.devshed.com/Server_Side/PHP/DB_Basics/ here at devshed, and finally WebMonkey (www.webmonkey.com) has some great MySQL info at http://hotwired.lycos.com/webmonkey...?tw=programming

Hope this helps!

michael

Reply With Quote
  #3  
Old March 8th, 2000, 12:47 AM
webnautics webnautics is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Location: Fitzgerald Ga USA
Posts: 8 webnautics User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to webnautics
Thank YOU!! I finally got a web based program to help me add new users and hosts.
I fiddled for a few hours trying to add them via mysql directly (with no luck) then went to the contrib page on MySQL and took their suggestion....works VERY WELL!
Once Again, thank you!!

Regards,
Brant

Reply With Quote
  #4  
Old March 8th, 2000, 07:03 AM
rod k rod k is offline
Apprentice Deity
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jul 1999
Location: Niagara Falls (On the wrong side of the gorge)
Posts: 3,237 rod k User rank is Private First Class (20 - 50 Reputation Level)rod k User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 m 8 sec
Reputation Power: 17
Send a message via AIM to rod k
I use the GRANT statements myself. A bit more difficult to learn, but much more control over access. Of course, if you don't need that type of control...

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Adding New Users in MySQL (mysqladmin)

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap