SunQuest
 
           MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old June 23rd, 2004, 06:15 PM
willhh3 willhh3 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 3 willhh3 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Logon Question

This is probabaly a simple question, so I'll preface by saying I'm totally new to this. I installed MySQL 4.0 on my home PC and am working locally. I've figured out how to start and stop the server and the root logon. The book I'm going through had me create a new dbs, called testdb and then want me to create a user with access to testdb. This all went smoothly using:

Grant all on testdb.* to testuser identified by 'testpw';

When I try to logon with the userid and pw I can't get in when I use this syntax:

mysql>mysql -utestuser -ptestpw

However, if I use:

mysql>mysql -utestuser

it works fine. Note the id and pw I'm using are testuser and testpw. I went and logged in as the root user (no pw) and did the pw change command and it looked sucessfully.

So, the question is....why isn't it making me use the password?

Thanks in advance.
Willhh3

Reply With Quote
  #2  
Old June 24th, 2004, 09:43 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
try:
mysql testdb -utestuser -p
Then it prompts for the password... simply enter the password.

Reply With Quote
  #3  
Old June 24th, 2004, 11:17 AM
willhh3 willhh3 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 3 willhh3 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Red face Logon Question

Thanks a ton MadCow. That put me in the right direction as I started to get prompted for a pw. Of course then I kept getting access denied. I finally figured out that when I created the ID I needed to make it:

testuser@localhost rather than just testuser.

What puzzles me is the if I try to login with just:

mysql -utestuser

it lets me in with what looks like root permissions. If I do the show database command it only displays Test. Strange, but I think I'm getting the hang of it.

Thanks!
willhh3

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > Logon Question


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway