Results 1 to 8 of 8

Thread: mysql prob

  1. #1
    Guest

    mysql prob

    I am trying to setup an admin user in mysql to log in as. I have tried several different things, but no joy on anything yet. the command I did to add user was:
    grant all on * to mark identified by 'password';

    This then tells me that it went ok and I log out as root to log back in as mark. I issue the command:
    ./mysql -h localhost -u mark -p

    it comes up with Enter password :
    I enter my password and it says access denied. Any one got any ideas?

  2. #2

    Re: mysql prob

    Try:

    grant all on *.* to mark identified by 'password';

    I spent ages with a simalar prob, this sorted it.

    HTH

  3. #3
    Guest

    Re: mysql prob

    Nope thats not it either. tried it several times with a few minor diffs each time. Im pretty much at a loss as to what to do now. ??? it will let me log in as root, but not as anything else.

  4. #4

    Re: mysql prob

    Mmmmn..... sounds like the same problem I had, the only other thing I did was create a completely new user and did the *.* thing. You could try a new user but I can't figure out for the life of me why that would make a difference. I know SQL has loads of ACL stuff, maybe the add step with one * does something on a different ACL that means you can't do the *.* thing. (can you tell I'm realy clutching at straws here?)

  5. #5
    Guest

    Re: mysql prob

    I hear ya. Im just playing around for the most part. I have mysql,php, and apache installed on a laptop at work that I am playing with (Im at work now). I will try it at home on my puter, and if it does it there, then ???

  6. #6
    Guest

    Re: mysql prob

    The one at home did the same thing. ??? ??? My brain hurts.

  7. #7
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811

    Re: mysql prob

    Could it be, that mysql want's the password encrypted, so you'll have to specify it with:
    grant all on *.* to mark identified by PASSWORD('password');

    http://mysql.com/documentation/mysql...tml#User_names
    http://mysql.com/documentation/mysql...l#Adding_users
    http://mysql.com/documentation/mysql...ult_privileges

  8. #8
    Guest

    Re: mysql prob

    Ok, that worked. The only difference with what I was doing is I did not add the word Priviledges in the grant statement. Thanks for the help!!

Similar Threads

  1. MySQL worm for Windows halted
    By genesis in forum Windows - General Topics
    Replies: 0
    Last Post: 01-28-2005, 09:53 PM
  2. Hopefully quick q on MySQL
    By Schotty in forum Linux - Software, Applications & Programming
    Replies: 9
    Last Post: 02-25-2003, 12:16 PM
  3. MySQL Error msgs
    By gmoreno in forum Announcements and Suggestions
    Replies: 4
    Last Post: 01-31-2003, 09:01 PM
  4. MySQL Admin GUI
    By mcdougrs in forum Linux - Hardware, Networking & Security
    Replies: 5
    Last Post: 10-25-2002, 08:45 PM
  5. mysql installation instructions & permissions
    By elovkoff in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 02-06-2002, 10:51 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •